{"id":"CVE-2024-36031","summary":"keys: Fix overwrite of key expiration on instantiation","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nkeys: Fix overwrite of key expiration on instantiation\n\nThe expiry time of a key is unconditionally overwritten during\ninstantiation, defaulting to turn it permanent. This causes a problem\nfor DNS resolution as the expiration set by user-space is overwritten to\nTIME64_MAX, disabling further DNS updates. Fix this by restoring the\ncondition that key_set_expiry is only called when the pre-parser sets a\nspecific expiry.","modified":"2026-04-02T11:59:59.536291Z","published":"2024-05-30T15:23:46.831Z","related":["MGASA-2024-0263","MGASA-2024-0266","SUSE-SU-2024:4314-1","SUSE-SU-2024:4316-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36031.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/25777f3f4e1f371d16a594925f31e37ce07b6ec7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/939a08bcd4334bad4b201e60bd0ae1f278d71d41"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9da27fb65a14c18efd4473e2e82b76b53ba60252"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ad2011ea787928b2accb5134f1e423b11fe80a8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc219cb8afbc40ec100c0de941047bb29373126a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e4519a016650e952ad9eb27937f8c447d5a4e06d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed79b93f725cd0da39a265dc23d77add1527b9be"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36031.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36031"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"97be1e865e70e5a0ad0a5b5f5dca5031ca0b53ac"},{"fixed":"ad2011ea787928b2accb5134f1e423b11fe80a8a"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2552b32b0b349df160a509fe49f5f308cb922f2b"},{"fixed":"ed79b93f725cd0da39a265dc23d77add1527b9be"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"791d5409cdb974c31a1bc7a903ea729ddc7d83df"},{"fixed":"e4519a016650e952ad9eb27937f8c447d5a4e06d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"afc360e8a1256acb7579a6f5b6f2c30b85b39301"},{"fixed":"25777f3f4e1f371d16a594925f31e37ce07b6ec7"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"39299bdd2546688d92ed9db4948f6219ca1b9542"},{"fixed":"939a08bcd4334bad4b201e60bd0ae1f278d71d41"},{"fixed":"cc219cb8afbc40ec100c0de941047bb29373126a"},{"fixed":"9da27fb65a14c18efd4473e2e82b76b53ba60252"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36031.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}