btrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()
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.
CVE-2026-90259
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-90259
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "bc42bda22345efdb5d8b578d1b4df2c6eaa85c58",
"lessThan": "202ac9e469b78817512921c5db05cc2140e4ca43",
"versionType": "git"
},
{
"status": "affected",
"version": "bc42bda22345efdb5d8b578d1b4df2c6eaa85c58",
"lessThan": "34adc843c28e5cd1f533a1d64f51b0f756fdf945",
"versionType": "git"
},
{
"status": "affected",
"version": "bc42bda22345efdb5d8b578d1b4df2c6eaa85c58",
"lessThan": "e6edde29990af8064b9d12217ec03db231ccd55d",
"versionType": "git"
},
{
"status": "affected",
"version": "bc42bda22345efdb5d8b578d1b4df2c6eaa85c58",
"lessThan": "c4c136555ff90f1e2921cc42da43daac0ef9985e",
"versionType": "git"
},
{
"status": "affected",
"version": "bc42bda22345efdb5d8b578d1b4df2c6eaa85c58",
"lessThan": "9102b179512e11644fb0489ae62010a09afa199c",
"versionType": "git"
}
],
"programFiles": [
"fs/btrfs/qgroup.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.13"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.13",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.52",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/btrfs/qgroup.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-90259
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #48646 · Revision 1
- Added to Heist Feed
- Publisher date