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 330F919258C for ; Sat, 11 Jan 2025 12:25:35 +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=1736598336; cv=none; b=FnkmoJ6V+Go+JBQPpS4CvqO7P6pCq1zWHtiEBkpLSyHpjn4Lm9d9keGItZeB7IUbEnhnU8hxzWd8K16uvUTgDDn87BPtGPiQmThW5i8dGYfKpz9MD3B2AOT68k9cm6NG7U1Oz/C5h6BDpneyUuYgDiZTDRQQsFBmREm3Zbun8wY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598336; c=relaxed/simple; bh=19rf/rNZuBFsTMXL9B40FoUbocNEkRO2/1Kk2Q/OnLI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fAPdul9YglgZMSwm4MWNi7A+1jHsG3GZpl3VVFlr9hmFTpd330Bnxk+oTuH/sisEoFJPxM2H1MLo3LpgXcceIlH7Z/GEvMxBc0JsbxIoNDsvUEpUP/Q/nilNWWh6Lk0IpHYTI+I8uAnBCVGuvrTp91g7tZkvCyfk8iXxcPCsF1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CQLFf0Tn; 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="CQLFf0Tn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 394A5C4CED2; Sat, 11 Jan 2025 12:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736598335; bh=19rf/rNZuBFsTMXL9B40FoUbocNEkRO2/1Kk2Q/OnLI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CQLFf0TnPrTAx5BSsRGZjXX64pOlkU0ZaJ299/4GdS7gg1PuMwe7Kxj9mXJYAVLZb sA7pyRuG12uCERrW0ECUZnUQDDkK5xu3HeYjiSa0aIBzb4q+QLjRI8+uQKItzZgZQh iTqtDNciJwMw2Q3AJPmNwAmX/5AmkIev4l8vHp34= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-48876: stackdepot: fix stack_depot_save_flags() in NMI context Date: Sat, 11 Jan 2025 13:25:26 +0100 Message-ID: <2025011121-CVE-2024-48876-da61@gregkh> X-Mailer: git-send-email 2.48.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=2277; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=19rf/rNZuBFsTMXL9B40FoUbocNEkRO2/1Kk2Q/OnLI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNyYbOzy+L1gob7GrXnn6mKfCccCZXjsRE5/sXUyQK1 q3wNf/dEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZ8othvnNa1w3WBsM9txnW cC/WyrBKdL/lyrBgn5zRHlFd07PvW8WkpdRu7xQ8/fI2AA== 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: stackdepot: fix stack_depot_save_flags() in NMI context Per documentation, stack_depot_save_flags() was meant to be usable from NMI context if STACK_DEPOT_FLAG_CAN_ALLOC is unset. However, it still would try to take the pool_lock in an attempt to save a stack trace in the current pool (if space is available). This could result in deadlock if an NMI is handled while pool_lock is already held. To avoid deadlock, only try to take the lock in NMI context and give up if unsuccessful. The documentation is fixed to clearly convey this. The Linux kernel CVE team has assigned CVE-2024-48876 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 4434a56ec20925333d6cf4d4093641d063abd35b and fixed in 6.12.5 with commit 9bfeeeff2c92b9dd261198b601b45bde4c529841 Issue introduced in 6.8 with commit 4434a56ec20925333d6cf4d4093641d063abd35b and fixed in 6.13-rc2 with commit 031e04bdc834cda3b054ef6b698503b2b97e8186 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-48876 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: include/linux/stackdepot.h lib/stackdepot.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/9bfeeeff2c92b9dd261198b601b45bde4c529841 https://git.kernel.org/stable/c/031e04bdc834cda3b054ef6b698503b2b97e8186