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

Critical 9.8 Published Updated

A logic error in the Linux kernel key management system overwrites key expiration times, potentially disabling DNS updates and causing denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-36031?

CVE-2024-36031 is a critical vulnerability in Linux kernel, published on 30 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-324

Which versions are affected by CVE-2024-36031?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-36031?

Apply the vendor's patch.

Is CVE-2024-36031 being exploited?

There is no known exploitation of CVE-2024-36031 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-36031, DEBIAN-CVE-2024-36031, UBUNTU-CVE-2024-36031.

Is CVE-2024-36031 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free