Overview
About vulnerability
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.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , Debian 10 ELS , Debian 11 ELS , Oracle Linux 7 ELS , TuxCare 9.6 ESU , TuxCare 9.8 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- linux @ 5.10.259 (+12 more)