CVE-2024-57791
net/smc: check return value of sock_recvmsg when draining clc data
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 82c7ad9ca09975aae737abffd66d1ad98874c13d; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 6b80924af6216277892d5f091f5bfc7d1265fa28; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 7a6927814b4256d603e202ae7c5e38db3b338896; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < df3dfe1a93c6298d8c09a18e4fba19ef5b17763b; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < c5b8ee5022a19464783058dc6042e8eefa34e8cd
- Anyone running Linux 5.8
Vulnerability facts
- Affected
- Linux >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 82c7ad9ca09975aae737abffd66d1ad98874c13d; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 6b80924af6216277892d5f091f5bfc7d1265fa28; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 7a6927814b4256d603e202ae7c5e38db3b338896; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < df3dfe1a93c6298d8c09a18e4fba19ef5b17763b; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < c5b8ee5022a19464783058dc6042e8eefa34e8cd; Linux 5.8
- Fixed in
- Linux 82c7ad9ca09975aae737abffd66d1ad98874c13d, Linux 6b80924af6216277892d5f091f5bfc7d1265fa28, Linux 7a6927814b4256d603e202ae7c5e38db3b338896
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.41% chance of exploitation in 30 days (percentile 73, 2026-11-26)
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 82c7ad9ca09975aae737abffd66d1ad98874c13d; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 6b80924af6216277892d5f091f5bfc7d1265fa28; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 7a6927814b4256d603e202ae7c5e38db3b338896; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < df3dfe1a93c6298d8c09a18e4fba19ef5b17763b; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < c5b8ee5022a19464783058dc6042e8eefa34e8cd | — | cvelist |
| Linux | 5.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-57791. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-57791.md Affected: Linux >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 82c7ad9ca09975aae737abffd66d1ad98874c13d; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 6b80924af6216277892d5f091f5bfc7d1265fa28; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6; >= fb4f79264c0fc6fd5a68ffe… Fixed in: Linux 82c7ad9ca09975aae737abffd66d1ad98874c13d, Linux 6b80924af6216277892d5f091f5bfc7d1265fa28, Linux 7a6927814b4256d603e202ae7c5e38db3b338896 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/82c7ad9ca09975aae737abffd66d1ad98874c13d
- https://git.kernel.org/stable/c/6b80924af6216277892d5f091f5bfc7d1265fa28
- https://git.kernel.org/stable/c/d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6
- https://git.kernel.org/stable/c/7a6927814b4256d603e202ae7c5e38db3b338896
- https://git.kernel.org/stable/c/df3dfe1a93c6298d8c09a18e4fba19ef5b17763b
- https://git.kernel.org/stable/c/c5b8ee5022a19464783058dc6042e8eefa34e8cd
FAQ
Is CVE-2024-57791 being exploited?
There is no confirmed exploitation: CVE-2024-57791 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.41% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-57791?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-57791?
Linux >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 82c7ad9ca09975aae737abffd66d1ad98874c13d; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 6b80924af6216277892d5f091f5bfc7d1265fa28; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < 7a6927814b4256d603e202ae7c5e38db3b338896; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < df3dfe1a93c6298d8c09a18e4fba19ef5b17763b; >= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, < c5b8ee5022a19464783058dc6042e8eefa34e8cd; Linux 5.8.
Is there a fix for CVE-2024-57791?
Yes. Fixed in Linux 82c7ad9ca09975aae737abffd66d1ad98874c13d, Linux 6b80924af6216277892d5f091f5bfc7d1265fa28, Linux 7a6927814b4256d603e202ae7c5e38db3b338896. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-57791?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.