AZL-118403: CVE-2026-143242 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
btrfs: zoned: fix possible UAF in waitebwritebacks()
waitebwritebacks() iterates the fsinfo->buffertree xarray and waits for the writeback of these extent-buffers. Waiting for writeback needs to be done without the rcureadlock() held (because it can sleep) and thus the loop drops the rcureadlock() before calling into waitonextentbufferwriteback(). But extentbuffers are freed through RCU, so if btrfsreleaseextentbufferrcu() is scheduled while we're still waiting on the writeback, the extentbuffer will be freed causing a use-after-free.
Similar to what is done in findextentbuffernolock(), get a reference to the extentbuffer before calling into waitonextentbufferwriteback() so a successful writeback does not free the extentbuffer while we still have a reference to it.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue is in the Azure Linux kernel package version 6.6.161.1-1 and affects the Btrfs zoned code path. Systems not using Btrfs zoned functionality are not described as reaching the vulnerable path.
What condition triggers the use-after-free?
The condition occurs when wait_eb_writebacks() drops its RCU read lock to wait for an extent buffer's writeback, while that extent buffer is concurrently scheduled for RCU-based release. The buffer can then be freed before the writeback wait completes.
How can I determine whether a system may be affected?
Check whether the system is running the Azure Linux kernel package version 6.6.161.1-1 and uses Btrfs zoned functionality. The provided information does not include a fixed package version or a detection method for prior exploitation.