CVE-2025-38382

btrfs: fix iteration of extrefs during log replay

MEDIUM
5.5
CVSS Score
Published: July 25, 2025 at 12:53 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix iteration of extrefs during log replay At __inode_add_ref() when processing extrefs, if we jump into the next label we have an undefined value of victim_name.len, since we haven't initialized it before we did the goto. This results in an invalid memory access in the next iteration of the loop since victim_name.len was not initialized to the length of the name of the current extref. Fix this by initializing victim_name.len with the current extref's name length.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.1.57 ≤ v < 6.1.1446.13 ≤ v < 6.15.66.2 ≤ v < 6.12.376.2 ≤ v < 6.15.66.2 ≤ v < 6.166.2 ≤ v < 6.6.976.7 ≤ v < 6.12.371cf474cd474bc5d3ef63086ffd009a87a5b7bb2e6.1.576.16 rc16.16 rc26.16 rc36.16 rc4e43eec81c5167b655b72c781b0e75e62a05e415e
Vendor states this is fixed in 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171 (fixed)
Vendor states this is fixed in 539969fc472886a1d63565459514d47e27fef461 (fixed)
Vendor states this is fixed in 54a7081ed168b72a8a2d6ef4ba3a1259705a2926 (fixed)
Vendor states this is fixed in 7ac790dc2ba00499a8d671d4a24de4d4ad27e234 (fixed)
Vendor states this is fixed in aee57a0293dca675637e5504709f9f8fd8e871be (fixed)
Vendor states this is fixed in 6.1.144 (unaffected)
Vendor states this is fixed in 6.12.37 (unaffected)
Vendor states this is fixed in 6.15.6 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)
Vendor states this is fixed in 6.6.97 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/539969fc472886a1d63565459514d47e27fef461
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/54a7081ed168b72a8a2d6ef4ba3a1259705a2926
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7ac790dc2ba00499a8d671d4a24de4d4ad27e234
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aee57a0293dca675637e5504709f9f8fd8e871be
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card