CVE-2022-49058: cifs: potential buffer overflow in handling symlinks

Published Feb 26, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

cifs: potential buffer overflow in handling symlinks

Smatch printed a warning: arch/x86/crypto/poly1305glue.c:198 poly1305updatearch() error: memcpy() 'dctx->buf' too small (16 vs u32max)

It's caused because Smatch marks 'linklen' as untrusted since it comes from sscanf(). Add a check to ensure that 'linklen' is not larger than the size of the 'linkstr' buffer.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

cifs: potential buffer overflow in handling symlinks

Smatch printed a warning: arch/x86/crypto/poly1305glue.c:198 poly1305updatearch() error: memcpy() 'dctx->buf' too small (16 vs u32max)

It's caused because Smatch marks 'linklen' as untrusted since it comes from sscanf(). Add a check to ensure that 'linklen' is not larger than the size of the 'linkstr' buffer.

NVD

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=2.6.37<4.9.311
Linux Linux kernel>=4.10<4.14.276
Linux Linux kernel>=4.15<4.19.239
Linux Linux kernel>=4.20<5.4.190
Linux Linux kernel>=5.5<5.10.112
Linux Linux kernel>=5.11<5.15.35
Linux Linux kernel>=5.16<5.17.4
Linux Linux kernel=5.18-rc1
Linux Linux kernel=5.18-rc2

Event History

Feb 26, 2025
CVE Published
via MITRE·01:54 AM
Data Sourced
via MITRE·01:54 AM
DescriptionSeverity
Data Sourced
via Red Hat·03:23 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:00 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49058?

CVE-2022-49058 is considered a high severity vulnerability due to the potential for a buffer overflow.

2

How do I fix CVE-2022-49058?

To fix CVE-2022-49058, update the Linux kernel to the latest patched version that addresses this vulnerability.

3

What software is affected by CVE-2022-49058?

CVE-2022-49058 affects multiple versions of the Linux Kernel, specifically versions between 2.6.37 and 5.18-rc2.

4

What types of exploits can CVE-2022-49058 enable?

CVE-2022-49058 can enable remote attackers to potentially execute arbitrary code or escalate privileges via crafted symlinks.

5

Is CVE-2022-49058 being actively exploited in the wild?

As of now, there is no public information indicating that CVE-2022-49058 is being actively exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203