CVE-2026-90420: nilfs2: fix infinite loop in nilfs_clean_segments()

Published Sep 17, 2026
·
Updated

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

nilfs2: fix infinite loop in nilfscleansegments()

syzbot reported a hung task in nilfstransactionbegin(). This occurs because the cleaner ioctl falls into an infinite loop if nilfssegctorconstruct() repeatedly returns -EROFS (e.g. the device is remounted as read-only after an I/O error).

Currently in nilfscleansegments(), if err is non-zero, it logs the error and sleeps but doesn't abort when it encounters a terminal error like -EROFS. This causes the thread to loop forever.

Fix this by breaking out of the loop if nilfssegctorconstruct() returns -EROFS. This matches the behaviour in nilfssegctorwriteout(), which also handles -EROFS.

Affected Software

1 affected component
Linux Kernel

Event History

Sep 17, 2026
CVE Published
via MITRE·04:09 PM
Data Sourced
via MITRE·04:09 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the hang?

The NILFS2 cleaner ioctl must be running, and nilfs_segctor_construct() must repeatedly return -EROFS. One example is a NILFS2 device being remounted read-only after an I/O error.

2

What is the operational impact if the issue is triggered?

The cleaner path can loop indefinitely, and syzbot observed a hung task in nilfs_transaction_begin(). The affected thread continues logging errors and sleeping rather than terminating the operation.

3

What can be done before the fix is deployed?

Avoid running the NILFS2 cleaner ioctl against filesystems or devices that have been remounted read-only, particularly following I/O errors. Investigate and remediate the underlying storage error before retrying cleaner operations.

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