AZL-118706: CVE-2026-143379 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing
When scrub finishes, it does a wakeup on the fsinfo->scrubpausewait wait queue and then sets dev->scrubsctx to NULL. On the other hand the scrub cancel code (btrfsscrubcanceldev()) waits on that wait queue for dev->scrubsctx to be NULL. So this means if btrfsscrubcanceldev() is called right when scrub is finishing and sees the wakeup before the NULL is assigned to dev->scrubsctx by btrfsscrubdev(), it hangs.
Fix this by doing the wakeup in btrfsscrubdev() after setting dev->scrubsctx to NULL.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the hang?
The race requires a Btrfs scrub cancellation to occur while a scrub is finishing. The cancellation path can observe the scrub-completion wakeup before the device scrub context is cleared, then wait indefinitely for that context to become NULL.
What is the operational impact if the race occurs?
The scrub cancellation operation can hang. The provided information describes a lost wakeup in the Btrfs scrub cancellation path and does not indicate data corruption or privilege escalation.
How can I determine whether a system is exposed?
Systems using the affected azure-linux/kernel package version 6.6.161.1-1 are identified as affected by the provided data. Exposure is relevant where Btrfs scrub operations may be cancelled while they are completing.