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 ADE2D269823 for ; Fri, 9 May 2025 06:46:11 +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=1746773171; cv=none; b=ALFKvY+qDUtUunqvUwo1uuvQp+Q1SYNYpvG5pxkXsSgp/kv1lx8xucYGUYb3owVaYMGG2TN1U7yUWVn8mG1jtixZUC3EKeqWGmx8m7Xqk7fj/Z+uOXLzc4mIpJldSUhhjdgdfEIX1DBbaHZHh/O8rqO8zJP31OoQJejcFAMNINY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773171; c=relaxed/simple; bh=SehahKrfsKk/tVa1SoN5Hq7+ye6Wg7Va/pNemaRwCj0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fWLjxXvDOsp2XL1007l7r1Ej0+DqVaRnFcTNPfD7JYa3wfc5VJp/PIYQx+lEn2WNhHJt0S/8euWv3BAe9jDXLIHT2ntrnBejvS/EUQFvJsoPgI63NOITLndpjG1SlkAV/hXjhVgPlcddoU2YBqKF+TRhQ42m0BHaYwVK0LFHcxw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hMExWw2p; 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="hMExWw2p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E242C4CEE4; Fri, 9 May 2025 06:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773171; bh=SehahKrfsKk/tVa1SoN5Hq7+ye6Wg7Va/pNemaRwCj0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hMExWw2pMSXWesoUd3Ou2GpMNmye81q3aS5tvelZb6SK6D77ofomn9KUGMYqKBhUw KmSE0j/JkgtteC3aF/5rGYnX4eOLU9kJbEmA2jgPHhBTICujCBprUSiShiBn0Xs8ox 2GNwUQnT27v5H8EfJCl8wyupBOIlbFKcpgf8asG0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37880: um: work around sched_yield not yielding in time-travel mode Date: Fri, 9 May 2025 08:45:47 +0200 Message-ID: <2025050943-CVE-2025-37880-3f3c@gregkh> X-Mailer: git-send-email 2.49.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=2242; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fuP/jJSZQ0Jd34eHXlu+y6hJGMKEwWv3nvgJtjR8yc4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyS6bnsJpO8pvMxn3m9gRhtwhf4YtSHas0tdnPvl2Yk tJ9coFBRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykoIBhfrWNZbV7cXLS1nWH Ktw+RiUu3JcSwjBXSO7IDReXKKaFWgU/ayXytob53V8GAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: um: work around sched_yield not yielding in time-travel mode sched_yield by a userspace may not actually cause scheduling in time-travel mode as no time has passed. In the case seen it appears to be a badly implemented userspace spinlock in ASAN. Unfortunately, with time-travel it causes an extreme slowdown or even deadlock depending on the kernel configuration (CONFIG_UML_MAX_USERSPACE_ITERATIONS). Work around it by accounting time to the process whenever it executes a sched_yield syscall. The Linux kernel CVE team has assigned CVE-2025-37880 to this issue. Affected and fixed versions =========================== Fixed in 6.12.26 with commit da780c4a075ba2deb05ae29f0af4a990578c7901 Fixed in 6.14.5 with commit 990ddc65173776f1e01e7135d8c1fd5f8fd4d5d2 Fixed in 6.15-rc1 with commit 887c5c12e80c8424bd471122d2e8b6b462e12874 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-2025-37880 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/include/linux/time-internal.h arch/um/kernel/skas/syscall.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/da780c4a075ba2deb05ae29f0af4a990578c7901 https://git.kernel.org/stable/c/990ddc65173776f1e01e7135d8c1fd5f8fd4d5d2 https://git.kernel.org/stable/c/887c5c12e80c8424bd471122d2e8b6b462e12874