CVE-2024-36031

keys: Fix overwrite of key expiration on instantiation

State
Published
Severity
9.8 Critical
Published
May 30, 2024
Updated
May 23, 2026
Reserved
May 17, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

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

Affected Products

ProductVersions
LinuxLinux
  • 97be1e865e70e5a0ad0a5b5f5dca5031ca0b53ac to before ad2011ea787928b2accb5134f1e423b11fe80a8aAffected
  • 2552b32b0b349df160a509fe49f5f308cb922f2b to before ed79b93f725cd0da39a265dc23d77add1527b9beAffected
  • 791d5409cdb974c31a1bc7a903ea729ddc7d83df to before e4519a016650e952ad9eb27937f8c447d5a4e06dAffected
  • afc360e8a1256acb7579a6f5b6f2c30b85b39301 to before 25777f3f4e1f371d16a594925f31e37ce07b6ec7Affected
  • 39299bdd2546688d92ed9db4948f6219ca1b9542 to before 939a08bcd4334bad4b201e60bd0ae1f278d71d41Affected
  • 39299bdd2546688d92ed9db4948f6219ca1b9542 to before cc219cb8afbc40ec100c0de941047bb29373126aAffected
  • 39299bdd2546688d92ed9db4948f6219ca1b9542 to before 9da27fb65a14c18efd4473e2e82b76b53ba60252Affected
  • 5.10.206 to before 5.10.217Affected
  • 5.15.146 to before 5.15.159Affected
  • 6.1.70 to before 6.1.91Affected
  • 6.6.9 to before 6.6.31Affected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 5.10.217 through 5.10.*Not affected
  • 5.15.159 through 5.15.*Not affected
  • 6.1.91 through 6.1.*Not affected
  • 6.6.31 through 6.6.*Not affected
  • 6.8.10 through 6.8.*Not affected
  • 6.9.1 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.