CVE-2025-38243

Source
https://cve.org/CVERecord?id=CVE-2025-38243
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38243.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38243
Downstream
Related
Published
2025-07-09T10:42:26.014Z
Modified
2026-03-20T12:42:45.754698Z
Summary
btrfs: fix invalid inode pointer dereferences during log replay
Details

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 readoneinode(), if we get a NULL pointer we end up jumping into an error path, or fallthrough in case of __addinoderef(), 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38243.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0502d1127436a69b8c2e7cf309ae0ebff3332668
Fixed
401d098f92ea69d8a75f8b845daf343e511681ba
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4c50cbb01a1b6901d2b94469636dd80fa93de81
Fixed
ba8386d662cc51cc5382688bbf7a152b0b0b27cf
Fixed
2dcf838cf5c2f0f4501edaa1680fcad03618d760

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38243.json"