# CVE-2024-57791: net/smc: check return value of sock\_recvmsg when draining clc data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.41% (percentile 73, 2026-11-26)
- **Published:** 2025-01-11T12:35:48.905Z
- **Modified:** 2026-10-15T22:18:02.853Z

## Who should check

- Anyone running Linux \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< 82c7ad9ca09975aae737abffd66d1ad98874c13d; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< 6b80924af6216277892d5f091f5bfc7d1265fa28; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< 7a6927814b4256d603e202ae7c5e38db3b338896; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< df3dfe1a93c6298d8c09a18e4fba19ef5b17763b; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< c5b8ee5022a19464783058dc6042e8eefa34e8cd
- Anyone running Linux 5.8

## 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

- Linux: \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< 82c7ad9ca09975aae737abffd66d1ad98874c13d; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< 6b80924af6216277892d5f091f5bfc7d1265fa28; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< 7a6927814b4256d603e202ae7c5e38db3b338896; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< df3dfe1a93c6298d8c09a18e4fba19ef5b17763b; \>= fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, \< c5b8ee5022a19464783058dc6042e8eefa34e8cd (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/82c7ad9ca09975aae737abffd66d1ad98874c13d>
- patch: <https://git.kernel.org/stable/c/6b80924af6216277892d5f091f5bfc7d1265fa28>
- patch: <https://git.kernel.org/stable/c/d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6>
- patch: <https://git.kernel.org/stable/c/7a6927814b4256d603e202ae7c5e38db3b338896>
- patch: <https://git.kernel.org/stable/c/df3dfe1a93c6298d8c09a18e4fba19ef5b17763b>
- patch: <https://git.kernel.org/stable/c/c5b8ee5022a19464783058dc6042e8eefa34e8cd>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-57791>

HTML: <https://flawdb.com/CVE-2024-57791> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-57791>
