Vulnerabilities · 2022 · Linux
CVE-2022-49058
Linux Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: cifs: potential buffer overflow in handling symlinks Smatch printed a warning: arch/x86/crypto/poly1305_glue.c:198 poly1305_update_arch() error: __memcpy() 'dctx->buf' too small (16 vs u32max) It's caused because Smatch marks 'link_len' as untrusted since it comes from sscanf(). Add a check to ensure that 'link_len' is not larger than the size of the 'link_str' buffer.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/1316c28569a80ab3596eeab05bf5e01991e7e739 · Patch
- git.kernel.org/stable/c/22d658c6c5affed10c8907e67160cef0b6c92186 · Patch
- git.kernel.org/stable/c/3e582749e742e662a8e9bb37cffac62dccaaa1e2 · Patch
- git.kernel.org/stable/c/4e166a41180be2f1e66bbb6d46448e80a9a5ec05 · Patch
- git.kernel.org/stable/c/515e7ba11ef043d6febe69389949c8ef5f25e9d0 · Patch
- git.kernel.org/stable/c/64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304 · Patch
- git.kernel.org/stable/c/9901b07ba42b39266b34a888e48d7306fd707bee · Patch
- git.kernel.org/stable/c/eb5f51756944735ac70cd8bb38637cc202e29c91 · Patch
- nvd.nist.gov/vuln/detail/CVE-2022-49058
- cve.org/CVERecord?id=CVE-2022-49058
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.