CVE-2024-26954 ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
A slab-out-of-bounds read in the Linux kernel ksmbd module allows attackers to cause denial of service or read sensitive memory.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26954?
CVE-2024-26954 is a high-severity memory corruption vulnerability in Linux kernel, published on 1 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
If ->NameOffset of smb2_create_req is smaller than Buffer offset of smb2_create_req, slab-out-of-bounds read can happen from smb2_open. This patch set the minimum value of the name offset to the buffer offset to validate name length of smb2_create_req().
Weakness: CWE-125
Which versions are affected by CVE-2024-26954?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-26954?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-26954 being exploited?
There is no known exploitation of CVE-2024-26954 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-57714, BELL-CVE-2024-26954, DEBIAN-CVE-2024-26954, GHSA-9r3r-9pph-j34p, ROOT-OS-UBUNTU-2204-CVE-2024-26954, UBUNTU-CVE-2024-26954.