{"id":"CVE-2022-49058","summary":"cifs: potential buffer overflow in handling symlinks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: potential buffer overflow in handling symlinks\n\nSmatch printed a warning:\n\tarch/x86/crypto/poly1305_glue.c:198 poly1305_update_arch() error:\n\t__memcpy() 'dctx-\u003ebuf' too small (16 vs u32max)\n\nIt's caused because Smatch marks 'link_len' as untrusted since it comes\nfrom sscanf(). Add a check to ensure that 'link_len' is not larger than\nthe size of the 'link_str' buffer.","modified":"2026-04-02T08:27:15.561898Z","published":"2025-02-26T01:54:29.195Z","related":["ALSA-2025:11298","ALSA-2025:11299","SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:1293-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49058.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1316c28569a80ab3596eeab05bf5e01991e7e739"},{"type":"WEB","url":"https://git.kernel.org/stable/c/22d658c6c5affed10c8907e67160cef0b6c92186"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3e582749e742e662a8e9bb37cffac62dccaaa1e2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e166a41180be2f1e66bbb6d46448e80a9a5ec05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/515e7ba11ef043d6febe69389949c8ef5f25e9d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9901b07ba42b39266b34a888e48d7306fd707bee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb5f51756944735ac70cd8bb38637cc202e29c91"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49058.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49058"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131"},{"fixed":"3e582749e742e662a8e9bb37cffac62dccaaa1e2"},{"fixed":"1316c28569a80ab3596eeab05bf5e01991e7e739"},{"fixed":"eb5f51756944735ac70cd8bb38637cc202e29c91"},{"fixed":"22d658c6c5affed10c8907e67160cef0b6c92186"},{"fixed":"4e166a41180be2f1e66bbb6d46448e80a9a5ec05"},{"fixed":"9901b07ba42b39266b34a888e48d7306fd707bee"},{"fixed":"515e7ba11ef043d6febe69389949c8ef5f25e9d0"},{"fixed":"64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49058.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}