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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-05-30 · Modified: 2026-05-23
- Aliases: UBUNTU-CVE-2024-36031, DEBIAN-CVE-2024-36031
- Record: https://cvemate.com/vulnerability/CVE-2024-36031 · JSON: https://cvemate.com/vulnerability/CVE-2024-36031/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.747%, percentile 56.21%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 115)

- debian linux (Debian): \< 6.1.94-1 \| \< 6.8.11-1
- ubuntu linux (Ubuntu): \< 5.15.0-118.128 \| \< 6.8.0-40.40
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1067.73 \| \< 6.8.0-1013.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1067.73~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1013.14~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 5.15.0-1067.73+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1068.77 \| \< 6.8.0-1012.14
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1068.77~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 26)

- <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>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html>
- <https://ubuntu.com/security/CVE-2024-36031>
- <https://www.cve.org/CVERecord?id=CVE-2024-36031>
- <https://git.kernel.org/linus/9da27fb65a14c18efd4473e2e82b76b53ba60252>
- <https://ubuntu.com/security/notices/USN-6898-1>
- <https://ubuntu.com/security/notices/USN-6898-3>
- <https://ubuntu.com/security/notices/USN-6917-1>
- <https://ubuntu.com/security/notices/USN-6949-1>
- <https://ubuntu.com/security/notices/USN-6950-1>
- <https://ubuntu.com/security/notices/USN-6952-1>
- <https://ubuntu.com/security/notices/USN-6955-1>
- <https://ubuntu.com/security/notices/USN-6957-1>
- <https://ubuntu.com/security/notices/USN-6950-2>

---

Data as of 2026-12-05T03:52:15.133Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
