{"id":"CVE-2026-143242","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:18:03.563","lastModified":"2026-12-03T10:18:03.563","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: zoned: fix possible UAF in wait_eb_writebacks()\n\nwait_eb_writebacks() iterates the fs_info->buffer_tree xarray and waits\nfor the writeback of these extent-buffers. Waiting for writeback needs\nto be done without the rcu_read_lock() held (because it can sleep) and\nthus the loop drops the rcu_read_lock() before calling into\nwait_on_extent_buffer_writeback(). But extent_buffers are freed through\nRCU, so if btrfs_release_extent_buffer_rcu() is scheduled while we're\nstill waiting on the writeback, the extent_buffer will be freed causing\na use-after-free.\n\nSimilar to what is done in find_extent_buffer_nolock(), get a reference\nto the extent_buffer before calling into\nwait_on_extent_buffer_writeback() so a successful writeback does not\nfree the extent_buffer while we still have a reference to it."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/btrfs/zoned.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2dd7e7bc02829eded71be2342a93dc035f5223f9","lessThan":"c5c4e275a5f95f016cd9a0e3cfda63f44b7a9234","versionType":"git","status":"affected"},{"version":"2dd7e7bc02829eded71be2342a93dc035f5223f9","lessThan":"03b6dadd0fcb77b7ebcaf3a007f0880acb4844f5","versionType":"git","status":"affected"},{"version":"2dd7e7bc02829eded71be2342a93dc035f5223f9","lessThan":"8ca411c7ad2c02ae65ae208a3f7483d6e0159c4f","versionType":"git","status":"affected"},{"version":"eecada16bcc43562539a466c420697fae53f1c60","versionType":"git","status":"affected"},{"version":"5.19.12","lessThan":"5.20","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/btrfs/zoned.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/03b6dadd0fcb77b7ebcaf3a007f0880acb4844f5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8ca411c7ad2c02ae65ae208a3f7483d6e0159c4f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c5c4e275a5f95f016cd9a0e3cfda63f44b7a9234","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}