CVE-2024-49996

cifs: Fix buffer overflow when parsing NFS reparse points

HIGH
7.8
CVSS Score
Published: October 21, 2024 at 06:02 PM UTC
Updated: August 5, 2026 at 12:05 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

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.8%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: cifs: Fix buffer overflow when parsing NFS reparse points ReparseDataLength is sum of the InodeType size and DataBuffer size. So to get DataBuffer size it is needed to subtract InodeType's size from ReparseDataLength. Function cifs_strndup_from_utf16() is currentlly accessing buf->DataBuffer at position after the end of the buffer because it does not subtract InodeType size from the length. Fix this problem and correctly subtract variable len. Member InodeType is present only when reparse buffer is large enough. Check for ReparseDataLength before accessing InodeType to prevent another invalid memory access. Major and minor rdev values are present also only when reparse buffer is large enough. Check for reparse buffer size before calling reparse_mkdev().

Affected

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

5.11 ≤ v < 5.15.1745.16 ≤ v < 6.1.1205.3 ≤ v < 5.10.2315.3 ≤ v < 5.15.1745.3 ≤ v < 5.4.2875.3 ≤ v < 6.1.1205.3 ≤ v < 6.10.145.3 ≤ v < 6.11.35.3 ≤ v < 6.125.3 ≤ v < 6.6.555.5 ≤ v < 5.10.2316.11 ≤ v < 6.11.36.2 ≤ v < 6.6.556.7 ≤ v < 6.10.145.3d5ecebc4900df7f6e8dff0717574668885110553
Vendor states this is fixed in 01cdddde39b065074fd48f07027757783cbf5b7d (fixed)
Vendor states this is fixed in 73b078e3314d4854fd8286f3ba65c860ddd3a3dd (fixed)
Vendor states this is fixed in 7b222d6cb87077faf56a687a72af1951cf78c8a9 (fixed)
Vendor states this is fixed in 803b3a39cb096d8718c0aebc03fd19f11c7dc919 (fixed)
Vendor states this is fixed in c173d47b69f07cd7ca08efb4e458adbd4725d8e9 (fixed)
Vendor states this is fixed in c6db81c550cea0c73bd72ef55f579991e0e4ba07 (fixed)
Vendor states this is fixed in e2a8910af01653c1c268984855629d71fb81f404 (fixed)
Vendor states this is fixed in ec79e6170bcae8a6036a4b6960f5e7e59a785601 (fixed)
Vendor states this is fixed in 5.10.231 (unaffected)
Vendor states this is fixed in 5.15.174 (unaffected)
Vendor states this is fixed in 5.3 (unaffected)
Vendor states this is fixed in 5.4.287 (unaffected)
Vendor states this is fixed in 6.1.120 (unaffected)
Vendor states this is fixed in 6.10.14 (unaffected)
Vendor states this is fixed in 6.11.3 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6.55 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/01cdddde39b065074fd48f07027757783cbf5b7d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/73b078e3314d4854fd8286f3ba65c860ddd3a3dd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7b222d6cb87077faf56a687a72af1951cf78c8a9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/803b3a39cb096d8718c0aebc03fd19f11c7dc919
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c173d47b69f07cd7ca08efb4e458adbd4725d8e9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6db81c550cea0c73bd72ef55f579991e0e4ba07
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e2a8910af01653c1c268984855629d71fb81f404
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ec79e6170bcae8a6036a4b6960f5e7e59a785601

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

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