← Back to CVE Explorer

CVE-2026-90420

Full vulnerability record from the local CVENow database.

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.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-17 17:17:46.440000
Last modified
2026-10-19 09:19:36.350000
View original CVE JSON
{
  "id": "CVE-2026-90420",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-17T17:17:46.440",
  "lastModified": "2026-10-19T09:19:36.350",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix infinite loop in nilfs_clean_segments()\n\nsyzbot reported a hung task in nilfs_transaction_begin(). This occurs\nbecause the cleaner ioctl falls into an infinite loop if\nnilfs_segctor_construct() repeatedly returns -EROFS (e.g. the device\nis remounted as read-only after an I/O error).\n\nCurrently in nilfs_clean_segments(), if err is non-zero, it logs the\nerror and sleeps but doesn't abort when it encounters a terminal error\nlike -EROFS. This causes the thread to loop forever.\n\nFix this by breaking out of the loop if nilfs_segctor_construct()\nreturns -EROFS. This matches the behaviour in\nnilfs_segctor_write_out(), which also handles -EROFS."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "fs/nilfs2/segment.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "e3e9367dae1a6392cbb14ab0b2ab5edbf39735c3",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "217b967ad7887a3e1ebc08f46f6484e081acd4b4",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "3bcdbdaac884a4baa59716cf9bd9470c75276e2d",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "d7afca8e4efbf4c455b4663c29ae59fde2f1b671",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "c07e5ad6539e7e9350d5c65cbf8adb69d1711b15",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "1fc6df85b4954b6fda9c351843aaca3c06f66d8d",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "8cea0bc78ac64cb88da49c07f80bf2cf9fb7aff8",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453",
              "lessThan": "ce5a5ad1a8330a2fcfdd9ec2ab341be739e89a18",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "fs/nilfs2/segment.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "2.6.30",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "2.6.30",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.270",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.221",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.188",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.157",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.110",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.52",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.6",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/1fc6df85b4954b6fda9c351843aaca3c06f66d8d",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/217b967ad7887a3e1ebc08f46f6484e081acd4b4",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/3bcdbdaac884a4baa59716cf9bd9470c75276e2d",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/8cea0bc78ac64cb88da49c07f80bf2cf9fb7aff8",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c07e5ad6539e7e9350d5c65cbf8adb69d1711b15",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ce5a5ad1a8330a2fcfdd9ec2ab341be739e89a18",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/d7afca8e4efbf4c455b4663c29ae59fde2f1b671",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/e3e9367dae1a6392cbb14ab0b2ab5edbf39735c3",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}