SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP Jan Schunk reports that his small NFS servers suffer from memory exhaustion after just a few days. A bisect shows that commit e18e157bb5c8 ("SUNRPC: Send RPC message on TCP with a single sock_sendmsg() call") is the first bad commit. That commit assumed that sock_sendmsg() releases all the pages in the underlying bio_vec array, but the reality is that it doesn't. svc_xprt_release() releases the rqst's response pages, but the record marker page fragment isn't one of those, so it is never released. This is a narrow fix that can be applied to stable kernels. A more extensive fix is in the works.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.6.26, 6.8.5
- CVEs
- CVE-2024-35882
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 17:36 UTC · Revision 1
Source evidence
SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP
core-osv · Original sourcePublished 19 May 2024, 08:34 UTC
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP Jan Schunk reports that his small NFS servers suffer from memory exhaustion after just a few days. A bisect shows that commit e18e157bb5c8 ("SUNRPC: Send RPC message on TCP with a single sock_sendmsg() call") is the first bad commit. That commit assumed that sock_sendmsg() releases all the pages in the underlying bio_vec array, but the reality is that it doesn't. svc_xprt_release() releases the rqst's response pages, but the record marker page fragment isn't one of those, so it is never released. This is a narrow fix that can be applied to stable kernels. A more extensive fix is in the works.
osv:CVE-2024-35882
Kernel
Fixed versions: 6.6.26, 6.8.5
Complete source record
{
"id": "75f2aef2c02fd8a2d8fa804bba0a0d6e20f2b1f64385297d74de8356e825c550",
"url": "https://osv.dev/vulnerability/CVE-2024-35882",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP",
"summary": "In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP Jan Schunk reports that his small NFS servers suffer from memory exhaustion after just a few days. A bisect shows that commit e18e157bb5c8 (\"SUNRPC: Send RPC message on TCP with a single sock_sendmsg() call\") is the first bad commit. That commit assumed that sock_sendmsg() releases all the pages in the underlying bio_vec array, but the reality is that it doesn't. svc_xprt_release() releases the rqst's response pages, but the record marker page fragment isn't one of those, so it is never released. This is a narrow fix that can be applied to stable kernels. A more extensive fix is in the works.",
"evidence": "osv:CVE-2024-35882",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.26",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-35882",
"aliases": [
"CVE-2024-35882"
],
"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": "e18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4"
},
{
"fixed": "1ba1291172f935e6b6fe703161a948f3347400b8"
},
{
"fixed": "a2ebedf7bcd17a1194a0a18122c885eb578ee882"
},
{
"fixed": "05258a0a69b3c5d2c003f818702c0a52b6fea861"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35882.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.26"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.8.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35882.json"
}
}
],
"modified": "2026-10-28T02:30:31.330880216Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/05258a0a69b3c5d2c003f818702c0a52b6fea861",
"https://git.kernel.org/stable/c/1ba1291172f935e6b6fe703161a948f3347400b8",
"https://git.kernel.org/stable/c/a2ebedf7bcd17a1194a0a18122c885eb578ee882",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35882.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-35882",
"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/35xxx/CVE-2024-35882.json"
}
},
"related_cves": [
{
"value": "CVE-2024-35882",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497896,
"published_at": "2024-05-19T08:34:39.185+00:00"
}