CVE-2026-97543: xfs: destroy seen inode bitmap when we fail to add a dirpath
In the Linux kernel, the following vulnerability has been resolved:
xfs: destroy seen inode bitmap when we fail to add a dirpath
LOLLM observes a memory leak in xchkdirtreecreatepath if we create the directory path object but appending the name to the path fails. When this happens, we don't tear down the (empty) seen inode bitmap. This is a pretty trivial error, but let's not leave logic bombs.
Do the same for a similar bug in xrepdirtreecreateadoptionpath.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the leak?
The leak occurs when XFS creates a directory path object but then fails while appending the directory name to that path. The affected paths are xchk_dirtree_create_path and xrep_dirtree_create_adoption_path.
What resource is leaked?
An empty seen-inode bitmap is not destroyed on the affected error paths. The fix adds cleanup for that bitmap when adding the directory path fails.
How can I determine whether a kernel includes the fix?
Check whether the kernel source or applied stable patches include commits 3b10ca4302ee2dda4233f70b2033883ee376fa6a, 0b756de8167f2f06ffceadc71cb17c1fc7be4be8, or 582f54dce62043f7a0503ab8c76d718d0293da59.