CVE-2025-38382

btrfs: fix iteration of extrefs during log replay

State
Published
Severity
7.8 High
Published
Jul 25, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e to before 539969fc472886a1d63565459514d47e27fef461Affected
  • e43eec81c5167b655b72c781b0e75e62a05e415e to before 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171Affected
  • e43eec81c5167b655b72c781b0e75e62a05e415e to before 7ac790dc2ba00499a8d671d4a24de4d4ad27e234Affected
  • e43eec81c5167b655b72c781b0e75e62a05e415e to before aee57a0293dca675637e5504709f9f8fd8e871beAffected
  • e43eec81c5167b655b72c781b0e75e62a05e415e to before 54a7081ed168b72a8a2d6ef4ba3a1259705a2926Affected
  • 6.1.57 to before 6.1.144Affected
LinuxLinux
  • 6.2Affected
  • before 6.2Not affected
  • 6.1.144 through 6.1.*Not affected
  • 6.6.97 through 6.6.*Not affected
  • 6.12.37 through 6.12.*Not affected
  • 6.15.6 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.