Skip to main content
← All vulnerabilities
CVE-2026-98907

btrfs: protect sb_write_pointer() with invalidate lock

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.222, 6.1.189, 6.6.158, 6.12.111, 6.18.53
None on Exploit-DB, Metasploit or GitHub

Summary

The Linux kernel's Btrfs filesystem code is affected. A race condition when reading the superblock from a block device's page cache could let a concurrent block size change cause a problem during that read, which may lead to incorrect data handling or a crash.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Record last updated

Affected versions

  • Linux Linux

    From 3c20917120ce61f2a123ca0810293872f4c6b5a4 · fixed in 80cd97c5e90096d040a623851795eac92fbd0ff1; From 3c20917120ce61f2a123ca0810293872f4c6b5a4 · fixed in 123b9a545f4d0348e81f558a032bf2a93ee5722f

  • Linux Linux

    6.15

  • KernelLinux

    fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53

References 6

git.kernel.org