CVE-2024-57925·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.10
- Published
- 2025-01-19
Affected versions
From: 6.7
Until: 6.12.10
Fixed in: 6.12.10
How to fix this CVE
Update your Linux kernel to version 6.12.10 or later to remediate CVE-2024-57925, which affects kernel versions 6.7 through 6.12.9. This vulnerability involves improper memory handling in the ksmbd SMB server component when work structure allocation fails. Ensure your system is patched promptly to prevent potential memory corruption and service disruption.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running: uname -r
- Step 2: Verify if ksmbd is enabled in your kernel configuration: grep -i ksmbd /boot/config-$(uname -r) | grep -E '^CONFIG_SMB_SERVER'
- Step 3: Check system logs for ksmbd-related errors: journalctl -u ksmbd -n 50 --no-pager or grep ksmbd /var/log/kern.log
- Step 4: After patching, confirm the new kernel version: uname -r and verify it shows 6.12.10 or newer
FAQ
What is CVE-2024-57925?
CVE-2024-57925 is a memory safety vulnerability in the Linux kernel's ksmbd SMB server implementation where a missing null-pointer check after work structure allocation can lead to illegal memory writes and potential system instability or privilege escalation.
Is CVE-2024-57925 being actively exploited?
No, CVE-2024-57925 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available, though the vulnerability should still be patched promptly.
What versions of Kernel are affected by CVE-2024-57925?
Linux kernel versions 6.7 through 6.12.9 are affected. Version 6.12.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-57925?
Run 'uname -r' to see your kernel version; if it shows a version between 6.7 and 6.12.9, and ksmbd is compiled in (verify with grep CONFIG_SMB_SERVER /boot/config-$(uname -r)), your system is vulnerable.
Does Defensia detect CVE-2024-57925?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-57925 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/271ae0edbfc942795c162e6cf20d2bc02bd7fde4
- https://git.kernel.org/stable/c/2976e91a3e569cf2c92c9f71512c0ab1312fe965
- https://git.kernel.org/stable/c/4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c
- https://git.kernel.org/stable/c/781c743e18bfd9b7dc0383f036ae952bd1486f21
- https://git.kernel.org/stable/c/ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57925. Free for 1 server.
Get started free