{"id":"CVE-2022-49058","aliases":["CVE-2022-49058"],"related":[],"kind":"vulnerability","state":"published","title":"cifs: potential buffer overflow in handling symlinks","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cifs: desbordamiento de búfer potencial al manejar enlaces simbólicos Smatch imprimió una advertencia: arch/x86/crypto/poly1305_glue.c:198 poly1305_update_arch() error: __memcpy() 'dctx-&gt;buf' demasiado pequeño (16 vs u32max) Esto se debe a que Smatch marca 'link_len' como no confiable ya que proviene de sscanf(). Agregue una verificación para asegurarse de que 'link_len' no sea más grande que el tamaño del búfer 'link_str'.","source":"nvd"}],"published":"2025-02-26T01:54:29.195Z","modified":"2026-08-05T08:53:40.101Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"3e582749e742e662a8e9bb37cffac62dccaaa1e2","status":"affected"},{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"1316c28569a80ab3596eeab05bf5e01991e7e739","status":"affected"},{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"eb5f51756944735ac70cd8bb38637cc202e29c91","status":"affected"},{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"22d658c6c5affed10c8907e67160cef0b6c92186","status":"affected"},{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"4e166a41180be2f1e66bbb6d46448e80a9a5ec05","status":"affected"},{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"9901b07ba42b39266b34a888e48d7306fd707bee","status":"affected"},{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"515e7ba11ef043d6febe69389949c8ef5f25e9d0","status":"affected"},{"type":"git","introduced":"c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131","fixed":"64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.37","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.37","status":"unaffected"},{"type":"semver","introduced":"4.9.311","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.276","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.239","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.190","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.112","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.35","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.4","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.37","fixed":"4.9.311"},{"status":"affected","introduced":"4.10","fixed":"4.14.276"},{"status":"affected","introduced":"4.15","fixed":"4.19.239"},{"status":"affected","introduced":"4.20","fixed":"5.4.190"},{"status":"affected","introduced":"5.5","fixed":"5.10.112"},{"status":"affected","introduced":"5.11","fixed":"5.15.35"},{"status":"affected","introduced":"5.16","fixed":"5.17.4"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3e582749e742e662a8e9bb37cffac62dccaaa1e2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1316c28569a80ab3596eeab05bf5e01991e7e739","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb5f51756944735ac70cd8bb38637cc202e29c91","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22d658c6c5affed10c8907e67160cef0b6c92186","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e166a41180be2f1e66bbb6d46448e80a9a5ec05","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9901b07ba42b39266b34a888e48d7306fd707bee","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/515e7ba11ef043d6febe69389949c8ef5f25e9d0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T19:50:01.997Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49058","url":"https://www.cve.org/CVERecord?id=CVE-2022-49058","licence":"CVE Terms of Use","modified":"2026-08-05T08:53:40.101Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49058","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49058","licence":"Public domain","modified":"2026-08-04T10:17:32.710Z"}],"updatedAt":"2026-11-25T22:58:20.127Z","epss":{"score":0.00874,"percentile":0.60006,"date":"2026-12-01T12:00:22.000Z"}}