Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CFF8187555 for ; Thu, 30 May 2024 15:23:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717082636; cv=none; b=ARC1+RWHd0Ez2ITvQ/GqI8GcLUJPsHdiIjuer3yaTlutAOxR+xltVfbmv9RXyxJLZvjpv+DV9xrajslEm0l43F7y1j5HEePlhBEgjb40B7O1O+xGyxFaB/x3zA/nhKFQiHzuFyyosA2HI57PGhANoD7oCWQP55D2tjVJQ07JDLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717082636; c=relaxed/simple; bh=BW9jODEblYHFINOJsq+KuHubHULajvDgiFH3+TxsTBU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V+zgXBM+PvnA/3f8drciDZFhT6Bk+9PYf7L7cF1y6TRvNRIkvWfON4m3UpYj5TOVMBi0vibpsJq/p5VD/axy7Z7vFBqqfJyW/HwrBZP20VefUGa+2zBhEiXroJB2w2lQCQ5gZtsx0DZqU+4aPMwmRwJxTsWgF0p7hWNhsdBUGxs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u5DFPICn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="u5DFPICn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2C77C2BBFC; Thu, 30 May 2024 15:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717082636; bh=BW9jODEblYHFINOJsq+KuHubHULajvDgiFH3+TxsTBU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=u5DFPICnc3XhRCOW3g+DpUKJ1SDRar2rSScDDgCrC1FUzlu/nldFNdX//sgD8hYeD UOwFQjXTrEtKj6kjXEFdJ9/szbkkeuJKxjH06c/tnPvOwaLXR3RarApb04WTBlVv2l wKC4aWEvaCJe/Uwlf9QfDpdznA+/2awshJJFIp1o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36031: keys: Fix overwrite of key expiration on instantiation Date: Thu, 30 May 2024 17:24:01 +0200 Message-ID: <2024053000-CVE-2024-36031-46f2@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2888; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BW9jODEblYHFINOJsq+KuHubHULajvDgiFH3+TxsTBU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRswRc2gX384VM2Lmd+4/NgxeaF8L2ivZ6Ne4U4wpaH L7jmH9+RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkymSGBediUt3ytxXnLON/ 98Nt848pdllPzBjm+y8zKbebdsFyZmj94wSxsuqt8ipJAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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. The Linux kernel CVE team has assigned CVE-2024-36031 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.206 with commit 97be1e865e70 and fixed in 5.10.217 with commit ad2011ea7879 Issue introduced in 5.15.146 with commit 2552b32b0b34 and fixed in 5.15.159 with commit ed79b93f725c Issue introduced in 6.1.70 with commit 791d5409cdb9 and fixed in 6.1.91 with commit e4519a016650 Issue introduced in 6.6.9 with commit afc360e8a125 and fixed in 6.6.31 with commit 25777f3f4e1f Issue introduced in 6.7 with commit 39299bdd2546 and fixed in 6.8.10 with commit 939a08bcd433 Issue introduced in 6.7 with commit 39299bdd2546 and fixed in 6.9.1 with commit cc219cb8afbc Issue introduced in 6.7 with commit 39299bdd2546 and fixed in 6.10-rc1 with commit 9da27fb65a14 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2024-36031 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: security/keys/key.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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