{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99430","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.414Z","datePublished":"2026-11-19T14:41:03.138Z","dateUpdated":"2026-11-22T11:08:13.875Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:13.875Z"},"descriptions":[{"lang":"en","value":"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(&chunk->qc_chunk, &oinfo->dqi_chunk);\n\tchunk->qc_num = list_entry(chunk->qc_chunk.prev,\n\t\t\t\t   struct ocfs2_quota_chunk,\n\t\t\t\t   qc_chunk)->qc_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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - dqi_chunks is read from the on-disk local quota header by ocfs2_local_read_info() during ocfs2_enable_quotas() in ocfs2_fill_super(). A zero value leaves dqi_chunk empty, which ocfs2_local_quota_add_chunk() then numbers from a kernel pointer. The header is part of the mounted image.\nAC:L - The image author sets dqi_chunks to 0 and can link an inode into the orphan directory, so mount recovery in ocfs2_recover_orphans() reaches ocfs2_delete_inode(); dquot_initialize() calls ocfs2_create_local_dquot() and ocfs2_local_quota_add_chunk(), and dquot_drop() in ocfs2_clear_inode() runs ocfs2_local_release_dquot().\nPR:N - Supplying the dqi_chunks==0 header needs no uid or capability. ocfs2_fs_type lacks FS_USERNS_MOUNT, so mount_capable() demands CAP_SYS_ADMIN only from the task that calls mount, and that task is the victim.\nUI:R - ocfs2_fill_super() calls ocfs2_enable_quotas() and ocfs2_local_read_info() only as part of mounting this volume, which is what records dqi_chunks==0. Mounting the crafted image is the victim action.\nS:U - The bit clear in ocfs2_local_release_dquot() stays in the address space of the kernel that mounted the volume, the same security authority as the ocfs2 superblock.\nC:N - ocfs2_local_release_dquot() only clears one bit via ocfs2_clear_bit_unaligned() and never copies that memory to userspace. The index is the low 32 bits of the kernel pointer dqi_gqinode.\nI:H - ol_dqblk_off() shifts the pointer-derived qc_num as a 32-bit block number, ol_dqblk_chunk_off() turns the lost high bits into an index, and ocfs2_clear_bit_unaligned() stores that bit past dqc_bitmap.\nA:H - The store in ocfs2_local_release_dquot() is far outside the chunk-header buffer and is reported as a kernel paging fault, and as a KASAN out-of-bounds write when that address is mapped."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/quota_local.c"],"versions":[{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"76986d0ad2e1b71a304db59980f7d3440709cf69","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"59d336153d40649afe86ff57d3bde1ac1588e850","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"5778be09eab716b7d37f653d72c2c34a25f6ba05","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"4effccfd50baee4f325694964aeee997dca7bd96","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/quota_local.c"],"versions":[{"version":"2.6.29","status":"affected"},{"version":"0","lessThan":"2.6.29","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/76986d0ad2e1b71a304db59980f7d3440709cf69"},{"url":"https://git.kernel.org/stable/c/59d336153d40649afe86ff57d3bde1ac1588e850"},{"url":"https://git.kernel.org/stable/c/5778be09eab716b7d37f653d72c2c34a25f6ba05"},{"url":"https://git.kernel.org/stable/c/4effccfd50baee4f325694964aeee997dca7bd96"}],"title":"ocfs2: fix chunk number of the first chunk in a local quota file","x_generator":{"engine":"bippy-1.2.0"}}}}