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 BC0DA1494CA for ; Wed, 3 Apr 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=1712156238; cv=none; b=KDxsUl9claI45ZMMl5VYFFxVqR6/J9zxlTWO++o/5ztCxp5GZOnmMnL/3xYgVJKFmBlAedLa0hyNdUVrYpPgjlDN7g5reiZh4xReFEInKvmRqD9Pc+l5EK70aHtonan7vEb4J1vMNRC/xVtSNpDGogDBDosLzlrtNPGZa9tlwmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712156238; c=relaxed/simple; bh=srZb3OMXtDISbiNybMdIvoamGzUlBJNQ0zrn20kidfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iBWDXL+RO8dgVtIUElHtVILmonbGqZYMF0WSwPKTAPl3wBsSW5GayUi3n2yUkOJ7GV5uKQjygvvDz6z/6UUiJXznCWcP8G7c7V7KsilK0g/uReyy2d2zxMPZ7dPhlxJaXXDB2DX1MzykwPZ/F1OqORLu4lWWIVGXmgJ58FlLOug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YiAYAvqv; 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="YiAYAvqv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38DEFC433F1; Wed, 3 Apr 2024 14:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712156238; bh=srZb3OMXtDISbiNybMdIvoamGzUlBJNQ0zrn20kidfI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YiAYAvqv45DFcVCq2UoJsPoWtSv29SGSWDSysh9AWdMymtCgkbmu3i76T68VZeehD 5WDqHqMvaFASE55Qeln0M6NJ2XSsa4PyFi1iwhm5T6awUObUWUjSKNU92RCjcsFh4Z FNERFd2l1yhq5MMkFTPAyO8CTKHroEhpQJAnXSwg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26686: fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children stats Date: Wed, 3 Apr 2024 16:55:37 +0200 Message-ID: <2024040335-CVE-2024-26686-b22f@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=2036; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=srZb3OMXtDISbiNybMdIvoamGzUlBJNQ0zrn20kidfI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8uc+X5nH8dHhx+9inAPmgW1dv+Srs/eJyKmIHD1vHJ wXxP3/dOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisq0MC+bN3bgy/m7ajjVn dELemPmF3fHMt2BY0B+6SKBzQ9wTjfat+SuUK3R3arppAAA= 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: fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children stats lock_task_sighand() can trigger a hard lockup. If NR_CPUS threads call do_task_stat() at the same time and the process has NR_THREADS, it will spin with irqs disabled O(NR_CPUS * NR_THREADS) time. Change do_task_stat() to use sig->stats_lock to gather the statistics outside of ->siglock protected section, in the likely case this code will run lockless. The Linux kernel CVE team has assigned CVE-2024-26686 to this issue. Affected and fixed versions =========================== Fixed in 6.1.82 with commit cf4b8c39b9a0 Fixed in 6.7.6 with commit 27978243f165 Fixed in 6.8 with commit 7601df8031fd 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-26686 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: fs/proc/array.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/cf4b8c39b9a0bd81c47afc7ef62914a62dd5ec4d https://git.kernel.org/stable/c/27978243f165b44e342f28f449b91327944ea071 https://git.kernel.org/stable/c/7601df8031fd67310af891897ef6cc0df4209305