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 9A4D9524A5 for ; Fri, 17 May 2024 13:24:00 +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=1715952240; cv=none; b=YplOb3POGauV/NYQ8d0s3Fg2itutkHPAMDkBGpnmUstc9B6BMlsCFhGdh/VY+UC7L3n3Roeu8AOpX6nXc23gOtxFes137SkCnbANqbYQH7zTMyyfwmkliGo5FOHimNEh5zUtax7X/YbFKot5CGFBfuC2wRMbrgwX+0p+dP1EHVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715952240; c=relaxed/simple; bh=5NIQ2T5TBar7wiCi7rTWRebCAi4wfKHcBfwnPVkiPqU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YvjM4/+PktYaUTkhu/q++7vlXos5K1+SchlYt3O0wJ5YNAGbbZI5qMJbhJRHhUp868FqMWnRL7chtM1fHyPrldRTw7JlfjE6/Q+oSfy3Idtfg+QlgENcrQiPJAUmsUq2gXuSVI020GmhZLiJ8tOhns33AoUWPUSN15QJ+BNdINQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NfBxFue6; 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="NfBxFue6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9A95C2BD10; Fri, 17 May 2024 13:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715952240; bh=5NIQ2T5TBar7wiCi7rTWRebCAi4wfKHcBfwnPVkiPqU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NfBxFue6wWAsmj+Gjjbi11be/lY8CblnkYCQ5mEffebTqZf80oEy6vB9/wqOfVOsi XWKK/A+eHIEQfPUrrTO3WVyhN9DW9oZgnV2ZVw/57cR4EyUBnsXUroT85rMaA9OaRn wO88fI8HjxOO4C1EjrFIFkf/TU1N+pX2Br6cStWc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35806: soc: fsl: qbman: Always disable interrupts when taking cgr_lock Date: Fri, 17 May 2024 15:23:46 +0200 Message-ID: <2024051739-CVE-2024-35806-38c3@gregkh> X-Mailer: git-send-email 2.45.1 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=3265; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5NIQ2T5TBar7wiCi7rTWRebCAi4wfKHcBfwnPVkiPqU=; b=kA0DAAIRMUfUDdst+ykByyZiAGZHWlzIbx80Sw6j8GjzBJREPkQnJnegI8B3xLvWYFZF7B6o6 IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmZHWlwACgkQMUfUDdst+ymnkwCgq2jD j6+suCPePJ3gTzHFFYN/AWMAoNnlxNTM6SmSDDCT3TRlQqxRiw9P 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: soc: fsl: qbman: Always disable interrupts when taking cgr_lock smp_call_function_single disables IRQs when executing the callback. To prevent deadlocks, we must disable IRQs when taking cgr_lock elsewhere. This is already done by qman_update_cgr and qman_delete_cgr; fix the other lockers. The Linux kernel CVE team has assigned CVE-2024-35806 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 96f413f47677 and fixed in 4.19.312 with commit b56a793f2676 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 5.4.274 with commit 62c3ecd2833c Issue introduced in 4.16 with commit 96f413f47677 and fixed in 5.10.215 with commit dd199e5b759f Issue introduced in 4.16 with commit 96f413f47677 and fixed in 5.15.154 with commit e6378314bb92 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.1.84 with commit a62168653774 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.6.24 with commit 0e6521b0f93f Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.7.12 with commit 276af8efb05c Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.8.3 with commit af25c5180b2b Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.9 with commit 584c2a9184a3 Issue introduced in 4.9.92 with commit a85c525bbff4 Issue introduced in 4.14.32 with commit 29cd9c2d1f42 Issue introduced in 4.15.15 with commit 5b10a404419f 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-35806 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/soc/fsl/qbman/qman.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/b56a793f267679945d1fdb9a280013bd2d0ed7f9 https://git.kernel.org/stable/c/62c3ecd2833cff0eff4a82af4082c44ca8d2518a https://git.kernel.org/stable/c/dd199e5b759ffe349622a4b8fbcafc51fc51b1ec https://git.kernel.org/stable/c/e6378314bb920acb39013051fa65d8f9f8030430 https://git.kernel.org/stable/c/a62168653774c36398d65846a98034436ee66d03 https://git.kernel.org/stable/c/0e6521b0f93ff350434ed4ae61a250907e65d397 https://git.kernel.org/stable/c/276af8efb05c8e47acf2738a5609dd72acfc703f https://git.kernel.org/stable/c/af25c5180b2b1796342798f6c56fcfd12f5035bd https://git.kernel.org/stable/c/584c2a9184a33a40fceee838f856de3cffa19be3