CVE-2024-36031

keys: Fix overwrite of key expiration on instantiation

9.8 critical EPSS 0.75%

Published 30 May 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-36031

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36031 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

9.8 critical CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.75%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 56.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-324 Use of a Key Past its Expiration Date

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 97be1e865e70e5a0ad0a5b5f5dca5031ca0b53ac, before ad2011ea787928b2accb5134f1e423b11fe80a8a
affected from 2552b32b0b349df160a509fe49f5f308cb922f2b, before ed79b93f725cd0da39a265dc23d77add1527b9be
affected from 791d5409cdb974c31a1bc7a903ea729ddc7d83df, before e4519a016650e952ad9eb27937f8c447d5a4e06d
affected from afc360e8a1256acb7579a6f5b6f2c30b85b39301, before 25777f3f4e1f371d16a594925f31e37ce07b6ec7
affected from 39299bdd2546688d92ed9db4948f6219ca1b9542, before 939a08bcd4334bad4b201e60bd0ae1f278d71d41
affected from 39299bdd2546688d92ed9db4948f6219ca1b9542, before cc219cb8afbc40ec100c0de941047bb29373126a
affected from 39299bdd2546688d92ed9db4948f6219ca1b9542, before 9da27fb65a14c18efd4473e2e82b76b53ba60252
affected from 5.10.206, before 5.10.217
affected from 5.15.146, before 5.15.159
affected from 6.1.70, before 6.1.91
affected from 6.6.9, before 6.6.31
Other versions: unaffected
Linux
affected 6.7
unaffected before 6.7
unaffected from 5.10.217 up to and including 5.10.*
unaffected from 5.15.159 up to and including 5.15.*
unaffected from 6.1.91 up to and including 6.1.*
unaffected from 6.6.31 up to and including 6.6.*
unaffected from 6.8.10 up to and including 6.8.*
unaffected from 6.9.1 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36031 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36031

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-36031
trivy image --scanners vuln IMAGE | grep CVE-2024-36031

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-36031 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.