CVE-2026-31454

xfs: save ailp before dropping the AIL lock in push callbacks

State
Published
Severity
7.8 High
Published
Apr 22, 2026
Updated
Oct 19, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

xfs: save ailp before dropping the AIL lock in push callbacks

In xfs_inode_item_push() and xfs_qm_dquot_logitem_push(), the AIL lock is dropped to perform buffer IO. Once the cluster buffer no longer protects the log item from reclaim, the log item may be freed by background reclaim or the dquot shrinker. The subsequent spin_lock() call dereferences lip->li_ailp, which is a use-after-free.

Fix this by saving the ailp pointer in a local variable while the AIL lock is held and the log item is guaranteed to be valid.

Scores

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

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before edd1637d4e3911ab6c760f553f2040fe72f61a13Affected
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before 19437e4f7bb909afde832b39372aa2f3ce3cfd88Affected
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before 6dbe17f19c290a72ce57d5abc70e1fad0c3e14e5Affected
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before 75669e987137f49c99ca44406bf0200d1892dd16Affected
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before d8fc60bbaf5aea1604bf9f4ed565da6a1ac7a87dAffected
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before 50f5f056807b7bed74f4f307f2ca0ed92f3e556dAffected
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before 4c7d50147316cf049462f327c4a3e9dc2b7f1dd0Affected
  • 90c60e16401248a4900f3f9387f563d0178dcf34 to before 394d70b86fae9fe865e7e6d9540b7696f73aa9b6Affected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.253 through 5.10.*Not affected
  • 5.15.203 through 5.15.*Not affected
  • 6.1.168 through 6.1.*Not affected
  • 6.6.131 through 6.6.*Not affected
  • 6.12.80 through 6.12.*Not affected
  • 6.18.21 through 6.18.*Not affected
  • 6.19.11 through 6.19.*Not affected
  • 7.0 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.