Linux kernel race condition in Btrfs superblock reads
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
In the Linux kernel, the following vulnerability has been resolved:
btrfs: protect sb_write_pointer() with invalidate lock
sb_write_pointer() reads the super block from the block device page cache using read_cache_page_gfp(). This has the same race with BLKBSZSET as the one fixed by commit 3f29d661e568 ("btrfs: sync read disk super and set block size").
Take the mapping invalidate lock around read_cache_page_gfp() to serialize the read against block size changes.
From the CVE record · Linux
References
- git.kernel.org/stable/c/80cd97c5e90096d040a623851795eac92fbd0ff1
- git.kernel.org/stable/c/123b9a545f4d0348e81f558a032bf2a93ee5722f
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98907.json
- nvd.nist.gov/vuln/detail/CVE-2026-98907
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git