Bug 2383423 (CVE-2025-38382) - CVE-2025-38382 kernel: btrfs: fix iteration of extrefs during log replay
Summary: CVE-2025-38382 kernel: btrfs: fix iteration of extrefs during log replay
Keywords:
Status: NEW
Alias: CVE-2025-38382
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-25 14:03 UTC by OSIDB Bzimport
Modified: 2025-07-25 18:48 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-25 14:03:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.