net/smc: check return value of sock_recvmsg when draining clc data
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.233, 5.15.176, 6.1.122, 6.12.7, 6.6.68
- CVEs
- CVE-2024-57791
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 00:34 UTC · Revision 1
Source evidence
net/smc: check return value of sock_recvmsg when draining clc data
core-osv · Original sourcePublished 11 Jan 2025, 12:35 UTC
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.
osv:CVE-2024-57791
Kernel
Fixed versions: 5.10.233, 5.15.176, 6.1.122, 6.6.68, 6.12.7
Complete source record
{
"id": "42e53d9b33e9517a9c7ba617a267edd776e536450103034f40d6793d993f7ab3",
"url": "https://osv.dev/vulnerability/CVE-2024-57791",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net/smc: check return value of sock_recvmsg when draining clc data",
"summary": "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.",
"evidence": "osv:CVE-2024-57791",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.233",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.176",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.122",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.68",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-57791",
"aliases": [
"CVE-2024-57791"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1"
},
{
"fixed": "82c7ad9ca09975aae737abffd66d1ad98874c13d"
},
{
"fixed": "6b80924af6216277892d5f091f5bfc7d1265fa28"
},
{
"fixed": "d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6"
},
{
"fixed": "7a6927814b4256d603e202ae7c5e38db3b338896"
},
{
"fixed": "df3dfe1a93c6298d8c09a18e4fba19ef5b17763b"
},
{
"fixed": "c5b8ee5022a19464783058dc6042e8eefa34e8cd"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57791.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.8.0"
},
{
"fixed": "5.10.233"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.176"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.122"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.68"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57791.json"
}
}
],
"modified": "2026-10-28T02:30:45.601660277Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/6b80924af6216277892d5f091f5bfc7d1265fa28",
"https://git.kernel.org/stable/c/7a6927814b4256d603e202ae7c5e38db3b338896",
"https://git.kernel.org/stable/c/82c7ad9ca09975aae737abffd66d1ad98874c13d",
"https://git.kernel.org/stable/c/c5b8ee5022a19464783058dc6042e8eefa34e8cd",
"https://git.kernel.org/stable/c/d7d1f986ebb284b1db8dafca7d1bdb6dd2445cf6",
"https://git.kernel.org/stable/c/df3dfe1a93c6298d8c09a18e4fba19ef5b17763b",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57791.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-57791",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57791.json"
}
},
"related_cves": [
{
"value": "CVE-2024-57791",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 513526,
"published_at": "2025-01-11T12:35:48.905+00:00"
}