# filelock: Remove locks reliably when fcntl/close race is detected

CVE record · `CVE-2024-41012`

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

Published by the CVE Program (CNA: Linux) at 23 Jul 2024, 08:06 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: `c293621bbf678a3d85e3ed721c3921c8a670610d to before d30ff33040834c3b9eee29740acd92f9c7ba2250` (git)
  - affected: `c293621bbf678a3d85e3ed721c3921c8a670610d to before dc2ce1dfceaa0767211a9d963ddb029ab21c4235` (git)
  - affected: `c293621bbf678a3d85e3ed721c3921c8a670610d to before 5661b9c7ec189406c2dde00837aaa4672efb6240` (git)
  - affected: `c293621bbf678a3d85e3ed721c3921c8a670610d to before 52c87ab18c76c14d7209646ccb3283b3f5d87b22` (git)
  - affected: `c293621bbf678a3d85e3ed721c3921c8a670610d to before ef8fc41cd6f95f9a4a3470f085aecf350569a0b3` (git)
  - affected: `c293621bbf678a3d85e3ed721c3921c8a670610d to before 5f5d0799eb0a01d550c21b7894e26b2d9db55763` (git)
  - affected: `c293621bbf678a3d85e3ed721c3921c8a670610d to before b6d223942c34057fdfd8f149e763fa823731b224` (git)
  - affected: `c293621bbf678a3d85e3ed721c3921c8a670610d to before 3cad1bc010416c6dd780643476bc59ed742436b9` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.13`
  - unaffected: `before 2.6.13` (semver)
  - unaffected: `4.19.319 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.281 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.223 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.164 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.101 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.42 to 6.6.*, inclusive` (semver)
  - unaffected: `6.9.9 to 6.9.*, inclusive` (semver)
  - unaffected: `6.10 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 13th 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 23 Jul 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/d30ff33040834c3b9eee29740acd92f9c7ba2250>
- <https://git.kernel.org/stable/c/dc2ce1dfceaa0767211a9d963ddb029ab21c4235>
- <https://git.kernel.org/stable/c/5661b9c7ec189406c2dde00837aaa4672efb6240>
- <https://git.kernel.org/stable/c/52c87ab18c76c14d7209646ccb3283b3f5d87b22>
- <https://git.kernel.org/stable/c/ef8fc41cd6f95f9a4a3470f085aecf350569a0b3>
- <https://git.kernel.org/stable/c/5f5d0799eb0a01d550c21b7894e26b2d9db55763>
- <https://git.kernel.org/stable/c/b6d223942c34057fdfd8f149e763fa823731b224>
- <https://git.kernel.org/stable/c/3cad1bc010416c6dd780643476bc59ed742436b9>

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-41012>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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