Vulnerability · Published Feb 26, 2025 · Assigned by Linux
CVE-2022-49058cifs: potential buffer overflow in handling symlinks
Critical 9.1
In plain English
A critical-severity buffer overflow in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-rt-modules-extra | 4.18.0-553.62.1.rt7.403.el8_10 | ALSA-2025:11299 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | perf | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| AlmaLinux:8 | python3-perf | 4.18.0-553.62.1.el8_10 | ALSA-2025:11298 |
| Debian:12 | linux | 5.17.6-1 | DEBIAN-CVE-2022-49058 |
| Debian:13 | linux | 5.17.6-1 | DEBIAN-CVE-2022-49058 |
| Debian:14 | linux | 5.17.6-1 | DEBIAN-CVE-2022-49058 |
| Rocky Linux:8 | kernel | 0:4.18.0-553.62.1.el8_10 | RLSA-2025:11298 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-553.62.1.rt7.403.el8_10 | RLSA-2025:11299 |
| Ubuntu:22.04:LTS | linux | 5.15.0-37.39 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1011.14 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1010.12 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1008.12 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1008.10 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1007.8 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1008.11 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1010.11 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-37.39 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1009.12 | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1011.13 | UBUNTU-CVE-2022-49058 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2022-49058 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2022-49058 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before 3e582749e742e662a8e9bb37cffac62dccaaa1e2c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before 1316c28569a80ab3596eeab05bf5e01991e7e739c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before eb5f51756944735ac70cd8bb38637cc202e29c91c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before 22d658c6c5affed10c8907e67160cef0b6c92186c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before 4e166a41180be2f1e66bbb6d46448e80a9a5ec05c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before 9901b07ba42b39266b34a888e48d7306fd707beec69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before 515e7ba11ef043d6febe69389949c8ef5f25e9d0c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 – before 64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304 |
| Linux | Linux | 2.6.37 |
Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
References
- https://git.kernel.org/stable/c/3e582749e742e662a8e9bb37cffac62dccaaa1e2
- https://git.kernel.org/stable/c/1316c28569a80ab3596eeab05bf5e01991e7e739
- https://git.kernel.org/stable/c/eb5f51756944735ac70cd8bb38637cc202e29c91
- https://git.kernel.org/stable/c/22d658c6c5affed10c8907e67160cef0b6c92186
- https://git.kernel.org/stable/c/4e166a41180be2f1e66bbb6d46448e80a9a5ec05
- https://git.kernel.org/stable/c/9901b07ba42b39266b34a888e48d7306fd707bee
- https://git.kernel.org/stable/c/515e7ba11ef043d6febe69389949c8ef5f25e9d0
- https://git.kernel.org/stable/c/64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304