Junglewise Threat Intelligence

CVE-2026-31400: Linux Kernel memory leak in SunRPC cache_release

CVE-2026-31400 · Severity: medium · CVSS 5.5 · Published 2026-04-03

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A memory leak vulnerability was identified in the Linux kernel's SunRPC component, which handles remote procedure calls for network file systems. If a user closes a specific type of file while a data request is still being processed, the system fails to release the associated memory. Over time, an attacker could repeatedly trigger this behavior to exhaust system memory, potentially leading to a system crash or service outage.

Technical details

A memory leak exists in net/sunrpc/cache.c within the Linux kernel. When a reader's file descriptor is closed while in the middle of reading a cache_request (specifically when rp->offset is non-zero), the cache_release() function decrements the request's reader count but fails to check if the request should be freed. This occurs because cache_release() lacks the cleanup logic found in cache_read(), which handles cases where the reader count drops to zero while CACHE_PENDING is clear. A local attacker can exploit this by repeatedly opening and closing file descriptors during cache requests to exhaust kernel memory. Patches have been released for multiple stable kernel branches.

Affected products

  • Linux Linux Kernel 2.6.12.1 to 5.10.253, 5.11 to 5.15.203, 5.16 to 6.1.167, 6.2 to 6.6.130, 6.7 to 6.12.78, 6.13 to 6.18.20, 6.19 to 6.19.10

Timeline

  • 2026-04-03: disclosed: Initial disclosure of CVE-2026-31400
  • 2026-04-03: advisory
  • 2026-04-18: patched: Patch committed to stable tree by Greg Kroah-Hartman

References

Related threats