# CVE-2024-36031: keys: Fix overwrite of key expiration on instantiation

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Published: 2024-05-30T15:23:46.831Z
- Modified: 2026-06-17T07:35:59.683Z
- Weaknesses: CWE-324
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

keys: Fix overwrite of key expiration on instantiation

The expiry time of a key is unconditionally overwritten during
instantiation, defaulting to turn it permanent. This causes a problem
for DNS resolution as the expiration set by user-space is overwritten to
TIME64_MAX, disabling further DNS updates. Fix this by restoring the
condition that key_set_expiry is only called when the pre-parser sets a
specific expiry.

(As written by CVE List.)

## Affected

- Linux Linux: from 97be1e865e70e5a0ad0a5b5f5dca5031ca0b53ac before ad2011ea787928b2accb5134f1e423b11fe80a8a; from 2552b32b0b349df160a509fe49f5f308cb922f2b before ed79b93f725cd0da39a265dc23d77add1527b9be; from 791d5409cdb974c31a1bc7a903ea729ddc7d83df before e4519a016650e952ad9eb27937f8c447d5a4e06d; from afc360e8a1256acb7579a6f5b6f2c30b85b39301 before 25777f3f4e1f371d16a594925f31e37ce07b6ec7; from 39299bdd2546688d92ed9db4948f6219ca1b9542 before 939a08bcd4334bad4b201e60bd0ae1f278d71d41; from 39299bdd2546688d92ed9db4948f6219ca1b9542 before cc219cb8afbc40ec100c0de941047bb29373126a; from 39299bdd2546688d92ed9db4948f6219ca1b9542 before 9da27fb65a14c18efd4473e2e82b76b53ba60252; from 5.10.206 before 5.10.217; from 5.15.146 before 5.15.159; from 6.1.70 before 6.1.91; from 6.6.9 before 6.6.31; 6.7 (not affected: before 6.7; from 5.10.217 up to 5.10.*; from 5.15.159 up to 5.15.*; from 6.1.91 up to 6.1.*; from 6.6.31 up to 6.6.*; from 6.8.10 up to 6.8.*; from 6.9.1 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 97be1e865e70 before ad2011ea7879; from 2552b32b0b34 before ed79b93f725c; from 791d5409cdb9 before e4519a016650; from afc360e8a125 before 25777f3f4e1f; from 39299bdd2546 before 939a08bcd433; from 39299bdd2546 before cc219cb8afbc; from 39299bdd2546 before 9da27fb65a14; 6.7; from 5.10.206 before 5.10.217; from 5.15.146 before 5.15.159; from 6.1.70 before 6.1.91; from 6.6.9 before 6.6.31; and 2 more (not affected: from 6.6.31 up to 6.6.*; before 6.7; from 5.10.217 before 5.11; from 5.15.159 before 5.16; from 6.1.91 before 6.2; from 6.8.10 before 6.9; from 6.9.1 before 6.10)

## References

- <https://git.kernel.org/stable/c/ad2011ea787928b2accb5134f1e423b11fe80a8a> (patch)
- <https://git.kernel.org/stable/c/ed79b93f725cd0da39a265dc23d77add1527b9be> (patch)
- <https://git.kernel.org/stable/c/e4519a016650e952ad9eb27937f8c447d5a4e06d> (patch)
- <https://git.kernel.org/stable/c/25777f3f4e1f371d16a594925f31e37ce07b6ec7> (patch)
- <https://git.kernel.org/stable/c/939a08bcd4334bad4b201e60bd0ae1f278d71d41> (patch)
- <https://git.kernel.org/stable/c/cc219cb8afbc40ec100c0de941047bb29373126a> (patch)
- <https://git.kernel.org/stable/c/9da27fb65a14c18efd4473e2e82b76b53ba60252> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html>

## Sources

- CVE List: [CVE-2024-36031](https://www.cve.org/CVERecord?id=CVE-2024-36031), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-36031](https://nvd.nist.gov/vuln/detail/CVE-2024-36031), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36031 · Whole record: https://cve.day/CVE-2024-36031.json · Rebuilt by cve.day 2026-11-25T22:58:41.128Z
