CVE-2025-39877
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-39877 is a use-after-free vulnerability discovered in the Linux kernel's DAMON (Data Access MONitor) subsystem, specifically in the state_show() function. The vulnerability was publicly disclosed on September 23, 2025, affecting various Linux distributions and their kernel versions (NVD, Ubuntu).

Technical details

The vulnerability occurs in mm/damon/sysfs where state_show() reads kdamond->damon_ctx without holding damon_sysfs_lock. This creates a race condition that can lead to a use-after-free scenario when the context is freed or replaced under damon_sysfs_lock by concurrent operations like damon_sysfs_kdamonds_rm_dirs() and damon_sysfs_kdamond_release(). The issue has existed since state_show() first accessed kdamond->damon_ctx (NVD).

Impact

The vulnerability affects multiple Linux distributions including Ubuntu, Debian, and their derivatives. In Ubuntu, it impacts various kernel flavors including linux-azure, linux-gcp, and linux-aws across different versions. For Debian, it affects multiple releases including bookworm and trixie (Ubuntu, Debian).

Mitigation and workarounds

The fix involves taking damon_sysfs_lock before dereferencing the context, mirroring the locking mechanism used in pid_show(). Various Linux distributions have released patches to address this vulnerability. For example, Debian has fixed versions available in bullseye (5.10.237-1) and trixie (6.12.48-1) (Debian).

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
  • bpftool
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-nvidia-6.14
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • linux-oracle-6.14
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug-devel
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