CVE-2024-57791
kernel: net/smc: check return value of sock_recvmsg when draining clc data
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 120 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | kernel-uek +34 | 6.12.0-102.36.5.2.el9uek |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | bpftool +9 | 5.10.233-1.ph4 |
| 5.0 | bpftool +10 | 6.1.124-1.ph5 |
Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | bpftool +45 | eol |
| 9 | bpftool +105 | affected |
SUSE Linux Enterprise 4 releases · 9 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | kgraft-patch-4-12-14-122-244-default | 1-8.5.1 | SUSE-SU-2025:0236-1 |
| 12.5 | cluster-md-kmp-default +13 | 4.12.14-122.244.1 | SUSE-SU-2025:0236-1 |
| 15.4 | kernel-livepatch-5-14-21-150400-24-150-default | 1-150400.9.3.1 | SUSE-SU-2025:0576-1 |
| 15.4 | cluster-md-kmp-default +17 | 5.14.21-150400.24.150.1 | SUSE-SU-2025:0576-1 |
| 15.4 | kernel-default-base | 5.14.21-150400.24.150.1.150400.24.74.1 | SUSE-SU-2025:0576-1 |
| 15.5 | kernel-livepatch-5-14-21-150500-55-94-default | 1-150500.11.3.1 | SUSE-SU-2025:0577-1 |
8 more rows
SUSE Linux Enterprise Micro 7 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | kernel-rt +1 | 5.3.18-150300.202.1 | SUSE-SU-2025:0867-1 |
| 5.1 | kernel-default | 5.3.18-150300.59.191.1 | SUSE-SU-2025:0517-1 |
| 5.1 | kernel-default-base | 5.3.18-150300.59.191.1.150300.18.113.1 | SUSE-SU-2025:0517-1 |
| 5.2 | kernel-rt +1 | 5.3.18-150300.202.1 | SUSE-SU-2025:0867-1 |
| 5.2 | kernel-default | 5.3.18-150300.59.191.1 | SUSE-SU-2025:0517-1 |
| 5.2 | kernel-default-base | 5.3.18-150300.59.191.1.150300.18.113.1 | SUSE-SU-2025:0517-1 |
19 more rows
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | 5.10.234-1 |
| 11 | linux-6-1 | 6.1.128-1~deb11u1 |
| 12 | linux | 6.1.123-1 |
| 13 | linux | 6.12.8-1 |
| 14 | linux | 6.12.8-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.12.8-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-linux | 5.10.234-1 |
| 12 | rootio-linux | 6.1.123-1 |
| 13 | rootio-linux | 6.12.8-1 |
root.io ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | rootio-linux | 5.15.0-135.146 |
| 24.04 | rootio-linux | 6.8.0-60.63 |
ubuntu 5 releases · 46 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | linux-aws-5-4 +6 | affected |
| 20.04 | linux-ibm-5-15 | 5.15.0-1074.77~20.04.1 |
| 20.04 | linux-riscv-5-15 | 5.15.0-1075.79~20.04.1 |
| 20.04 | linux-intel-iotg-5-15 +1 | 5.15.0-1077.83~20.04.1 |
| 20.04 | linux-aws-5-15 | 5.15.0-1080.87~20.04.1 |
| 20.04 | linux-gcp-5-15 | 5.15.0-1081.90~20.04.1 |
59 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-57791
- git.kernel.org https://git.kernel.org/linus/c5b8ee5022a19464783058dc6042e8eefa34e8cd (6.13-rc4)
- git.kernel.org https://git.kernel.org/stable/c/6b80924af6216277892d5f091f5bfc7d1265fa28
- git.kernel.org https://git.kernel.org/stable/c/7a6927814b4256d603e202ae7c5e38db3b338896
- git.kernel.org https://git.kernel.org/stable/c/82c7ad9ca09975aae737abffd66d1ad98874c13d
- git.kernel.org https://git.kernel.org/stable/c/c5b8ee5022a19464783058dc6042e8eefa34e8cd
- git.kernel.org https://git.kernel.org/stable/c/d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6
- git.kernel.org https://git.kernel.org/stable/c/df3dfe1a93c6298d8c09a18e4fba19ef5b17763b
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-57791.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-20530.html
Show all 42 references
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2025011147-CVE-2024-57791-7bc8@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-57791
- ubuntu.com https://ubuntu.com/security/notices/USN-7379-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7379-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7380-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7381-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7382-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7387-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7387-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7387-3
- ubuntu.com https://ubuntu.com/security/notices/USN-7388-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7389-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7390-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7407-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7421-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7458-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7459-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7459-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7513-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7513-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7513-3
- ubuntu.com https://ubuntu.com/security/notices/USN-7513-4
- ubuntu.com https://ubuntu.com/security/notices/USN-7513-5
- ubuntu.com https://ubuntu.com/security/notices/USN-7514-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7515-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7515-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7522-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7523-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7524-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-57791
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.