CVE-2024-56626 ksmbd: fix Out-of-Bounds Write in ksmbd_vfs_stream_write
A negative offset in ksmbd allows out-of-bounds writes, potentially enabling code execution or privilege escalation when streams_xattr is enabled.
- 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-56626?
CVE-2024-56626 is a high-severity memory corruption vulnerability in Linux kernel, published on 27 Dec 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 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.
Weakness: CWE-787
Which versions are affected by CVE-2024-56626?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-56626?
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-56626 being exploited?
There is no known exploitation of CVE-2024-56626 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-56626, DEBIAN-CVE-2024-56626, GHSA-g4vc-rr66-6355, UBUNTU-CVE-2024-56626.