CVE-2024-57791
net/smc: check return value of sock_recvmsg when draining clc data
Reported by linux · Published January 11, 2025
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1 |
| Linux | Linux | 5.8, 0, 5.10.233 |
| linux | linux_kernel | 5.8, 5.8, 5.8 |
| Linux | Linux | *, *, 5.8 |
Timeline
- Jan 11, 2025 CVE Published
- Jan 12, 2025 EPSS Score (30 in total, the first dated here)
- Apr 1, 2025 Coalition ESS Score (8 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Dec 29, 2025 Security Advisory (148 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (132 in total, the first dated here)
- Aug 4, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-57791
vulnetix vdb fixes CVE-2024-57791
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-57791/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart