# CVE-2025-38243: btrfs: fix invalid inode pointer dereferences during log replay

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-07-09T10:42:26.014Z
- Modified: 2026-06-17T09:16:27.990Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0502d1127436a69b8c2e7cf309ae0ebff3332668 before 401d098f92ea69d8a75f8b845daf343e511681ba; from b4c50cbb01a1b6901d2b94469636dd80fa93de81 before ba8386d662cc51cc5382688bbf7a152b0b0b27cf; from b4c50cbb01a1b6901d2b94469636dd80fa93de81 before 2dcf838cf5c2f0f4501edaa1680fcad03618d760; 6.15 (not affected: before 6.15; from 6.15.5 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.15 before 6.15.5; 6.16

## References

- <https://git.kernel.org/stable/c/401d098f92ea69d8a75f8b845daf343e511681ba> (patch)
- <https://git.kernel.org/stable/c/ba8386d662cc51cc5382688bbf7a152b0b0b27cf> (patch)
- <https://git.kernel.org/stable/c/2dcf838cf5c2f0f4501edaa1680fcad03618d760> (patch)

## Sources

- CVE List: [CVE-2025-38243](https://www.cve.org/CVERecord?id=CVE-2025-38243), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38243](https://nvd.nist.gov/vuln/detail/CVE-2025-38243), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38243 · Whole record: https://cve.day/CVE-2025-38243.json · Rebuilt by cve.day 2026-11-25T22:59:01.004Z
