CVE-2024-56626·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix Out-of-Bounds Write in ksmbd_vfs_stream_write An offset from client could be a negative value, It could allows to write data outside the bounds of the allocated buffer. Note that this issue is coming when setting 'vfs objects = streams_xattr parameter' in ksmbd.conf.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.5
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2024-56626 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.7
Until: 6.12.5
Fixed in: 6.12.5
How to fix this CVE
Update your Linux kernel to version 6.12.5 or later to patch the out-of-bounds write vulnerability in ksmbd's stream handling. This fix is critical if you have configured the 'vfs objects = streams_xattr' parameter in your ksmbd.conf file, as the vulnerability allows negative offsets from clients to write beyond allocated buffer boundaries. Ensure you test the kernel update in a non-production environment before deploying to production systems.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — verify it is at least 6.12.5
- Verify if ksmbd is running: systemctl status ksmbd or ps aux | grep ksmbd
- Check if streams_xattr is enabled: grep 'vfs objects.*streams_xattr' /etc/ksmbd/ksmbd.conf
- Confirm the fix: grep -i 'stream_write\|offset' /var/log/kern.log | tail -20 to review recent kernel messages related to stream handling
FAQ
What is CVE-2024-56626?
This vulnerability exists in the Linux kernel's ksmbd SMB server implementation, where negative offset values sent by clients can bypass buffer bounds checks during stream write operations, leading to memory corruption with high integrity and confidentiality impact.
Is CVE-2024-56626 being actively exploited?
No, CVE-2024-56626 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-56626?
Linux kernel versions 6.7 through 6.12.4 are vulnerable; the fix is available in kernel 6.12.5 and later.
How do I check if my server is vulnerable to CVE-2024-56626?
Run 'uname -r' to check your kernel version — if it is between 6.7 and 6.12.4 AND you have 'vfs objects = streams_xattr' configured in ksmbd.conf, your system is vulnerable.
Does Defensia detect CVE-2024-56626?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-56626 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/164d3597d26d9acff5d5b8bc3208bdcca942dd6a
- https://git.kernel.org/stable/c/1aea5c9470be2c7129704fb1b9562b1e3e0576f8
- https://git.kernel.org/stable/c/313dab082289e460391c82d855430ec8a28ddf81
- https://git.kernel.org/stable/c/8cd7490fc0f268883e86e840cda5311257af69ca
- https://git.kernel.org/stable/c/c5797f195c67132d061d29c57a7c6d30530686f0
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56626. Free for 1 server.
Get started free