# CVE-2026-98090: btrfs: restore active device pointers after failed sprout

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-09-25T10:24:23.474Z
- Modified: 2026-10-23T19:00:22.020Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: restore active device pointers after failed sprout

btrfs_init_new_device() switches latest_dev and possibly s_bdev from the
seed device to the new sprout device before creating the first writable
chunks.

If chunk creation or the subsequent sprout setup fails, the error path
releases the new device without switching those pointers back.
btrfs_show_devname() can then dereference the freed latest_dev and crash.

Restore the active device pointers to the latest seed device before
removing and releasing the failed sprout device.

(As written by CVE List.)

## Affected

- Linux Linux: from a6e7e218a4d6488d56727a7d9aee1b7e78c0c485 before 46863a9f93186e620c70584f91c8d5d95da83eff; from b7cb29e666fe79dda5dbe5f57fb7c92413bf161c before 49179f13c04735c55fd0f43b03696c015b067137; from b7cb29e666fe79dda5dbe5f57fb7c92413bf161c before 0a0ee38ad6324ac1603079bb785f784191576bd5; from b7cb29e666fe79dda5dbe5f57fb7c92413bf161c before 2ee5c4bc11007c51f63f0c1be5d3f07f2b404ff7; from b7cb29e666fe79dda5dbe5f57fb7c92413bf161c before e127ac29a52134d0f4cba39d38e4b375deb3d1aa; from b7cb29e666fe79dda5dbe5f57fb7c92413bf161c before b79b4b29003690acfade8241998fc0104ef9c84c; from b7cb29e666fe79dda5dbe5f57fb7c92413bf161c before e0b54613aabeb8e9da597f23b90c6a03d0981986; from 5.15.11 before 5.15.222; 5.16 (not affected: before 5.16; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 5.13 before 5.15.222; from 5.16 before 6.1.189; from 6.2 before 6.6.158; from 6.7 before 6.12.111; from 6.13 before 6.18.53; from 6.19 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/46863a9f93186e620c70584f91c8d5d95da83eff> (patch)
- <https://git.kernel.org/stable/c/49179f13c04735c55fd0f43b03696c015b067137> (patch)
- <https://git.kernel.org/stable/c/0a0ee38ad6324ac1603079bb785f784191576bd5> (patch)
- <https://git.kernel.org/stable/c/2ee5c4bc11007c51f63f0c1be5d3f07f2b404ff7> (patch)
- <https://git.kernel.org/stable/c/e127ac29a52134d0f4cba39d38e4b375deb3d1aa> (patch)
- <https://git.kernel.org/stable/c/b79b4b29003690acfade8241998fc0104ef9c84c> (patch)
- <https://git.kernel.org/stable/c/e0b54613aabeb8e9da597f23b90c6a03d0981986> (patch)

## Sources

- CVE List: [CVE-2026-98090](https://www.cve.org/CVERecord?id=CVE-2026-98090), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98090](https://nvd.nist.gov/vuln/detail/CVE-2026-98090), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-98090 · Whole record: https://cve.day/CVE-2026-98090.json · Rebuilt by cve.day 2026-11-25T22:59:41.055Z
