# keys: Fix overwrite of key expiration on instantiation

CVE record · `CVE-2024-36031`

- **Identifiers:** `CVE-2024-36031`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **CNA:** Linux
- **Weakness (CWE):** [CWE-324](https://cwe.mitre.org/data/definitions/324.html)
- **Tags:** [CWE-324](https://agentprime.io/advisories/tag/cwe-324.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 30 May 2024
- **Updated:** 23 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 30 May 2024, 15:23 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.

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `97be1e865e70e5a0ad0a5b5f5dca5031ca0b53ac to before ad2011ea787928b2accb5134f1e423b11fe80a8a` (git)
  - affected: `2552b32b0b349df160a509fe49f5f308cb922f2b to before ed79b93f725cd0da39a265dc23d77add1527b9be` (git)
  - affected: `791d5409cdb974c31a1bc7a903ea729ddc7d83df to before e4519a016650e952ad9eb27937f8c447d5a4e06d` (git)
  - affected: `afc360e8a1256acb7579a6f5b6f2c30b85b39301 to before 25777f3f4e1f371d16a594925f31e37ce07b6ec7` (git)
  - affected: `39299bdd2546688d92ed9db4948f6219ca1b9542 to before 939a08bcd4334bad4b201e60bd0ae1f278d71d41` (git)
  - affected: `39299bdd2546688d92ed9db4948f6219ca1b9542 to before cc219cb8afbc40ec100c0de941047bb29373126a` (git)
  - affected: `39299bdd2546688d92ed9db4948f6219ca1b9542 to before 9da27fb65a14c18efd4473e2e82b76b53ba60252` (git)
  - affected: `5.10.206 to before 5.10.217` (semver)
  - affected: `5.15.146 to before 5.15.159` (semver)
  - affected: `6.1.70 to before 6.1.91` (semver)
  - affected: `6.6.9 to before 6.6.31` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.7`
  - unaffected: `before 6.7` (semver)
  - unaffected: `5.10.217 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.159 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.91 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.31 to 6.6.*, inclusive` (semver)
  - unaffected: `6.8.10 to 6.8.*, inclusive` (semver)
  - unaffected: `6.9.1 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

- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0075, the 54th percentile, on 5 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 30 May 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/ad2011ea787928b2accb5134f1e423b11fe80a8a>
- <https://git.kernel.org/stable/c/ed79b93f725cd0da39a265dc23d77add1527b9be>
- <https://git.kernel.org/stable/c/e4519a016650e952ad9eb27937f8c447d5a4e06d>
- <https://git.kernel.org/stable/c/25777f3f4e1f371d16a594925f31e37ce07b6ec7>
- <https://git.kernel.org/stable/c/939a08bcd4334bad4b201e60bd0ae1f278d71d41>
- <https://git.kernel.org/stable/c/cc219cb8afbc40ec100c0de941047bb29373126a>
- <https://git.kernel.org/stable/c/9da27fb65a14c18efd4473e2e82b76b53ba60252>

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

---

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