# CVE-2026-99430: ocfs2: fix chunk number of the first chunk in a local quota file

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-28)
- **Published:** 2026-11-19T14:41:03.138Z
- **Modified:** 2026-11-23T08:17:46.857Z

## Who should check

- Anyone running Linux \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< c8f5d2c6b066823f96723bdc0501f0de6bff1cef; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< b5eb8e75a2a47a8a494a94df4a0f71bf274d568a; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< ddb61eb4987a6040526a18430c4ec72e2f141124; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< e310b75834c52e55ba07c9d0699b16fd508bdd6b; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 76986d0ad2e1b71a304db59980f7d3440709cf69; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 59d336153d40649afe86ff57d3bde1ac1588e850; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 5778be09eab716b7d37f653d72c2c34a25f6ba05; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 4effccfd50baee4f325694964aeee997dca7bd96
- Anyone running Linux 2.6.29

## 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.

## Affected and fixed versions

- Linux: \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< c8f5d2c6b066823f96723bdc0501f0de6bff1cef; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< b5eb8e75a2a47a8a494a94df4a0f71bf274d568a; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< ddb61eb4987a6040526a18430c4ec72e2f141124; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< e310b75834c52e55ba07c9d0699b16fd508bdd6b; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 76986d0ad2e1b71a304db59980f7d3440709cf69; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 59d336153d40649afe86ff57d3bde1ac1588e850; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 5778be09eab716b7d37f653d72c2c34a25f6ba05; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 4effccfd50baee4f325694964aeee997dca7bd96 (cvelist)
- Linux: 2.6.29 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 4effccfd50baee4f325694964aeee997dca7bd96 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99430. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99430.md
Affected: Linux >= 9e33d69f553aaf11377307e8d6f82deb3385e351, < c8f5d2c6b066823f96723bdc0501f0de6bff1cef; >= 9e33d69f553aaf11377307e8d6f82deb3385e351, < b5eb8e75a2a47a8a494a94df4a0f71bf274d568a; >= 9e33d69f553aaf11377307e8d6f82deb3385e351, < ddb61eb4987a6040526a18430c4ec72e2f141124; >= 9e33d69f553aaf11377307e…
Fixed in: Linux 76986d0ad2e1b71a304db59980f7d3440709cf69, Linux 59d336153d40649afe86ff57d3bde1ac1588e850, Linux 5778be09eab716b7d37f653d72c2c34a25f6ba05, Linux 4effccfd50baee4f325694964aeee997dca7bd96

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99430 being exploited?

There is no confirmed exploitation: CVE-2026-99430 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99430?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-99430?

Linux \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< c8f5d2c6b066823f96723bdc0501f0de6bff1cef; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< b5eb8e75a2a47a8a494a94df4a0f71bf274d568a; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< ddb61eb4987a6040526a18430c4ec72e2f141124; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< e310b75834c52e55ba07c9d0699b16fd508bdd6b; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 76986d0ad2e1b71a304db59980f7d3440709cf69; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 59d336153d40649afe86ff57d3bde1ac1588e850; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 5778be09eab716b7d37f653d72c2c34a25f6ba05; \>= 9e33d69f553aaf11377307e8d6f82deb3385e351, \< 4effccfd50baee4f325694964aeee997dca7bd96; Linux 2.6.29.

### Is there a fix for CVE-2026-99430?

Yes. Fixed in Linux 76986d0ad2e1b71a304db59980f7d3440709cf69, Linux 59d336153d40649afe86ff57d3bde1ac1588e850, Linux 5778be09eab716b7d37f653d72c2c34a25f6ba05, Linux 4effccfd50baee4f325694964aeee997dca7bd96. Upgrade Linux to 4effccfd50baee4f325694964aeee997dca7bd96 or later.

### How do I check if I'm affected by CVE-2026-99430?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/c8f5d2c6b066823f96723bdc0501f0de6bff1cef>
- other: <https://git.kernel.org/stable/c/b5eb8e75a2a47a8a494a94df4a0f71bf274d568a>
- other: <https://git.kernel.org/stable/c/ddb61eb4987a6040526a18430c4ec72e2f141124>
- other: <https://git.kernel.org/stable/c/e310b75834c52e55ba07c9d0699b16fd508bdd6b>
- other: <https://git.kernel.org/stable/c/76986d0ad2e1b71a304db59980f7d3440709cf69>
- other: <https://git.kernel.org/stable/c/59d336153d40649afe86ff57d3bde1ac1588e850>
- other: <https://git.kernel.org/stable/c/5778be09eab716b7d37f653d72c2c34a25f6ba05>
- other: <https://git.kernel.org/stable/c/4effccfd50baee4f325694964aeee997dca7bd96>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99430>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99430> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99430>
