CVE-2026-143379: btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing

Published Dec 3, 2026
·
Updated

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

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=3.0.0<5.10.276
5.10.276
linux/kernel>=5.11.0<5.15.227
5.15.227
linux/kernel>=5.16.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.276
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.227
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  6. Compensating control

    In btrfs_scrub_dev(), perform the wakeup after setting dev->scrub_sctx to NULL.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description
Data Sourced
via OSV·09:22 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Which upstream stable changes contain the fix?

The referenced stable changes are 298319ceee5ce66191b311b6b6d02c2fa0f6502a, 8690b22c1cdb1d8656f1aee14025b642c93bd522, and d2b84032dddadbfcaf6818bfc890e7064c2ba692.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203