From mboxrd@z Thu Jan 1 00:00:00 1970 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 040491170E for ; Sat, 24 Feb 2024 14:57:18 +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=1708786639; cv=none; b=QyKMSV7lMKP0U/gVSXUo2BH525PWnn8zROf7/kjYyKjsnyCY6Cf/AVahRxo5G4/uAac7A9nzoWN7kVsxjIc3mm/Gx7LiVw4UA/tRAnOIBlJ9sgsWDJdY2yZZ+zfAPVPi/FuoTRvrfIUMFhaRGbSOtZ/9Fyc6J3N9KXPwFFJWTco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708786639; c=relaxed/simple; bh=1jUJM4UiUG/bdANvnv8da/pUCMX8phXi105bwTSYsUQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FgMDHhUR4d57d78T6zpJwo5FZYoLtUTfH7emhbtlFAm1PKjnICQWbSfLJnraw5P6nizJXc4cof4bj6LrGAJ5aeNTI3d6kGYZIt/tDd9+yA8k5y23b/VLfgv2zy62Hlvmbt4Xcud+jAgXazCx3J7dxLULwjaERzbJbOywgcUDc1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ENsY1xGN; 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="ENsY1xGN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20700C433C7; Sat, 24 Feb 2024 14:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708786638; bh=1jUJM4UiUG/bdANvnv8da/pUCMX8phXi105bwTSYsUQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ENsY1xGNpzuxI9laQrUMRAFOouhTkIXLbkJX/gm9wLZDKKN7hWoX+a9AXHTyXfQCO 2L3eBzUaqrYPORBFkSCdgYQRwXCLT+x+fyp1dCrTwD8gMUxY1mETupEyO9AbK1hLUZ qi6AWIBl9wEiyHUANVIok0IZ2d/OizSLz1w1eJfc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26602: sched/membarrier: reduce the ability to hammer on sys_membarrier Date: Sat, 24 Feb 2024 15:57:14 +0100 Message-ID: <2024022414-CVE-2024-26602-5e76@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=2787; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1jUJM4UiUG/bdANvnv8da/pUCMX8phXi105bwTSYsUQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDKm3mE/ZeYor6x7mWq0cJ9jB9ePq+/0n7Demxn69uPnd4 5iOsDMZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRSGuGBbP+HWcQ86tpXD37 Su8aq2c/XtTsLGCY77rtoYOectnjN4t/7V+oZ3Fx3sFjJQA= 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: sched/membarrier: reduce the ability to hammer on sys_membarrier On some systems, sys_membarrier can be very expensive, causing overall slowdowns for everything. So put a lock on the path in order to serialize the accesses to prevent the ability for this to be called at too high of a frequency and saturate the machine. The Linux kernel CVE team has assigned CVE-2024-26602 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit c5f58bd58f43 and fixed in 4.19.307 with commit 3cd139875e9a Issue introduced in 4.14 with commit c5f58bd58f43 and fixed in 5.4.269 with commit 2441a64070b8 Issue introduced in 4.14 with commit c5f58bd58f43 and fixed in 5.10.210 with commit db896bbe4a9c Issue introduced in 4.14 with commit c5f58bd58f43 and fixed in 5.15.149 with commit 50fb4e17df31 Issue introduced in 4.14 with commit c5f58bd58f43 and fixed in 6.1.79 with commit 24ec7504a08a Issue introduced in 4.14 with commit c5f58bd58f43 and fixed in 6.6.18 with commit b6a2a9cbb675 Issue introduced in 4.14 with commit c5f58bd58f43 and fixed in 6.7.6 with commit c5b2063c65d0 Please see https://www.kernel.org or 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-26602 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: kernel/sched/membarrier.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/3cd139875e9a7688b3fc715264032620812a5fa3 https://git.kernel.org/stable/c/2441a64070b85c14eecc3728cc87e883f953f265 https://git.kernel.org/stable/c/db896bbe4a9c67cee377e5f6a743350d3ae4acf6 https://git.kernel.org/stable/c/50fb4e17df319bb33be6f14e2a856950c1577dee https://git.kernel.org/stable/c/24ec7504a08a67247fbe798d1de995208a8c128a https://git.kernel.org/stable/c/b6a2a9cbb67545c825ec95f06adb7ff300a2ad71 https://git.kernel.org/stable/c/c5b2063c65d05e79fad8029324581d86cfba7eea