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 C06252C6B3 for ; Tue, 2 Apr 2024 06:49:24 +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=1712040564; cv=none; b=gH1SAF0CMptM2W/rmaBOKwqDKxHG4enQftDLNqZ/6MobFNm4kujv9oVp/rnsbpYyw4qIflj58euAl4XSUnEc4Caa5c0D/sh7pJhz2rIP8cdEjIQWxmJLfQ27lDIK91hp+AiFzSQV/9zWaCadERI/cebROnj+360LR+nPz3/DVpM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712040564; c=relaxed/simple; bh=EoXv5onnkOaJNTTCbDFqha0JD+uPC++lnJKm5+U1m5A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZAFZP0R6R6D7SwJgquTq/oEErhSzM0fPS/gGICv8hwydtzi/hnYPZ+HnxZKdCXtCk/Evkw6flGdIOoi0PmMynAvplomckHALYa6fHPQg/vpxWGboOCxp3rNzt0zQ6UtLd97CcD649Xa9YLuzEFSyZoTya2XRCpeVdkiyvm+C8M8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DjRAYsTm; 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="DjRAYsTm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EED34C43390; Tue, 2 Apr 2024 06:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712040564; bh=EoXv5onnkOaJNTTCbDFqha0JD+uPC++lnJKm5+U1m5A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DjRAYsTmAmlE1qbKRpOPWwgmw4pAtalGvKFU1shEr0Hlmi8FL6zBeDGBzEXQuAtSB h4D3smKI0VXKXtiEu0lFUFc6aHzpXgdrKPptY4vcv5SwPjxksf0z9yklWQ5HG4GHDz hwPyXoHfmXQGkRurJyLrArFxkj/n8rb0bRnSiVX4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52633: um: time-travel: fix time corruption Date: Tue, 2 Apr 2024 08:49:20 +0200 Message-ID: <2024040218-CVE-2023-52633-d020@gregkh> X-Mailer: git-send-email 2.44.0 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=2489; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EoXv5onnkOaJNTTCbDFqha0JD+uPC++lnJKm5+U1m5A=; b=owGbwMvMwCRo6H6F97bub03G02pJDGncq/KurM1v7Cnk+Xsoj01zZv+WXyn/Gr5NeMi9Z2L90 Xm5/v+rO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiT1gY5udl1QeePLp/j6tB 1YYZ/3Ilo657JTPMj3+sv7Iu6pXJDgm32S8SO2cslHnTCgA= 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: um: time-travel: fix time corruption In 'basic' time-travel mode (without =inf-cpu or =ext), we still get timer interrupts. These can happen at arbitrary points in time, i.e. while in timer_read(), which pushes time forward just a little bit. Then, if we happen to get the interrupt after calculating the new time to push to, but before actually finishing that, the interrupt will set the time to a value that's incompatible with the forward, and we'll crash because time goes backwards when we do the forwarding. Fix this by reading the time_travel_time, calculating the adjustment, and doing the adjustment all with interrupts disabled. The Linux kernel CVE team has assigned CVE-2023-52633 to this issue. Affected and fixed versions =========================== Fixed in 5.15.149 with commit 0c7478a2da3f Fixed in 6.1.77 with commit 4f7dad73df4c Fixed in 6.6.16 with commit de3e9d8e8d1a Fixed in 6.7.4 with commit b427f55e9d41 Fixed in 6.8 with commit abe4eaa8618b 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-2023-52633 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: arch/um/kernel/time.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/0c7478a2da3f5fe106b4658338873d50c86ac7ab https://git.kernel.org/stable/c/4f7dad73df4cdb2b7042103d3922745d040ad025 https://git.kernel.org/stable/c/de3e9d8e8d1ae0a4d301109d1ec140796901306c https://git.kernel.org/stable/c/b427f55e9d4185f6f17cc1e3296eb8d0c4425283 https://git.kernel.org/stable/c/abe4eaa8618bb36c2b33e9cdde0499296a23448c