CVE-2026-99689: xfs: fix temporary cursor leak in btree shift corruption paths

Published Nov 20, 2026
·
Updated

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

xfs: fix temporary cursor leak in btree shift corruption paths

In xfsbtreelshift and xfsbtreershift, when XFSISCORRUPT detects an invalid firstrec/lastrec result after xfsbtreedupcursor has successfully allocated a temporary cursor, the error path jumps to error0 which returns without freeing tcur. This leaks the cursor memory, the xfsgroup reference, and the per-level buffer references held by the duplicated cursor. Jump to error1 instead, which calls xfsbtreedelcursor(tcur, XFSBTREEERROR) to properly release all resources.

Affected Software

3 affected componentsFixes available
linux/kernel>=2.6.29<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Frequently Asked Questions

1

What conditions trigger the resource leak?

The leak occurs when xfs_btree_lshift or xfs_btree_rshift duplicates a btree cursor successfully and then detects an invalid firstrec or lastrec result through XFS_IS_CORRUPT. The affected corruption-handling path returns without releasing the temporary cursor and its associated references.

2

What resources are leaked on the affected error path?

The temporary cursor memory is leaked, along with its xfs_group reference and the per-level buffer references held by the duplicated cursor.

3

What does the fix change?

The fix redirects the relevant error path to cleanup handling that calls xfs_btree_del_cursor(tcur, XFS_BTREE_ERROR). This releases the temporary cursor and all associated resources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203