CVE-2026-143379

Source
https://cve.org/CVERecord?id=CVE-2026-143379
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143379.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143379
Downstream
Published
2026-12-03T09:22:26Z
Modified
2026-12-03T11:02:13Z
Summary
btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing
Details

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 fs_info->scrub_pause_wait wait queue and then sets dev->scrub_sctx to NULL. On the other hand the scrub cancel code (btrfs_scrub_cancel_dev()) waits on that wait queue for dev->scrub_sctx to be NULL. So this means if btrfs_scrub_cancel_dev() is called right when scrub is finishing and sees the wakeup before the NULL is assigned to dev->scrub_sctx by btrfs_scrub_dev(), it hangs.

Fix this by doing the wakeup in btrfs_scrub_dev() after setting dev->scrub_sctx to NULL.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143379.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a2de733c78fa7af51ba9670482fa7d392aa67c57
Fixed
298319ceee5ce66191b311b6b6d02c2fa0f6502a
Fixed
8690b22c1cdb1d8656f1aee14025b642c93bd522
Fixed
d2b84032dddadbfcaf6818bfc890e7064c2ba692
Fixed
93099408648282c4e0bc4f8b7311215a15e7e3b4
Fixed
679600b3b1460aa715ffbe0c7570bdd5f7b4fde9
Show 1 more event Show fewer events
Fixed
bda65e5115fe66ee0d8cf4ade11807f9fca4f0e1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143379.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
5.10.276
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.227
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.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-143379.json"