CVE-2026-31453 PUBLISHED

xfs: avoid dereferencing log items after push callbacks

Assigner: Linux
Reserved: 09.03.2026 Published: 22.04.2026 Updated: 22.04.2026

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

xfs: avoid dereferencing log items after push callbacks

After xfsaild_push_item() calls iop_push(), the log item may have been freed if the AIL lock was dropped during the push. Background inode reclaim or the dquot shrinker can free the log item while the AIL lock is not held, and the tracepoints in the switch statement dereference the log item after iop_push() returns.

Fix this by capturing the log item type, flags, and LSN before calling xfsaild_push_item(), and introducing a new xfs_ail_push_class trace event class that takes these pre-captured values and the ailp pointer instead of the log item pointer.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 90c60e16401248a4900f3f9387f563d0178dcf34 to c8a2ab339b88d10fc34a3318c92f07d8a467019d (excl.)
  • affected from 90c60e16401248a4900f3f9387f563d0178dcf34 to 7121b22b0bac89394cc4c6a54b5aebc15347bdf5 (excl.)
  • affected from 90c60e16401248a4900f3f9387f563d0178dcf34 to c4d603e8e58a3bf35480135ccca2b4f7238abda5 (excl.)
  • affected from 90c60e16401248a4900f3f9387f563d0178dcf34 to 95fb5d643cc70959baa54cd17f52f80ffc3295e7 (excl.)
  • affected from 90c60e16401248a4900f3f9387f563d0178dcf34 to 451c6329d9afa45862c36fe6677eb7750db60617 (excl.)
  • affected from 90c60e16401248a4900f3f9387f563d0178dcf34 to 79ef34ec0554ec04bdbafafbc9836423734e1bd6 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.9 is affected
  • unaffected from 0 to 5.9 (excl.)
  • unaffected from 6.1.168 to 6.1.* (incl.)
  • unaffected from 6.6.131 to 6.6.* (incl.)
  • unaffected from 6.12.80 to 6.12.* (incl.)
  • unaffected from 6.18.21 to 6.18.* (incl.)
  • unaffected from 6.19.11 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References