CVE-2026-99430
published high CVSS 3.1 · 7.1ocfs2: fix chunk number of the first chunk in a local quota file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9e33d69f553aaf11377307e8d6f82deb3385e351 to < c8f5d2c6b066823f96723bdc0501f0de6bff1cef · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < b5eb8e75a2a47a8a494a94df4a0f71bf274d568a · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < ddb61eb4987a6040526a18430c4ec72e2f141124 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < e310b75834c52e55ba07c9d0699b16fd508bdd6b · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 76986d0ad2e1b71a304db59980f7d3440709cf69 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 59d336153d40649afe86ff57d3bde1ac1588e850 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 5778be09eab716b7d37f653d72c2c34a25f6ba05 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 4effccfd50baee4f325694964aeee997dca7bd96 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.29 (affected) · 0 to < 2.6.29 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix chunk number of the first chunk in a local quota file Mounting a crafted OCFS2 image can corrupt kernel memory. When the local quota file header of such an image claims zero chunks, the first quota entry allocated during the mount gets a chunk number taken from a kernel pointer, and releasing that entry clears a bit far outside the chunk bitmap. The write will corrupt the data stored at that address, and the corruption may lead to a system crash or damage unrelated data. Mounting requires CAP_SYS_ADMIN, so it takes an untrusted image, such as removable media or a loop mount of a file from elsewhere. Since the chunk number comes from a kernel pointer, the address of the bit that gets cleared differs from boot to boot, and the issue has been reported under several titles: - BUG: unable to handle kernel paging request in ocfs2_local_release_dquot - KASAN: use-after-free Write in ocfs2_local_release_dquot - KASAN: slab-out-of-bounds Write in ocfs2_local_release_dquot - KASAN: slab-use-after-free Write in ocfs2_local_release_dquot - KFENCE: use-after-free write in ocfs2_local_release_dquot Note that none of these is a use-after-free in the quota code: the chunk and its buffer head are alive. The bit that gets cleared lies far outside the bitmap. KASAN and KFENCE name each report based on the object occupying that address, which explains why the same issue is reported under so many different titles. In the report I sent, the address fell in a free page, which KASAN labels use-after-free. There are known reproducers. Both a syzkaller and a C reproducer are available from the Google Drive link [1] in my report thread. The issue was found by our modified syzkaller, not a theoretical thing found by an LLM. I have not seen it outside fuzzing, so it is not affecting me in the real world. The local quota file in OCFS2 is divided into chunks, and each chunk begins with a header block holding a bitmap of the quota entries that chunk has handed out. Chunks are numbered from zero, and that number is used to convert the file offset of an entry back into a bit position in the bitmap. ocfs2_local_quota_add_chunk() appends a new chunk to the in-memory list and numbers it one past the chunk that was last: list_add_tail(&chunk->qc_chunk, &oinfo->dqi_chunk); chunk->qc_num = list_entry(chunk->qc_chunk.prev, struct ocfs2_quota_chunk, qc_chunk)->qc_num + 1; The predecessor is looked up after the new chunk is added to the list, so if the list was empty, the prev pointer is the list head itself. The head is the dqi_chunk member of struct ocfs2_mem_dqinfo and is not a chunk, so reading qc_num through it lands 16 bytes past the start of the head, on the dqi_gqinode pointer that follows it. The first chunk of the file is then numbered with the lower half of a kernel pointer instead of 0. The list is empty when the local quota file header claims the file has no chunks. ocfs2_local_read_info() takes dqi_chunks from that header without validating it, so an image with dqi_chunks == 0 takes this path when the first quota entry is allocated. ocfs2_create_local_dquot() turns the bad number into a file offset with ol_dqblk_off(), which shifts a 32-bit block number left by the block size bits, so the top bits of such a large block number are lost. ocfs2_local_release_dquot() turns the offset back into a bit index with ol_dqblk_chunk_off(), using the full chunk number, so the lost bits push that index far outside the bitmap, and clearing it corrupts unrelated memory. Compute the chunk number before putting the chunk on the list, and use 0 when the list is empty.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- Scenarios
- en: 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. AC: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(). PR: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. UI: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. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9e33d69f553aaf11377307e8d6f82deb3385e351 to < c8f5d2c6b066823f96723bdc0501f0de6bff1cef (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < b5eb8e75a2a47a8a494a94df4a0f71bf274d568a (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < ddb61eb4987a6040526a18430c4ec72e2f141124 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < e310b75834c52e55ba07c9d0699b16fd508bdd6b (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 76986d0ad2e1b71a304db59980f7d3440709cf69 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 59d336153d40649afe86ff57d3bde1ac1588e850 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 5778be09eab716b7d37f653d72c2c34a25f6ba05 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 4effccfd50baee4f325694964aeee997dca7bd96 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.29 (affected)0 to < 2.6.29 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/4effccfd50baee4f325694964aeee997dca7bd96
- https://git.kernel.org/stable/c/5778be09eab716b7d37f653d72c2c34a25f6ba05
- https://git.kernel.org/stable/c/59d336153d40649afe86ff57d3bde1ac1588e850
- https://git.kernel.org/stable/c/76986d0ad2e1b71a304db59980f7d3440709cf69
- https://git.kernel.org/stable/c/b5eb8e75a2a47a8a494a94df4a0f71bf274d568a
- https://git.kernel.org/stable/c/c8f5d2c6b066823f96723bdc0501f0de6bff1cef
- https://git.kernel.org/stable/c/ddb61eb4987a6040526a18430c4ec72e2f141124
- https://git.kernel.org/stable/c/e310b75834c52e55ba07c9d0699b16fd508bdd6b
Provider assertions
1Linux · cna
ocfs2: fix chunk number of the first chunk in a local quota file
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 283d48ea247e8b28b3cf005d3d52f355ba61ced8d10c0f790f9a40db1c171574
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record