All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-90259

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-21

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.

A flaw was found in btrfs qgroup. An incorrect length calculation in the qgroup_free_reserved_data() function can lead to a much larger length being used than intended. This error in calculation may result in improper data handling, potentially causing system instability or data corruption.