CVE-2024-26936·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate request buffer size in smb2_allocate_rsp_buf() The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.8
- Published
- 2024-05-01
Affected versions
From: 6.7
Until: 6.8.8
Fixed in: 6.8.8
How to fix this CVE
Update your Linux kernel to version 6.8.8 or later to patch a buffer validation flaw in the SMB2 protocol handler (ksmbd). This vulnerability allows local attackers with standard user privileges to trigger out-of-bounds memory access by sending specially crafted SMB2 requests. Apply the kernel update immediately and reboot your system to ensure the fix is active.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — if the output shows 6.7.x through 6.8.7, your system is vulnerable
- Verify ksmbd (SMB server) is loaded: lsmod | grep ksmbd — if present, the affected component is active
- Search kernel logs for SMB2 allocation errors: grep -i 'smb2_allocate_rsp_buf\|buffer.*overflow' /var/log/kern.log or journalctl -k | grep -i smb2
- Confirm the patch is installed after update: uname -r should show 6.8.8 or later; verify with: grep 'smb2_allocate_rsp_buf' /boot/System.map-$(uname -r) to ensure the patched symbol exists
FAQ
What is CVE-2024-26936?
A buffer validation vulnerability in the Linux kernel's SMB2 server implementation (ksmbd) that fails to properly validate request buffer sizes before dereferencing payload fields, potentially leading to out-of-bounds memory access and privilege escalation from unprivileged local users.
Is CVE-2024-26936 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) database and no public exploits are currently available, though the high CVSS score warrants prompt patching as a precaution.
What versions of Kernel are affected by CVE-2024-26936?
Linux kernel versions 6.7.x through 6.8.7 are vulnerable; kernel 6.8.8 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2024-26936?
Run uname -r and check if the output is between 6.7.0 and 6.8.7; if so, verify ksmbd is enabled with lsmod | grep ksmbd — if both conditions are true, your system is vulnerable.
Does Defensia detect CVE-2024-26936?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-26936 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/17cf0c2794bdb6f39671265aa18aea5c22ee8c4a
- https://git.kernel.org/stable/c/21ff9d7d223c5c19cb4334009e4c0c83a2f4d674
- https://git.kernel.org/stable/c/2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6
- https://git.kernel.org/stable/c/5c20b242d4fed73a93591e48bfd9772e2322fb11
- https://git.kernel.org/stable/c/8f3d0bf1d0c62b539d54c5b9108a845cff619b99
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-26936. Free for 1 server.
Get started free