Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-53174 Overview
CVE-2024-53174 is a use-after-free vulnerability [CWE-416] in the Linux kernel's SUNRPC (Sun Remote Procedure Call) subsystem. The flaw resides in the c_show function, which read cache entries under RCU (Read-Copy-Update) protection without ensuring the entry remained active. RCU protection prevents memory from being freed but does not stop the reference count from reaching zero. When cache_get is called on an entry whose refcount has already dropped to zero, the kernel triggers a refcount use-after-free condition. The upstream fix replaces cache_get with cache_get_rcu to ensure the cache entry remains valid during access.
Critical Impact
A local attacker with low privileges can trigger a refcount use-after-free in the SUNRPC subsystem by reading cache files under /proc, potentially leading to kernel memory corruption and local privilege escalation.
Affected Products
- Linux Kernel (multiple stable branches prior to the fix commits)
- Debian LTS distributions shipping affected kernel versions
- Downstream distributions and appliances using the vulnerable SUNRPC module
Discovery Timeline
- 2024-12-27 - CVE-2024-53174 published to the National Vulnerability Database
- 2025-03 - Debian LTS security announcements released addressing the issue
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-53174
Vulnerability Analysis
The vulnerability occurs in the SUNRPC cache subsystem, which is exposed to userspace through procfs entries such as /proc/net/rpc/*/content. When a user reads one of these files, the kernel invokes c_show to display cache entries. The function iterates over cache entries while holding an RCU read-side critical section.
RCU protection guarantees that the memory backing a cache entry (cp) will not be reclaimed during the critical section. However, RCU does not prevent the entry's reference count from being decremented to zero by concurrent code paths. When c_show then calls cache_get(cp) to acquire a reference, the refcount increments from zero, triggering the refcount_t: addition on 0; use-after-free warning and leaving the kernel operating on a logically freed object.
The fix replaces the unsafe cache_get call with cache_get_rcu, which refuses to increment a reference count that has already reached zero.
Root Cause
The root cause is an incorrect assumption about the guarantees provided by RCU. The original code conflated memory lifetime with object liveness. Because the reference count could reach zero while RCU still protected the allocation, calling cache_get on such an entry constituted a use-after-free on the logical object even though the backing memory remained mapped.
Attack Vector
Exploitation requires local access and the ability to read SUNRPC cache files exposed through procfs. An attacker races a reader of the SUNRPC cache content file against operations that drop the reference count of a cache entry. Triggering the race corrupts kernel state tracked by the refcount, which can be leveraged for further memory corruption. The vulnerability is local, low-complexity, and requires only low privileges. No verified public proof-of-concept is available.
Technical details are documented across the upstream fix commits, including Kernel Git Commit c7dac3af57e and Kernel Git Commit 068c0b50f3f.
Detection Methods for CVE-2024-53174
Indicators of Compromise
- Kernel log entries containing refcount_t: addition on 0; use-after-free with a call trace referencing c_show and the sunrpc module.
- WARNING messages originating from lib/refcount.c:25 (refcount_warn_saturate) correlated with reads of /proc/net/rpc/* paths.
- Unexpected process crashes or kernel oops events in workloads using NFS, rpc.gssd, or related SUNRPC consumers.
Detection Strategies
- Monitor dmesg and /var/log/kern.log for refcount saturation warnings referencing the SUNRPC subsystem.
- Inventory running kernel versions against the fixed commits listed in the vendor advisories to identify unpatched hosts.
- Audit which local users and services can read /proc/net/rpc/ entries to understand the realistic exploitation surface.
Monitoring Recommendations
- Forward kernel ring buffer logs to a centralized logging platform and alert on refcount_warn_saturate events.
- Track process execution reading SUNRPC procfs paths from unexpected UIDs on NFS servers and clients.
- Correlate kernel warnings with subsequent privilege escalation indicators such as unexpected setuid activity or new root-owned processes.
How to Mitigate CVE-2024-53174
Immediate Actions Required
- Apply vendor-supplied kernel updates on all affected systems, prioritizing NFS servers and multi-tenant hosts.
- Reboot patched systems to load the fixed kernel; live-patching should be used only where the distribution explicitly ships a live patch for this CVE.
- Restrict local shell access on systems that cannot be immediately patched to reduce exposure to low-privilege attackers.
Patch Information
Upstream fixes were merged across multiple stable branches. Reference the kernel.org commits for the exact changes, including Kernel Git Commit 02999e135b, Kernel Git Commit 2862eee078a, Kernel Git Commit acfaf37888e, Kernel Git Commit d882e2b7fa, Kernel Git Commit e9be26735d0, and Kernel Git Commit ec305f303b. Debian LTS users should follow Debian LTS Announcement msg00001 and Debian LTS Announcement msg00002.
Workarounds
- Where SUNRPC is not required, unload the sunrpc kernel module and blacklist it to eliminate the vulnerable code path.
- Tighten permissions and access controls on /proc/net/rpc/ so that only trusted service accounts can read cache content.
- Limit local user access on NFS clients and servers until the kernel update can be deployed.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

