CVE-2026-90420

nilfs2: fix infinite loop in nilfs_clean_segments()

State
Published
Severity
Not scored
Published
Sep 17, 2026
Updated
Oct 19, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

Description

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

nilfs2: fix infinite loop in nilfs_clean_segments()

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

Currently in nilfs_clean_segments(), 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 nilfs_segctor_construct() returns -EROFS. This matches the behaviour in nilfs_segctor_write_out(), which also handles -EROFS.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before e3e9367dae1a6392cbb14ab0b2ab5edbf39735c3Affected
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 217b967ad7887a3e1ebc08f46f6484e081acd4b4Affected
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 3bcdbdaac884a4baa59716cf9bd9470c75276e2dAffected
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before d7afca8e4efbf4c455b4663c29ae59fde2f1b671Affected
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before c07e5ad6539e7e9350d5c65cbf8adb69d1711b15Affected
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 1fc6df85b4954b6fda9c351843aaca3c06f66d8dAffected
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before 8cea0bc78ac64cb88da49c07f80bf2cf9fb7aff8Affected
  • 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453 to before ce5a5ad1a8330a2fcfdd9ec2ab341be739e89a18Affected
LinuxLinux
  • 2.6.30Affected
  • before 2.6.30Not affected
  • 5.10.270 through 5.10.*Not affected
  • 5.15.221 through 5.15.*Not affected
  • 6.1.188 through 6.1.*Not affected
  • 6.6.157 through 6.6.*Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.52 through 6.18.*Not affected
  • 7.2.6 through 7.2.*Not affected
  • 7.3 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.