CVE-2024-57791·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net/smc: check return value of sock_recvmsg when draining clc data When receiving clc msg, the field length in smc_clc_msg_hdr indicates the length of msg should be received from network and the value should not be fully trusted as it is from the network. Once the value of length exceeds the value of buflen in function smc_clc_wait_msg it may run into deadloop when trying to drain the remaining data exceeding buflen. This patch checks the return value of sock_recvmsg when draining data in case of deadloop in draining.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.7
- Published
- 2025-01-11
Affected versions
From: 6.7
Until: 6.12.7
Fixed in: 6.12.7
How to fix this CVE
Update your Linux kernel to version 6.12.7 or later to patch this SMC (Shared Memory Communications) protocol vulnerability that could cause denial of service through malformed network messages. Systems running kernel versions 6.7 through 6.12.6 should prioritize this update, as the flaw affects the CLC (Connection Layer Control) message handling in the SMC subsystem.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — compare against 6.12.7; versions 6.7 to 6.12.6 are vulnerable
- Verify SMC module is loaded: lsmod | grep smc — if output is empty, SMC networking is not in use on this system
- Check dmesg for SMC connection errors: dmesg | grep -i 'smc\|clc' — look for repeated connection failures or message processing warnings
- After patching, reboot and verify with uname -r — confirm new kernel version is >= 6.12.7
FAQ
What is CVE-2024-57791?
This vulnerability exists in the Linux kernel's SMC protocol implementation, where untrusted message length fields from network packets can trigger infinite loops during data draining operations, allowing remote attackers to cause denial of service without requiring authentication.
Is CVE-2024-57791 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and has no publicly available exploits as of the current date.
What versions of Kernel are affected by CVE-2024-57791?
Linux kernel versions 6.7 through 6.12.6 are vulnerable; kernel 6.12.7 and later include the fix.
How do I check if my server is vulnerable to CVE-2024-57791?
Run `uname -r` to display your kernel version, then compare against the affected range (6.7-6.12.6). If your version falls within this range and SMC networking is enabled (verify with `lsmod | grep smc`), your system is vulnerable.
Does Defensia detect CVE-2024-57791?
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-57791 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/6b80924af6216277892d5f091f5bfc7d1265fa28
- https://git.kernel.org/stable/c/7a6927814b4256d603e202ae7c5e38db3b338896
- https://git.kernel.org/stable/c/82c7ad9ca09975aae737abffd66d1ad98874c13d
- https://git.kernel.org/stable/c/c5b8ee5022a19464783058dc6042e8eefa34e8cd
- https://git.kernel.org/stable/c/d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57791. Free for 1 server.
Get started free