xfs: fix cursor and pointer handling when recovering iunlink buckets
In the Linux kernel, the following vulnerability has been resolved: xfs: fix cursor and pointer handling when recovering iunlink buckets LOLLM pointed out a bug in xlog_recover_iunlink_bucket: 1. We don't null out prev_ip after releasing it, which can lead to UAF problems if the inodegc flush call in the loop fails. at which point I noticed even more bugs: 2. If the inodegc flush inside the loop fails, we also leak @ip. 3. We set prev_agino to agino having already advanced agino, which results in inodes with i_prev_unlinked set to itself. 4. If we exit the bottom of the loop with prev_ip set, then prev_ip aliases ip and we also set its i_prev_unlinked to itself. Bugs 3 and 4 introduce loops into the unlinked list, though these loops don't surface because we immediately flush each unlinked inode after loading it. Fix all of these issues.
CVE-2026-98443
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-98443
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": "04755d2e5821b3afbaadd09fe5df58d04de36484",
"lessThan": "47a948ba653a463d429e02fda2f06a3d6b78666d",
"versionType": "git"
},
{
"status": "affected",
"version": "04755d2e5821b3afbaadd09fe5df58d04de36484",
"lessThan": "8c9d5b8a96d6b93eb24e07b4163c89341ba29bd1",
"versionType": "git"
},
{
"status": "affected",
"version": "04755d2e5821b3afbaadd09fe5df58d04de36484",
"lessThan": "66a2179d02668f8df44b1a249899006f3ba38ea0",
"versionType": "git"
},
{
"status": "affected",
"version": "04755d2e5821b3afbaadd09fe5df58d04de36484",
"lessThan": "961c717e6bf0e53c2c2b1fe4aef1add9390fedab",
"versionType": "git"
},
{
"status": "affected",
"version": "04755d2e5821b3afbaadd09fe5df58d04de36484",
"lessThan": "65f39d09d73718611cee40399179323b5d4ead00",
"versionType": "git"
}
],
"programFiles": [
"fs/xfs/xfs_log_recover.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.0"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.113",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"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/xfs_log_recover.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98443
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #55673 · Revision 1
- Added to Heist Feed
- Publisher date