CVE-2025-38554
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38554 is a use-after-free (UAF) vulnerability discovered in the Linux kernel's memory management subsystem, specifically related to virtual memory area (VMA) handling. The vulnerability was reported on August 19, 2025, and affects the Linux kernel's mm subsystem. The issue occurs when VMA's mm is freed after vm_refcnt is dropped, potentially leading to memory corruption (NVD).

Technical details

The vulnerability stems from a race condition in the lock_vma_under_rcu() function where a VMA may be concurrently freed and recycled by another process while being accessed. The issue became possible after VMAs were allowed to be recycled by adding SLAB_TYPESAFE_BY_RCU to their cache. When vma_start_read() increments vma->vm_refcnt, it can return a recycled VMA, leading to a mismatching ->vm_mm pointer. This causes vma_end_read() to drop the VMA through vma_refcount_put(), which incorrectly assumes the caller is keeping the VMA's mm alive (NVD).

Impact

The vulnerability can result in a use-after-free condition when rcuwait_wake_up() is called with a potentially freed mm structure. This could lead to memory corruption and potential system crashes or security implications in the Linux kernel (NVD).

Mitigation and workarounds

The issue has been fixed by moving vma->vm_mm verification into vma_start_read() and grabbing vma->vm_mm to stabilize it before vma_refcount_put() operation. Several Linux distributions have released patches to address this vulnerability, including Ubuntu which has fixed it in version 6.8.0-40.40 for some of its distributions (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-internal
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoYesJan 14, 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