{"id":"CVE-2026-143242","summary":"btrfs: zoned: fix possible UAF in wait_eb_writebacks()","details":"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-\u003ebuffer_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.","modified":"2026-12-03T11:01:46.777529552Z","published":"2026-12-03T09:20:54.340Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143242.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/03b6dadd0fcb77b7ebcaf3a007f0880acb4844f5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ca411c7ad2c02ae65ae208a3f7483d6e0159c4f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c5c4e275a5f95f016cd9a0e3cfda63f44b7a9234"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143242.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143242"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2dd7e7bc02829eded71be2342a93dc035f5223f9"},{"fixed":"c5c4e275a5f95f016cd9a0e3cfda63f44b7a9234"},{"fixed":"03b6dadd0fcb77b7ebcaf3a007f0880acb4844f5"},{"fixed":"8ca411c7ad2c02ae65ae208a3f7483d6e0159c4f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"eecada16bcc43562539a466c420697fae53f1c60"}]}],"versions":["v5.19.17","v5.19.16","v5.19.15","v5.19.14","v5.19.13","v5.19.12"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143242.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.19.12"},{"fixed":"5.20"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143242.json"}}],"schema_version":"1.9.2"}