CVE-2025-38370
Linux Ubuntu vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's BTRFS filesystem has been identified and assigned CVE-2025-38370. The issue relates to a failure in rebuilding the free space tree when using multiple transactions. This vulnerability was discovered and disclosed in July 2025, affecting the BTRFS filesystem implementation in the Linux kernel (Red Hat CVE).

Technical details

The vulnerability occurs during the rebuilding of a free space tree in BTRFS, specifically when modifying the free space tree requires allocating a new metadata block group across multiple transactions. When btrfsendtransaction() is called, it triggers btrfscreatependingblockgroups() which attempts to add items to the free space tree for the block group. Subsequently, during the free space tree rebuild in btrfsrebuildfreespacetree(), the system may encounter these new block groups and attempt to populate the free space tree for them, resulting in a -EEXIST error due to pre-existing items. The vulnerability has been assigned a CVSS v3.1 score of 5.5 with a vector of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (Red Hat CVE).

Impact

The vulnerability results in transaction abortion with error -17 (EEXIST) during the free space tree rebuild process. This can lead to filesystem operation failures and potential system instability, though it does not impact confidentiality or integrity of the data (Red Hat CVE).

Mitigation and workarounds

Red Hat has confirmed that Red Hat Enterprise Linux versions 6, 7, 8, 9, and their respective kernel-rt variants are not affected by this vulnerability. A fix has been implemented in the Linux kernel to address the free space tree rebuilding issue (Red Hat CVE).

Additional resources


SourceThis report was generated using AI

Related Linux Ubuntu vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40266MEDIUM6.5
  • Linux DebianLinux Debian
  • linux-azure-fips
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoNoDec 04, 2025
CVE-2025-40263MEDIUM5.1
  • Linux DebianLinux Debian
  • linux
NoNoDec 04, 2025
CVE-2025-66270MEDIUM4.7
  • Linux DebianLinux Debian
  • gnome-shell-extension-gsconnect
NoYesDec 05, 2025
CVE-2025-40265N/AN/A
  • Linux DebianLinux Debian
  • linux-azure-fips
NoNoDec 04, 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