CVE-2025-38243

btrfs: fix invalid inode pointer dereferences during log replay

MEDIUM
5.5
CVSS Score
Published: July 9, 2025 at 10:42 AM UTC
Updated: June 17, 2026 at 09:16 AM UTC
1 product affected across 1 vendorLinux Kernel

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 invalid inode pointer dereferences during log replay In a few places where we call read_one_inode(), if we get a NULL pointer we end up jumping into an error path, or fallthrough in case of __add_inode_ref(), where we then do something like this: iput(&inode->vfs_inode); which results in an invalid inode pointer that triggers an invalid memory access, resulting in a crash. Fix this by making sure we don't do such dereferences.

Affected

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

6.15 ≤ v < 6.15.56.15 ≤ v < 6.16502d1127436a69b8c2e7cf309ae0ebff33326686.156.16 rc16.16 rc26.16 rc3b4c50cbb01a1b6901d2b94469636dd80fa93de81
Vendor states this is fixed in 2dcf838cf5c2f0f4501edaa1680fcad03618d760 (fixed)
Vendor states this is fixed in 401d098f92ea69d8a75f8b845daf343e511681ba (fixed)
Vendor states this is fixed in ba8386d662cc51cc5382688bbf7a152b0b0b27cf (fixed)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.15.5 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2dcf838cf5c2f0f4501edaa1680fcad03618d760
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/401d098f92ea69d8a75f8b845daf343e511681ba
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ba8386d662cc51cc5382688bbf7a152b0b0b27cf

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-476

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