CVE-2024-49996
HighIn 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().
CVSS 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-120CVE-2024-49996 is classified as CWE-120
See CWE-120 on MITRE CWE for full details on this weakness type.
Affected versions
Linux kernel versions
5.3
and later are affected. Fixed in
5.4.287,
5.10.231,
5.15.174,
6.1.120,
6.6.55,
6.10.14,
6.11.3,
6.12
and their respective stable series.
References
The following references provide additional information about CVE-2024-49996 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/01cdddde39b065074fd48f07027757783cbf5b7d
-
PatchKernel patch commithttps://git.kernel.org/stable/c/73b078e3314d4854fd8286f3ba65c860ddd3a3dd
-
PatchKernel patch commithttps://git.kernel.org/stable/c/7b222d6cb87077faf56a687a72af1951cf78c8a9
Frequently asked questions
-
What is CVE-2024-49996?
CVE-2024-49996 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 . It affects Linux kernel versions from 5.3 onward and has been patched in 5.4.287, 5.10.231, 5.15.174 and others. CVE-2024-49996 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-49996?
CVE-2024-49996 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2024-49996?
Yes — CVE-2024-49996 has been patched. Fixed versions include 5.4.287, 5.10.231, 5.15.174 and others. If you are running Linux kernel 5.3 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-49996 actively exploited?
No — CVE-2024-49996 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.