CVE-2026-98443

xfs: fix cursor and pointer handling when recovering iunlink buckets

State
Published
Severity
7.8 High
Published
Oct 18, 2026
Updated
Oct 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 04755d2e5821b3afbaadd09fe5df58d04de36484 to before 8cfde7b2fb7288f4f6b90293e8702ff897c682feAffected
  • 04755d2e5821b3afbaadd09fe5df58d04de36484 to before 47a948ba653a463d429e02fda2f06a3d6b78666dAffected
  • 04755d2e5821b3afbaadd09fe5df58d04de36484 to before 8c9d5b8a96d6b93eb24e07b4163c89341ba29bd1Affected
  • 04755d2e5821b3afbaadd09fe5df58d04de36484 to before 66a2179d02668f8df44b1a249899006f3ba38ea0Affected
  • 04755d2e5821b3afbaadd09fe5df58d04de36484 to before 961c717e6bf0e53c2c2b1fe4aef1add9390fedabAffected
  • 04755d2e5821b3afbaadd09fe5df58d04de36484 to before 65f39d09d73718611cee40399179323b5d4ead00Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.113 through 6.12.*Not affected
  • 6.18.55 through 6.18.*Not affected
  • 7.2.9 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.