CVE-2025-39866
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2025-39866) was discovered in the Linux kernel's filesystem writeback mechanism, specifically in the markinodedirty() function. The vulnerability was disclosed on September 19, 2025, affecting various Linux kernel versions including 5.10.x through 6.16.x. The issue occurs when markinodedirty() accesses the bdi_writeback that is in the process of switching (NVD, Debian Tracker).

Technical details

The vulnerability manifests as a race condition in the kernel's filesystem writeback mechanism. The issue occurs during the inode dirty marking process when the bdiwriteback is being switched. The problem specifically involves the interaction between _markinodedirty(), inodeswitchwbsworkfn, and wbwakeupdelayed() functions. Red Hat has assigned this vulnerability a CVSS v3.1 base score of 7.0 (AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H) (Red Hat).

Impact

The vulnerability affects multiple Linux distributions and versions, including Red Hat Enterprise Linux 6 through 10, Debian Bullseye, Bookworm, and Trixie. The use-after-free condition could potentially lead to system crashes, data corruption, or privilege escalation (Debian Tracker, Red Hat).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 6.16.7-1 and later. The fix involves holding the inode spinlock until wbwakeupdelayed() has finished execution. Debian has marked this as fixed in their 'forky' and 'sid' distributions with version 6.16.7-1 (Debian Tracker).

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-39866N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-devel
NoYesSep 19, 2025
CVE-2025-39865N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-devel-matched
NoYesSep 19, 2025
CVE-2025-39864N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoYesSep 19, 2025
CVE-2025-39863N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesSep 19, 2025
CVE-2025-39861N/AN/A
  • Linux KernelLinux Kernel
  • rv
NoYesSep 19, 2025

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