# CVE-2026-90259: btrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()

- 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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-09-17T16:07:57.416Z
- Modified: 2026-10-30T13:20:47.930Z
- Assigned by: Linux

## Description

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

btrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()

In that function, we round down the start position and round up the
ending position.

But during the calculation of @len, we use "round_up(start + len,
sectorsize)", which is the rounded up end position, not the rounded up
length.

Which results a much larger length, and later we are still using
"start + len", which is completely incorrect.

Fix it by declaring a local @aligned_start and @aligned_len and use them
instead.

(As written by CVE List.)

## Affected

- Linux Linux: from bc42bda22345efdb5d8b578d1b4df2c6eaa85c58 before 036e6c216be66a085da3a0519f1be5f3230b6e26; from bc42bda22345efdb5d8b578d1b4df2c6eaa85c58 before 202ac9e469b78817512921c5db05cc2140e4ca43; from bc42bda22345efdb5d8b578d1b4df2c6eaa85c58 before 34adc843c28e5cd1f533a1d64f51b0f756fdf945; from bc42bda22345efdb5d8b578d1b4df2c6eaa85c58 before e6edde29990af8064b9d12217ec03db231ccd55d; from bc42bda22345efdb5d8b578d1b4df2c6eaa85c58 before c4c136555ff90f1e2921cc42da43daac0ef9985e; from bc42bda22345efdb5d8b578d1b4df2c6eaa85c58 before 9102b179512e11644fb0489ae62010a09afa199c; 4.13 (not affected: before 4.13; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/036e6c216be66a085da3a0519f1be5f3230b6e26>
- <https://git.kernel.org/stable/c/202ac9e469b78817512921c5db05cc2140e4ca43>
- <https://git.kernel.org/stable/c/34adc843c28e5cd1f533a1d64f51b0f756fdf945>
- <https://git.kernel.org/stable/c/e6edde29990af8064b9d12217ec03db231ccd55d>
- <https://git.kernel.org/stable/c/c4c136555ff90f1e2921cc42da43daac0ef9985e>
- <https://git.kernel.org/stable/c/9102b179512e11644fb0489ae62010a09afa199c>

## Sources

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

---

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