CVE-2025-38382

btrfs: fix iteration of extrefs during log replay

published July 25, 2025

CVSS
—
EPSS
0%
Percentile
7.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00187 · 7.9th percentile
Published
2025-07-25T12:53Z
EPSS history
Timeline
  • 25 JUL 12:53Z
    btrfs: fix iteration of extrefs during log replay
    cvelistv5