CVE-2024-57925 ksmbd: fix a missing return value check bug
A missing return value check in the Linux kernel's ksmbd module can cause a null pointer dereference, leading to a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-57925?
CVE-2024-57925 is a high-severity vulnerability in Linux kernel, published on 19 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix a missing return value check bug
In the smb2_send_interim_resp(), if ksmbd_alloc_work_struct() fails to allocate a node, it returns a NULL pointer to the in_work pointer. This can lead to an illegal memory write of in_work->response_buf when allocate_interim_rsp_buf() attempts to perform a kzalloc() on it.
To address this issue, incorporating a check for the return value of ksmbd_alloc_work_struct() ensures that the function returns immediately upon allocation failure, thereby preventing the aforementioned illegal memory access.
Weakness: CWE-476
Which versions are affected by CVE-2024-57925?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-57925?
Apply the vendor's patch.
Is CVE-2024-57925 being exploited?
There is no known exploitation of CVE-2024-57925 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-57925, DEBIAN-CVE-2024-57925, GHSA-v3qj-q3px-pcxw, UBUNTU-CVE-2024-57925.