{"id":"CVE-2025-38243","state":"PUBLISHED","title":"btrfs: fix invalid inode pointer dereferences during log replay","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix invalid inode pointer dereferences during log replay\n\nIn a few places where we call read_one_inode(), if we get a NULL pointer\nwe end up jumping into an error path, or fallthrough in case of\n__add_inode_ref(), where we then do something like this:\n\n   iput(&inode->vfs_inode);\n\nwhich results in an invalid inode pointer that triggers an invalid memory\naccess, resulting in a crash.\n\nFix this by making sure we don't do such dereferences.","publishedAt":"2025-07-09T10:42:26.014Z","updatedAt":"2026-05-11T21:24:00.565Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0502d1127436a69b8c2e7cf309ae0ebff3332668","status":"affected","lessThan":"401d098f92ea69d8a75f8b845daf343e511681ba","versionType":"git"},{"version":"b4c50cbb01a1b6901d2b94469636dd80fa93de81","status":"affected","lessThan":"ba8386d662cc51cc5382688bbf7a152b0b0b27cf","versionType":"git"},{"version":"b4c50cbb01a1b6901d2b94469636dd80fa93de81","status":"affected","lessThan":"2dcf838cf5c2f0f4501edaa1680fcad03618d760","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/tree-log.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.15.5","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/tree-log.c"]}],"references":["https://git.kernel.org/stable/c/401d098f92ea69d8a75f8b845daf343e511681ba","https://git.kernel.org/stable/c/ba8386d662cc51cc5382688bbf7a152b0b0b27cf","https://git.kernel.org/stable/c/2dcf838cf5c2f0f4501edaa1680fcad03618d760"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38243.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38243","state":"PUBLISHED","datePublished":"2025-07-09T10:42:26.014Z","dateUpdated":"2026-05-11T21:24:00.565Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.996Z"},"containers":{"cna":{"title":"btrfs: fix invalid inode pointer dereferences during log replay","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix invalid inode pointer dereferences during log replay\n\nIn a few places where we call read_one_inode(), if we get a NULL pointer\nwe end up jumping into an error path, or fallthrough in case of\n__add_inode_ref(), where we then do something like this:\n\n   iput(&inode->vfs_inode);\n\nwhich results in an invalid inode pointer that triggers an invalid memory\naccess, resulting in a crash.\n\nFix this by making sure we don't do such dereferences."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0502d1127436a69b8c2e7cf309ae0ebff3332668","status":"affected","lessThan":"401d098f92ea69d8a75f8b845daf343e511681ba","versionType":"git"},{"version":"b4c50cbb01a1b6901d2b94469636dd80fa93de81","status":"affected","lessThan":"ba8386d662cc51cc5382688bbf7a152b0b0b27cf","versionType":"git"},{"version":"b4c50cbb01a1b6901d2b94469636dd80fa93de81","status":"affected","lessThan":"2dcf838cf5c2f0f4501edaa1680fcad03618d760","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/tree-log.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.15.5","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/tree-log.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/401d098f92ea69d8a75f8b845daf343e511681ba"},{"url":"https://git.kernel.org/stable/c/ba8386d662cc51cc5382688bbf7a152b0b0b27cf"},{"url":"https://git.kernel.org/stable/c/2dcf838cf5c2f0f4501edaa1680fcad03618d760"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:24:00.565Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.15.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}