{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9e33d69f553aaf11377307e8d6f82deb3385e351"
            },
            {
              "fixed": "76986d0ad2e1b71a304db59980f7d3440709cf69"
            },
            {
              "fixed": "59d336153d40649afe86ff57d3bde1ac1588e850"
            },
            {
              "fixed": "5778be09eab716b7d37f653d72c2c34a25f6ba05"
            },
            {
              "fixed": "4effccfd50baee4f325694964aeee997dca7bd96"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.29"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99430.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix chunk number of the first chunk in a local quota file\n\nMounting a crafted OCFS2 image can corrupt kernel memory.  When the\nlocal quota file header of such an image claims zero chunks, the first\nquota entry allocated during the mount gets a chunk number taken from a\nkernel pointer, and releasing that entry clears a bit far outside the\nchunk bitmap.\n\nThe write will corrupt the data stored at that address, and the\ncorruption may lead to a system crash or damage unrelated data. \nMounting requires CAP_SYS_ADMIN, so it takes an untrusted image, such\nas removable media or a loop mount of a file from elsewhere.\n\nSince the chunk number comes from a kernel pointer, the address of the\nbit that gets cleared differs from boot to boot, and the issue has been\nreported under several titles:\n\n- BUG: unable to handle kernel paging request in ocfs2_local_release_dquot\n- KASAN: use-after-free Write in ocfs2_local_release_dquot\n- KASAN: slab-out-of-bounds Write in ocfs2_local_release_dquot\n- KASAN: slab-use-after-free Write in ocfs2_local_release_dquot\n- KFENCE: use-after-free write in ocfs2_local_release_dquot\n\nNote that none of these is a use-after-free in the quota code: the\nchunk and its buffer head are alive.  The bit that gets cleared lies\nfar outside the bitmap.  KASAN and KFENCE name each report based on the\nobject occupying that address, which explains why the same issue is\nreported under so many different titles.  In the report I sent, the\naddress fell in a free page, which KASAN labels use-after-free.\n\nThere are known reproducers.  Both a syzkaller and a C reproducer are\navailable from the Google Drive link [1] in my report thread.  The\nissue was found by our modified syzkaller, not a theoretical thing\nfound by an LLM.  I have not seen it outside fuzzing, so it is not\naffecting me in the real world.\n\nThe local quota file in OCFS2 is divided into chunks, and each chunk\nbegins with a header block holding a bitmap of the quota entries that\nchunk has handed out.  Chunks are numbered from zero, and that number is\nused to convert the file offset of an entry back into a bit position in\nthe bitmap.  ocfs2_local_quota_add_chunk() appends a new chunk to the\nin-memory list and numbers it one past the chunk that was last:\n\n\tlist_add_tail(\u0026chunk-\u003eqc_chunk, \u0026oinfo-\u003edqi_chunk);\n\tchunk-\u003eqc_num = list_entry(chunk-\u003eqc_chunk.prev,\n\t\t\t\t   struct ocfs2_quota_chunk,\n\t\t\t\t   qc_chunk)-\u003eqc_num + 1;\n\nThe predecessor is looked up after the new chunk is added to the list, so\nif the list was empty, the prev pointer is the list head itself.  The head\nis the dqi_chunk member of struct ocfs2_mem_dqinfo and is not a chunk, so\nreading qc_num through it lands 16 bytes past the start of the head, on\nthe dqi_gqinode pointer that follows it.  The first chunk of the file is\nthen numbered with the lower half of a kernel pointer instead of 0.\n\nThe list is empty when the local quota file header claims the file has no\nchunks.  ocfs2_local_read_info() takes dqi_chunks from that header without\nvalidating it, so an image with dqi_chunks == 0 takes this path when the\nfirst quota entry is allocated.\n\nocfs2_create_local_dquot() turns the bad number into a file offset with\nol_dqblk_off(), which shifts a 32-bit block number left by the block size\nbits, so the top bits of such a large block number are lost. \nocfs2_local_release_dquot() turns the offset back into a bit index with\nol_dqblk_chunk_off(), using the full chunk number, so the lost bits push\nthat index far outside the bitmap, and clearing it corrupts unrelated\nmemory.\n\nCompute the chunk number before putting the chunk on the list, and use 0\nwhen the list is empty.",
  "id": "CVE-2026-99430",
  "modified": "2026-11-19T16:45:23.252301425Z",
  "published": "2026-11-19T14:41:03.138Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4effccfd50baee4f325694964aeee997dca7bd96"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5778be09eab716b7d37f653d72c2c34a25f6ba05"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/59d336153d40649afe86ff57d3bde1ac1588e850"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/76986d0ad2e1b71a304db59980f7d3440709cf69"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99430.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99430"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ocfs2: fix chunk number of the first chunk in a local quota file"
}