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 9B692524A5 for ; Fri, 17 May 2024 13:24:41 +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=1715952281; cv=none; b=QqOPnEVO8ER+SJ29I5c8UGv57gJBRpME++UIfWacWSF5/mHVJ/UEwWMe9BhBVT5lbBFfrJ7CBiYMivkC1ZJhQoJ0Ictj0ZbC7R0XFEdpFJnm0T7euta/29ynwhzMIIhoJ+uaFeY4VQEMj2a3HPnVOQF+g6nduWT3A7lRYoaMzgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715952281; c=relaxed/simple; bh=ty8LVWEXzplyRZdbLLm/8MgQU47uPZIl4fbnzVwq770=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HWamDoEoYSSXngW1CabfHlOyTtS5Fx7g+1cf/kY3PHIqhWyJXPLlmhHRfhT1lmAInf/+GQZOOBcP8CCD29/oBIaymSHl1LBbbotKg9DEr+VigEw4HuTC6Nqm/K9kx1JX1FaMx3hMV7NCPaxmg46btc2wL3oI1PbIxSuLqu0qA3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HcKjiWb/; 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="HcKjiWb/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A5ADC2BD11; Fri, 17 May 2024 13:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715952281; bh=ty8LVWEXzplyRZdbLLm/8MgQU47uPZIl4fbnzVwq770=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HcKjiWb/5ffIoiJi6VH7swROeBwWlP7AVUJng9fsEpjH/FCUypOy+Io79fnKpkgyU Fej+OsFTOFYGjkySHujolQvMlp2f+bDJ/zb1wTI41w/nDMEjyLAVR7OOVlu9+e/2KM hiQ3sVgjcWEYv83z3KXhRYWjQjzflCdNDs8NfvXA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35819: soc: fsl: qbman: Use raw spinlock for cgr_lock Date: Fri, 17 May 2024 15:23:59 +0200 Message-ID: <2024051743-CVE-2024-35819-d234@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=3468; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ty8LVWEXzplyRZdbLLm/8MgQU47uPZIl4fbnzVwq770=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuUfHRnk9lHb65ns39E3ag/bX4xxOTlRN1W6+4Gom7v S1INl3aEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5/YJhnoK2UtWssxWMZRZS OXlsNm4bY8X5GBZcbG/NvbB9Ut2SIrspLhGKb//M36oHAA== 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: Use raw spinlock for cgr_lock smp_call_function always runs its callback in hard IRQ context, even on PREEMPT_RT, where spinlocks can sleep. So we need to use a raw spinlock for cgr_lock to ensure we aren't waiting on a sleeping task. Although this bug has existed for a while, it was not apparent until commit ef2a8d5478b9 ("net: dpaa: Adjust queue depth on rate change") which invokes smp_call_function_single via qman_update_cgr_safe every time a link goes up or down. The Linux kernel CVE team has assigned CVE-2024-35819 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 96f413f47677 and fixed in 4.19.312 with commit 2b3fede82251 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 5.4.274 with commit ff50716b7d5b Issue introduced in 4.16 with commit 96f413f47677 and fixed in 5.10.215 with commit 32edca2f03a6 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 5.15.154 with commit 9a3ca8292ce9 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.1.84 with commit d6b5aac451c9 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.6.24 with commit 54d26adf64c0 Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.7.12 with commit f39d36b7540c Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.8.3 with commit cd53a8ae5aac Issue introduced in 4.16 with commit 96f413f47677 and fixed in 6.9 with commit fbec4e7fed89 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-35819 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/2b3fede8225133671ce837c0d284804aa3bc7a02 https://git.kernel.org/stable/c/ff50716b7d5b7985979a5b21163cd79fb3d21d59 https://git.kernel.org/stable/c/32edca2f03a6cc42c650ddc3ad83d086e3f365d1 https://git.kernel.org/stable/c/9a3ca8292ce9fdcce122706c28c3f07bc857fe5e https://git.kernel.org/stable/c/d6b5aac451c9cc12e43ab7308e0e2ddc52c62c14 https://git.kernel.org/stable/c/54d26adf64c04f186098b39dba86b86037084baa https://git.kernel.org/stable/c/f39d36b7540cf0088ed7ce2de2794f2aa237f6df https://git.kernel.org/stable/c/cd53a8ae5aacb4ecd25088486dea1cd02e74b506 https://git.kernel.org/stable/c/fbec4e7fed89b579f2483041fabf9650fb0dd6bc