net/smc: check return value of sock_recvmsg when draining clc data
Published Jan 11, 2025
7.5
HIGHCVSS 3.1
EPSS 0.77%
Description
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 products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.8StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<5.8
- Version 5.10.233StatusunaffectedConstraints<=5.10.*
- Version 5.15.176StatusunaffectedConstraints<=5.15.*
- Version 6.1.122StatusunaffectedConstraints<=6.1.*
- Version 6.12.7StatusunaffectedConstraints<=6.12.*
- Version 6.13StatusunaffectedConstraints<=*
- Version 6.6.68StatusunaffectedConstraints<=6.6.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| |||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- ≥ 5.8.1 · < 5.10.233
- ≥ 5.11 · < 5.15.176
- ≥ 5.16 · < 6.1.122
- ≥ 6.2 · < 6.6.68
- ≥ 6.7 · < 6.12.7
- 5.8
- 5.8
- 5.8
- 5.8
- 6.13
- 6.13
- 6.13
No data.
Red Hat Enterprise Linux 10
kernel
Affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Out of support scope
Red Hat Enterprise Linux 8
kernel-rt
Out of support scope
Red Hat Enterprise Linux 9
kernel
Affected
Red Hat Enterprise Linux 9
kernel-rt
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 9 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2025–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (5 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.77% (0.00772) | 54.08th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.74% (0.00737) | 49.51th | v5 (v2026.06.15) |
| Nov 18, 2025 | 1.07% (0.01069) | 75.84th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.04% (0.00045) | 11.05th | v4 (v2025.03.14) |
| Jan 12, 2025 | 0.04% (0.00044) | 12.10th | v3 (v2023.03.01) |
References (13)
- https://access.redhat.com/security/cve/CVE-2024-57791 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2337105 Issue Tracking
- https://git.kernel.org/stable/c/6b80924af6216277892d5f091f5bfc7d1265fa28 Patch
- https://git.kernel.org/stable/c/7a6927814b4256d603e202ae7c5e38db3b338896 Patch
- https://git.kernel.org/stable/c/82c7ad9ca09975aae737abffd66d1ad98874c13d Patch
- https://git.kernel.org/stable/c/c5b8ee5022a19464783058dc6042e8eefa34e8cd Patch
- https://git.kernel.org/stable/c/d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6 Patch
- https://git.kernel.org/stable/c/df3dfe1a93c6298d8c09a18e4fba19ef5b17763b Patch
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
- https://lore.kernel.org/linux-cve-announce/2025011147-CVE-2024-57791-7bc8@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2024-57791
- https://www.cve.org/CVERecord?id=CVE-2024-57791
Change history (0)
No recorded changes yet.