CVE-2022-49058
published 2025-02-26CVE-2022-49058: In the Linux kernel, the following vulnerability has been resolved: cifs: potential buffer overflow in handling symlinks Smatch printed a warning…
PriorityP340high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.32%
24.6th percentile
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
22 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.17.6-1 (bookworm) | linux 5.17.6-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < 3e582749e742e662a8e9bb37cffac62dccaaa1e2 | 3e582749e742e662a8e9bb37cffac62dccaaa1e2 |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < 1316c28569a80ab3596eeab05bf5e01991e7e739 | 1316c28569a80ab3596eeab05bf5e01991e7e739 |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < eb5f51756944735ac70cd8bb38637cc202e29c91 | eb5f51756944735ac70cd8bb38637cc202e29c91 |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < 22d658c6c5affed10c8907e67160cef0b6c92186 | 22d658c6c5affed10c8907e67160cef0b6c92186 |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < 4e166a41180be2f1e66bbb6d46448e80a9a5ec05 | 4e166a41180be2f1e66bbb6d46448e80a9a5ec05 |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < 9901b07ba42b39266b34a888e48d7306fd707bee | 9901b07ba42b39266b34a888e48d7306fd707bee |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < 515e7ba11ef043d6febe69389949c8ef5f25e9d0 | 515e7ba11ef043d6febe69389949c8ef5f25e9d0 |
| linux | linux | >= c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 < 64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304 | 64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304 |
| linux | linux_kernel | — | — |
| linux | linux_kernel | >= 0 < 5.10.113-1 | 5.10.113-1 |
| linux | linux_kernel | >= 0 < 5.17.6-1 | 5.17.6-1 |
| linux | linux_kernel | >= 0 < 5.17.6-1 | 5.17.6-1 |
| linux | linux_kernel | >= 0 < 5.17.6-1 | 5.17.6-1 |
| linux | linux_kernel | >= 2.6.37 < 4.9.311 | 4.9.311 |
| linux | linux_kernel | >= 4.10 < 4.14.276 | 4.14.276 |
| linux | linux_kernel | >= 4.15 < 4.19.239 | 4.19.239 |
| linux | linux_kernel | >= 4.20 < 5.4.190 | 5.4.190 |
| linux | linux_kernel | >= 5.11 < 5.15.35 | 5.15.35 |
| linux | linux_kernel | >= 5.16 < 5.17.4 | 5.17.4 |
| linux | linux_kernel | >= 5.5 < 5.10.112 | 5.10.112 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-8x6x-mcww-82p3: In the Linux kernel, the following vulnerability has been resolved:
cifs: potential buffer overflow in handling symlinks
Smatch printed a warning:
a
ghsa_unreviewed·2025-03-18
CVE-2022-49058 [HIGH] CWE-120 GHSA-8x6x-mcww-82p3: In the Linux kernel, the following vulnerability has been resolved:
cifs: potential buffer overflow in handling symlinks
Smatch printed a warning:
a
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.
OSV
CVE-2022-49058: In the Linux kernel, the following vulnerability has been resolved: cifs: potential buffer overflow in handling symlinks Smatch printed a warning: arc
osv·2025-02-26·CVSS 7.8
CVE-2022-49058 [HIGH] CVE-2022-49058: In the Linux kernel, the following vulnerability has been resolved: cifs: potential buffer overflow in handling symlinks Smatch printed a warning: arc
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.
Red Hat
kernel: cifs: potential buffer overflow in handling symlinks
vendor_redhat·2025-02-26·CVSS 7.8
CVE-2022-49058 [HIGH] CWE-120 kernel: cifs: potential buffer overflow in handling symlinks
kernel: 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/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.
A buffer overflow vulnerability has been identified in the Linux kernel's Common Internet File System (CIFS) module, specifically within the parse_mf_symlink() function. This flaw is caused by insufficient input validation on the link_len value, which dictates the length of a symbolic link. An at
Debian
CVE-2022-49058: linux - In the Linux kernel, the following vulnerability has been resolved: cifs: poten...
vendor_debian·2022·CVSS 7.8
CVE-2022-49058 [HIGH] CVE-2022-49058: linux - In the Linux kernel, the following vulnerability has been resolved: cifs: poten...
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.
Scope: local
bookworm: resolved (fixed in 5.17.6-1)
bullseye: resolved (fixed in 5.10.113-1)
forky: resolved (fixed in 5.17.6-1)
sid: resolved (fixed in 5.17.6-1)
trixie: resolved (fixed in 5.17.6-1)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/1316c28569a80ab3596eeab05bf5e01991e7e739https://git.kernel.org/stable/c/22d658c6c5affed10c8907e67160cef0b6c92186https://git.kernel.org/stable/c/3e582749e742e662a8e9bb37cffac62dccaaa1e2https://git.kernel.org/stable/c/4e166a41180be2f1e66bbb6d46448e80a9a5ec05https://git.kernel.org/stable/c/515e7ba11ef043d6febe69389949c8ef5f25e9d0https://git.kernel.org/stable/c/64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304https://git.kernel.org/stable/c/9901b07ba42b39266b34a888e48d7306fd707beehttps://git.kernel.org/stable/c/eb5f51756944735ac70cd8bb38637cc202e29c91
2025-02-26
Published