{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49058","id":"CVE-2022-49058","title":"cifs: potential buffer overflow in handling symlinks","description":"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->buf' 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 la","descriptionLong":"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->buf' 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.","published":"2025-02-26T01:54:29.195Z","updated":"2026-10-28T02:31:05.510009658Z","reserved":"2025-02-26T01:49:39.243Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"Linux"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"Linux"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"3e582749e742e662a8e9bb37cffac62dccaaa1e2","status":"affected","versionType":"git"},{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"1316c28569a80ab3596eeab05bf5e01991e7e739","status":"affected","versionType":"git"},{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"eb5f51756944735ac70cd8bb38637cc202e29c91","status":"affected","versionType":"git"},{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"22d658c6c5affed10c8907e67160cef0b6c92186","status":"affected","versionType":"git"},{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"4e166a41180be2f1e66bbb6d46448e80a9a5ec05","status":"affected","versionType":"git"},{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"9901b07ba42b39266b34a888e48d7306fd707bee","status":"affected","versionType":"git"},{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"515e7ba11ef043d6febe69389949c8ef5f25e9d0","status":"affected","versionType":"git"},{"version":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","lessThan":"64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.37","status":"affected"},{"version":"0","lessThan":"2.6.37","status":"unaffected","versionType":"semver"},{"version":"4.9.311","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.276","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.239","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.190","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.112","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.35","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.4","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-120"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3e582749e742e662a8e9bb37cffac62dccaaa1e2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1316c28569a80ab3596eeab05bf5e01991e7e739","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/eb5f51756944735ac70cd8bb38637cc202e29c91","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/22d658c6c5affed10c8907e67160cef0b6c92186","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4e166a41180be2f1e66bbb6d46448e80a9a5ec05","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9901b07ba42b39266b34a888e48d7306fd707bee","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/515e7ba11ef043d6febe69389949c8ef5f25e9d0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49058.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49058","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00874,"epssPercentile":0.59812,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49058","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49058","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49058","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49058","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}