{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-53337",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2023-53337"
  ],
  "published": "2025-09-17T14:57:20Z",
  "summary": "nilfs2: do not write dirty data after degenerating to read-only",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: do not write dirty data after degenerating to read-only\n\nAccording to syzbot's report, mark_buffer_dirty() called from\nnilfs_segctor_do_construct() outputs a warning with some patterns after\nnilfs2 detects metadata corruption and degrades to read-only mode.\n\nAfter such read-only degeneration, page cache data may be cleared through\nnilfs_clear_dirty_page() which may also clear the uptodate flag for their\nbuffer heads.  However, even after the degeneration, log writes are still\nperformed by unmount processing etc., which causes mark_buffer_dirty() to\nbe called for buffer heads without the \"uptodate\" flag and causes the\nwarning.\n\nSince any writes should not be done to a read-only file system in the\nfirst place, this fixes the warning in mark_buffer_dirty() by letting\nnilfs_segctor_do_construct() abort early if in read-only mode.\n\nThis also changes the retry check of nilfs_segctor_write_out() to avoid\nunnecessary log write retries if it detects -EROFS that\nnilfs_segctor_do_construct() returned.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.21-1+rpt1"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v6",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7l",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v8",
            "binary_version": "1:6.1.21-1+rpt1"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.21-1+rpt1": {
            "linux_commit": "0afb5e98488aed7017b9bf321b575d0177feb7ed",
            "upstream_version": "6.1.21",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.28"
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2023-53337"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/bd89073fc7a5d03b1d06b372addbe405e5a925f4"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e9c5412c5972124776c1b873533eb39e287a4dfa"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4569a292a84e340e97d178898ad1cfe1a3080a61"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/7c3e662048053802f6b0db3a78e97f4e1f7edc4f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/13f73ef77baa4764dc1ca4fcbae9cade05b83866"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a73201c607d8e506358d60aafddda4246bdd9350"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4005cec6847c06ee191583270b7cdd7e696543cc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/55f7810632f993cff622a0ddbc7c865892294b61"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/28a65b49eb53e172d23567005465019658bfdb4d"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-05-12T04:54:46Z"
  }
}
