CVE-2024-35882
SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP
Reported by linux · Published May 19, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | a2ebedf7bcd17a1194a0a18122c885eb578ee882, 1ba1291172f935e6b6fe703161a948f3347400b8, 05258a0a69b3c5d2c003f818702c0a52b6fea861 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4, e18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4, e18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4 |
| Linux | Linux | 6.6, 0, 6.6.26 |
| Linux | Linux | *, 6.6.26, 6.8.5 |
| linux | linux_kernel | 6.6, 6.6, 6.6 |
Timeline
- May 19, 2024 CVE Published
- May 20, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (12 in total, the first dated here)
- Jan 10, 2026 Security Advisory (436 in total, the first dated here)
- Jan 10, 2026 CVE Updated
- Mar 30, 2026 Distribution Patch (331 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-35882
vulnetix vdb fixes CVE-2024-35882
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35882/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart