CVE-2022-49058

cifs: potential buffer overflow in handling symlinks

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 01:54 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.9%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.37 ≤ v < 4.14.2762.6.37 ≤ v < 4.19.2392.6.37 ≤ v < 4.9.3112.6.37 ≤ v < 5.10.1122.6.37 ≤ v < 5.15.352.6.37 ≤ v < 5.17.42.6.37 ≤ v < 5.182.6.37 ≤ v < 5.4.1904.10 ≤ v < 4.14.2764.15 ≤ v < 4.19.2394.20 ≤ v < 5.4.1905.11 ≤ v < 5.15.355.16 ≤ v < 5.17.45.5 ≤ v < 5.10.1125.18 rc15.18 rc2c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131
Vendor states this is fixed in 1316c28569a80ab3596eeab05bf5e01991e7e739 (fixed)
Vendor states this is fixed in 22d658c6c5affed10c8907e67160cef0b6c92186 (fixed)
Vendor states this is fixed in 3e582749e742e662a8e9bb37cffac62dccaaa1e2 (fixed)
Vendor states this is fixed in 4e166a41180be2f1e66bbb6d46448e80a9a5ec05 (fixed)
Vendor states this is fixed in 515e7ba11ef043d6febe69389949c8ef5f25e9d0 (fixed)
Vendor states this is fixed in 64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304 (fixed)
Vendor states this is fixed in 9901b07ba42b39266b34a888e48d7306fd707bee (fixed)
Vendor states this is fixed in eb5f51756944735ac70cd8bb38637cc202e29c91 (fixed)
Vendor states this is fixed in 2.6.37 (unaffected)
Vendor states this is fixed in 4.14.276 (unaffected)
Vendor states this is fixed in 4.19.239 (unaffected)
Vendor states this is fixed in 4.9.311 (unaffected)
Vendor states this is fixed in 5.10.112 (unaffected)
Vendor states this is fixed in 5.15.35 (unaffected)
Vendor states this is fixed in 5.17.4 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.4.190 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1316c28569a80ab3596eeab05bf5e01991e7e739
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/22d658c6c5affed10c8907e67160cef0b6c92186
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3e582749e742e662a8e9bb37cffac62dccaaa1e2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4e166a41180be2f1e66bbb6d46448e80a9a5ec05
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/515e7ba11ef043d6febe69389949c8ef5f25e9d0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/64c4a37ac04eeb43c42d272f6e6c8c12bfcf4304
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9901b07ba42b39266b34a888e48d7306fd707bee
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eb5f51756944735ac70cd8bb38637cc202e29c91

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-120

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card