CVE-2022-49058: cifs: potential buffer overflow in handling symlinks
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
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.