CVE-2024-49996: cifs: Fix buffer overflow when parsing NFS reparse points
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 cifsstrndupfromutf16() 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 reparsemkdev().
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49996?
CVE-2024-49996 is considered to have a high severity due to the potential for buffer overflow exploitation.
How do I fix CVE-2024-49996?
To fix CVE-2024-49996, update to a patched version of the Linux Kernel that addresses this vulnerability.
Which versions of the Linux Kernel are affected by CVE-2024-49996?
CVE-2024-49996 affects Linux Kernel versions between 5.3 and 6.6.55, 6.7 and 6.10.14, as well as 6.11 and 6.11.3.
What types of systems are impacted by CVE-2024-49996?
CVE-2024-49996 impacts systems running affected versions of the Linux Kernel, particularly those using the CIFS file system.
What are the potential consequences of CVE-2024-49996?
Exploiting CVE-2024-49996 could lead to system crashes or unauthorized memory access, compromising system stability and security.