PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-35882: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-35882 is a memory leak vulnerability discovered in the Linux kernel's SUNRPC (Sun Remote Procedure Call) implementation when handling RPC-over-TCP connections. The vulnerability was discovered when small NFS servers were reported to suffer from memory exhaustion after just a few days of operation. The issue affects Linux kernel versions from 6.7 up to (excluding) 6.8.5, and versions from 6.6 up to (excluding) 6.6.26 (NVD).

Technical details

The vulnerability stems from a flaw introduced by commit e18e157bb5c8 ("SUNRPC: Send RPC message on TCP with a single sock_sendmsg() call"). The commit incorrectly assumed that sock_sendmsg() releases all pages in the underlying bio_vec array. However, while svc_xprt_release() releases the request's response pages, the record marker page fragment remains unreleased, leading to a gradual memory leak. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, Kernel Patch).

Impact

The primary impact of this vulnerability is a slow but steady memory leak in NFS servers using RPC-over-TCP connections. Over time, this leads to memory exhaustion on affected systems, potentially causing service degradation or system instability (Kernel Patch).

Exploitability

The vulnerability requires local access with privileged permissions to exploit. It primarily affects systems running NFS servers with RPC-over-TCP connections enabled (NVD).

Mitigation and workarounds

A fix has been developed and committed to the Linux kernel. The solution involves properly freeing the page fragment using page_frag_free(buf) after the sock_sendmsg() call. System administrators should update to kernel versions 6.8.5 or later, or 6.6.26 or later, depending on their kernel series (Kernel Patch).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

bullseye

linux

Fixed

sid

linux: 6.8.9-1

Fixed

trixie

linux: 6.8.9-1

Fixed

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-7356HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules
NoYesOct 21, 2026
CVE-2026-98862MEDIUM6
  • Linux Kernel logoLinux Kernel
  • python3-perf
NoYesOct 18, 2026
CVE-2026-98859MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k
NoYesOct 18, 2026
CVE-2026-98861MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules-internal
NoYesOct 18, 2026
CVE-2026-98863NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-devel-matched
NoYesOct 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management