# ext4: make sure the first directory block is not a hole

CVE record · `CVE-2024-42304`

- **Identifiers:** `CVE-2024-42304`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 17 Aug 2024
- **Updated:** 15 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 17 Aug 2024, 09:09 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `3a17ca864baffc0c6f6e8aad525aa4365775a193 to before d81d7e347d1f1f48a5634607d39eb90c161c8afe` (git)
  - affected: `4e19d6b65fb4fc42e352ce9883649e049da14743 to before e02f9941e8c011aa3eafa799def6a134ce06bcfa` (git)
  - affected: `4e19d6b65fb4fc42e352ce9883649e049da14743 to before de2a011a13a46468a6e8259db58b1b62071fe136` (git)
  - affected: `4e19d6b65fb4fc42e352ce9883649e049da14743 to before 9771e3d8365ae1dd5e8846a204cb9af14e3e656a` (git)
  - affected: `4e19d6b65fb4fc42e352ce9883649e049da14743 to before b609753cbbd38f8c0affd4956c0af178348523ac` (git)
  - affected: `4e19d6b65fb4fc42e352ce9883649e049da14743 to before c3893d9de8ee153baac56d127d844103488133b5` (git)
  - affected: `4e19d6b65fb4fc42e352ce9883649e049da14743 to before 299bc6ffa57e04e74c6cce866d6c0741fb4897a1` (git)
  - affected: `4e19d6b65fb4fc42e352ce9883649e049da14743 to before f9ca51596bbfd0f9c386dd1c613c394c78d9e5e6` (git)
  - affected: `3f0307b0d2d8b333a6964fc4c820dc86896fd1cf` (git)
  - affected: `514631c2225c1fd556c799cc1893fb27b0f48f00` (git)
  - affected: `7f1f86276515f6816a98f6ca3ef99c827d54642f` (git)
  - affected: `5021b7a5bdd6bb859eb648c3da71cdd6aae1d133` (git)
  - and 5 more
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.3`
  - unaffected: `before 5.3` (semver)
  - unaffected: `4.19.320 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.282 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.224 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.165 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.103 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.44 to 6.6.*, inclusive` (semver)
  - unaffected: `6.10.3 to 6.10.*, inclusive` (semver)
  - unaffected: `6.11 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0023, the 14th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 17 Aug 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-42304](https://www.cve.org/CVERecord?id=CVE-2024-42304)
- [NVD: CVE-2024-42304](https://nvd.nist.gov/vuln/detail/CVE-2024-42304)

### References from the CNA

- <https://git.kernel.org/stable/c/d81d7e347d1f1f48a5634607d39eb90c161c8afe>
- <https://git.kernel.org/stable/c/e02f9941e8c011aa3eafa799def6a134ce06bcfa>
- <https://git.kernel.org/stable/c/de2a011a13a46468a6e8259db58b1b62071fe136>
- <https://git.kernel.org/stable/c/9771e3d8365ae1dd5e8846a204cb9af14e3e656a>
- <https://git.kernel.org/stable/c/b609753cbbd38f8c0affd4956c0af178348523ac>
- <https://git.kernel.org/stable/c/c3893d9de8ee153baac56d127d844103488133b5>
- <https://git.kernel.org/stable/c/299bc6ffa57e04e74c6cce866d6c0741fb4897a1>
- <https://git.kernel.org/stable/c/f9ca51596bbfd0f9c386dd1c613c394c78d9e5e6>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-42304>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-42304/>. Everything for agents: <https://agentprime.io/llms.txt>.
