# CVE-2024-35882: SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-05-19T08:34:39.185Z
- Modified: 2026-08-05T11:30:39.154Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4 before 1ba1291172f935e6b6fe703161a948f3347400b8; from e18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4 before a2ebedf7bcd17a1194a0a18122c885eb578ee882; from e18e157bb5c8c1cd8a9ba25acfdcf4f3035836f4 before 05258a0a69b3c5d2c003f818702c0a52b6fea861; 6.6 (not affected: before 6.6; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.6 before 6.6.26; from 6.7 before 6.8.5; 6.9

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/1ba1291172f935e6b6fe703161a948f3347400b8> (mailing-list, patch)
- <https://git.kernel.org/stable/c/a2ebedf7bcd17a1194a0a18122c885eb578ee882> (mailing-list, patch)
- <https://git.kernel.org/stable/c/05258a0a69b3c5d2c003f818702c0a52b6fea861> (mailing-list, patch)

## Sources

- CVE List: [CVE-2024-35882](https://www.cve.org/CVERecord?id=CVE-2024-35882), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35882](https://nvd.nist.gov/vuln/detail/CVE-2024-35882), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35882 · Whole record: https://cve.day/CVE-2024-35882.json · Rebuilt by cve.day 2026-11-25T22:58:40.580Z
