xfs: don't let hidden_space go negative in xfs_metafile_resv_init
In the Linux kernel, the following vulnerability has been resolved: xfs: don't let hidden_space go negative in xfs_metafile_resv_init LOLLM points out that if the amount of fdblocks that we can reserve for a metadata btree file goes below the space already used by that file, then the hidden_space subtraction can underflow, causing xfs_dec_fdblocks to subtract a huge amount of space. We never want the target to be less than the used sapce, so fix the logic that adjusts dblocks_avail downwards. Also fix an error in the adjacent comment.
CVE-2026-98446
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-98446
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": "1df8d75030b787a9fae270b59b93eef809dd2011",
"lessThan": "930a9c1c321efdaa3e7f8caecb0479cee3baf342",
"versionType": "git"
},
{
"status": "affected",
"version": "1df8d75030b787a9fae270b59b93eef809dd2011",
"lessThan": "f0d8352a39f4a2e329ae45b71bb0d49e2ca0a6dc",
"versionType": "git"
},
{
"status": "affected",
"version": "1df8d75030b787a9fae270b59b93eef809dd2011",
"lessThan": "476582d754cdc5110f806001417fea6c77824c13",
"versionType": "git"
}
],
"programFiles": [
"fs/xfs/libxfs/xfs_metafile.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.15"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.15",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.18.55",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.9",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/xfs/libxfs/xfs_metafile.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98446
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #38504 · Revision 1
- Added to Heist Feed
- Publisher date