CVE-2024-57791

net/smc: check return value of sock_recvmsg when draining clc data

7.5 high EPSS 0.77%

Published 11 Jan 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-57791

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-57791 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.77%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 56.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, before 82c7ad9ca09975aae737abffd66d1ad98874c13d
affected from fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, before 6b80924af6216277892d5f091f5bfc7d1265fa28
affected from fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, before d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6
affected from fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, before 7a6927814b4256d603e202ae7c5e38db3b338896
affected from fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, before df3dfe1a93c6298d8c09a18e4fba19ef5b17763b
affected from fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1, before c5b8ee5022a19464783058dc6042e8eefa34e8cd
Other versions: unaffected
Linux
affected 5.8
unaffected before 5.8
unaffected from 5.10.233 up to and including 5.10.*
unaffected from 5.15.176 up to and including 5.15.*
unaffected from 6.1.122 up to and including 6.1.*
unaffected from 6.6.68 up to and including 6.6.*
unaffected from 6.12.7 up to and including 6.12.*
unaffected 6.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-57791 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-57791

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-57791
trivy image --scanners vuln IMAGE | grep CVE-2024-57791

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-57791 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.