CVE-2024-26954·Kernel vulnerability
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().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.3
- Published
- 2024-05-01
Affected versions
From: 6.8
Until: 6.8.3
Fixed in: 6.8.3
How to fix this CVE
Update your Linux kernel to version 6.8.3 or later to patch a memory safety issue in the ksmbd SMB server implementation. The vulnerability allows local attackers to read out-of-bounds kernel memory by sending malformed SMB2 create requests with invalid name offset values. Immediate patching is recommended for systems exposing SMB services to untrusted local users.
sudo dnf update kernel kernel-headersDefensia detects this vulnerability
How to check if you are affected
- Check kernel version: uname -r — confirm version is 6.8.0 through 6.8.2 (vulnerable range)
- Verify ksmbd is enabled: grep -i ksmbd /boot/config-$(uname -r) — look for CONFIG_SMB_SERVER=y or CONFIG_SMB_SERVER=m
- Check for ksmbd service status: systemctl status ksmbd or ps aux | grep ksmbd — confirm if SMB server is running
- Verify patch applied: uname -r should show 6.8.3 or later after kernel update and reboot
FAQ
What is CVE-2024-26954?
This is a memory safety vulnerability in the Linux kernel's ksmbd (kernel SMB server) module where improper validation of SMB2 create request parameters allows local attackers to trigger out-of-bounds memory reads, potentially exposing sensitive kernel data.
Is CVE-2024-26954 being actively exploited?
No — this vulnerability is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available, though it remains a high-priority patch due to its memory safety implications.
What versions of Kernel are affected by CVE-2024-26954?
Linux kernel versions 6.8.0 through 6.8.2 are vulnerable. Version 6.8.3 and all later versions include the security fix.
How do I check if my server is vulnerable to CVE-2024-26954?
Run `uname -r` and `grep CONFIG_SMB_SERVER /boot/config-$(uname -r)` — if your kernel is 6.8.0–6.8.2 and ksmbd is compiled in (=y or =m), your system is vulnerable.
Does Defensia detect CVE-2024-26954?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-26954 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57
- https://git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178
- https://git.kernel.org/stable/c/9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72
- https://git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa
- https://git.kernel.org/stable/c/d70c2e0904ab3715c5673fd45788a464a246d1db
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-26954. Free for 1 server.
Get started free