# CVE-2026-98279: btrfs: handle lack of space when cleaning up verity items

- Severity: not scored yet
- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-06T08:45:39.114Z
- Modified: 2026-10-19T10:18:29.343Z
- Assigned by: Linux

## Description

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

btrfs: handle lack of space when cleaning up verity items

When enable_verity() hits the qgroup limit, rollback_verity() needs its
own metadata reservation. When the qgroup limit or lack of space refuses
the rollback, the whole filesystem is forced read-only even though the
qgroup limit was for one subvolume only. Also orphan cleanup at the next
mount fails the same way, so the leftover items are never removed: with
-EDQUOT the subvolume stays unreachable, and with -ENOSPC on a full
filesystem the next read-write mount fails.

Start transactions with btrfs_start_transaction_fallback_global_rsv() in
btrfs_orphan_cleanup(), drop_verity_items() and rollback_verity(). Those
calls only delete items and free the space in the end, so they may use
the global reserve and skip the qgroup limit, which avoids -ENOSPC and
-EDQUOT.

(As written by CVE List.)

## Affected

- Linux Linux: from 146054090b0859b28fc39015c7704ccc3c3a347f before 4b7ecabd87dc40998fe7870d7975279649229a3b; from 146054090b0859b28fc39015c7704ccc3c3a347f before efa5780b84f066f419a667f6b9542368b2f62074; from 146054090b0859b28fc39015c7704ccc3c3a347f before 76bf149cd0298544631e756670b89c399c7acbca; 5.15 (not affected: before 5.15; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/4b7ecabd87dc40998fe7870d7975279649229a3b>
- <https://git.kernel.org/stable/c/efa5780b84f066f419a667f6b9542368b2f62074>
- <https://git.kernel.org/stable/c/76bf149cd0298544631e756670b89c399c7acbca>

## Sources

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

---

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