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 6E21817E919 for ; Fri, 13 Sep 2024 05:31:21 +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=1726205481; cv=none; b=CvugiRDF9z7nG8MhDSNTIT8YguwqqQls/T9Vef6hvvOn1t1qKuiGZXT0d/ehFI9hQDxGmh5PJLke2VH3MVaN3L/oazAI/E14F0nwbQ8tXHaZDOiWP0jeWElMG9SBEVci2kcVTbJARz2e3e1jAme1rZsxrsbXiw4w+StFeRuCAhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726205481; c=relaxed/simple; bh=H8DgknBNgw68bLahYdw5ldn9ntXd/Fd+D+O/nre++Lc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bJNZrVQdDv5OJcyAtAUTMG65GpKibiVUS7aBQqSz1rqn4WkYxAvLgDT5VzCGgSy3xSzc9S6qVWq/wRG0l+2xCbgEKtX2x9xIFmiIMUf31rYfd1jU1GPiRpgN0SRWCuomXrs+lO4YE3YcKoI7Z1MEp5cf/V54EDFqdaGm6cvqP9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yim+sC67; 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="Yim+sC67" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 993AFC4CEC0; Fri, 13 Sep 2024 05:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726205481; bh=H8DgknBNgw68bLahYdw5ldn9ntXd/Fd+D+O/nre++Lc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Yim+sC671YZUShsEb36OW6C4W62OL2/XD2pqE7hyMzZK+Rh3v+wkSCPZ1jN4IE2L0 F+VF0ZSswgLl+6MkbZ9U9SPXjc71rSqnSNPvFbTDE5QhpyNBWLDHcOU76yc/H6P6RX 9ct/IqGQZndP/TD8NqsWmaa4vfxzoa/Ro2zqzTNk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46692: firmware: qcom: scm: Mark get_wq_ctx() as atomic call Date: Fri, 13 Sep 2024 07:30:53 +0200 Message-ID: <2024091339-CVE-2024-46692-f287@gregkh> X-Mailer: git-send-email 2.46.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=2290; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=H8DgknBNgw68bLahYdw5ldn9ntXd/Fd+D+O/nre++Lc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmPzzGc79+e5HNhxwHDvqBfZjOlv+3jk8jU2SV3Oe5l1 uZyt1uzOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi++8wLDj94pAru1VGQ377 5DvbtkoH8b8tl2SYn2G4WzJ5wc/r/4TfVMzJ6ulfV7NYGgA= 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: firmware: qcom: scm: Mark get_wq_ctx() as atomic call Currently get_wq_ctx() is wrongly configured as a standard call. When two SMC calls are in sleep and one SMC wakes up, it calls get_wq_ctx() to resume the corresponding sleeping thread. But if get_wq_ctx() is interrupted, goes to sleep and another SMC call is waiting to be allocated a waitq context, it leads to a deadlock. To avoid this get_wq_ctx() must be an atomic call and can't be a standard SMC call. Hence mark get_wq_ctx() as a fast call. The Linux kernel CVE team has assigned CVE-2024-46692 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 6bf325992236 and fixed in 6.6.49 with commit cdf7efe4b02a Issue introduced in 6.3 with commit 6bf325992236 and fixed in 6.10.8 with commit e40115c33c0d Issue introduced in 6.3 with commit 6bf325992236 and fixed in 6.11-rc6 with commit 9960085a3a82 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-46692 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: drivers/firmware/qcom/qcom_scm-smc.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/cdf7efe4b02aa93813db0bf1ca596ad298ab6b06 https://git.kernel.org/stable/c/e40115c33c0d79c940545b6b12112aace7acd9f5 https://git.kernel.org/stable/c/9960085a3a82c58d3323c1c20b991db6045063b0