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 53D89208D7 for ; Mon, 20 May 2024 09:42:39 +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=1716198159; cv=none; b=VJjuQtLWiRjbyM1JsFJyxK3rvQzOHjL/p7gN2uhbeTWbX+HdRNHbfuI139Hqm1UhjoCm+SAG/Uil8UZ6d5omF8CHXeF94E1YdVPgmKEbxFEFaxS0xZ472n65Us7TlCgf4xw7wPAnJOPAht1zjeLDOmGNv8R2t3CvTfJrQ4CpVd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198159; c=relaxed/simple; bh=/q7DBchvtgfQkf03gqB4us43tl1Z/p/XcekAqjmZiRk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XSXLZ22GTSWPW8jjYy9iVFzkwR5amb1UKX1Rjfursh0sr/sU7/5mQLqCo/JzCbDUqCQvPwpOqmpmj1mj45ZXfFY/ALtbKLmxrVjWc5IkJBfRvOEZlUgz4vseTjxXEaiH1KK0Yr7UhrqnScyI/bnAnBHbyVITlqxWS0DWkXuc9lE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wub26e57; 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="wub26e57" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9EE9C2BD10; Mon, 20 May 2024 09:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716198159; bh=/q7DBchvtgfQkf03gqB4us43tl1Z/p/XcekAqjmZiRk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wub26e57f1iBfm5re4zUscqgp1kbWxAvmHuAtVE1J18KsHRISihR6ue189D9jDlEe +/2eNs4i1uNOMdPKRApqWhvAR6eLDUaOuKV6X68lvtts5OquysG/GW/vd3yPpewJo2 f5Gw/0LohRbVQvjgvjtU+08c74yGQGwD9l+wRUr4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35953: accel/ivpu: Fix deadlock in context_xa Date: Mon, 20 May 2024 11:42:18 +0200 Message-ID: <2024052018-CVE-2024-35953-a809@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=2157; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/q7DBchvtgfQkf03gqB4us43tl1Z/p/XcekAqjmZiRk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGneUr+SI0Nf/LniuWuR+97Xee+T8xR3B83kN+s35ReaZ rDW63FiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE7QLDbPbZOu3X0y1FX6Q6 h0/p0fu0/nX/eYaZjM1Ov9337+Sv1LyUrW86l7/4/Kn3AA== 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: accel/ivpu: Fix deadlock in context_xa ivpu_device->context_xa is locked both in kernel thread and IRQ context. It requires XA_FLAGS_LOCK_IRQ flag to be passed during initialization otherwise the lock could be acquired from a thread and interrupted by an IRQ that locks it for the second time causing the deadlock. This deadlock was reported by lockdep and observed in internal tests. The Linux kernel CVE team has assigned CVE-2024-35953 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 35b137630f08 and fixed in 6.6.28 with commit d43e11d9c7fc Issue introduced in 6.3 with commit 35b137630f08 and fixed in 6.8.7 with commit e60114111472 Issue introduced in 6.3 with commit 35b137630f08 and fixed in 6.9 with commit fd7726e75968 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-35953 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/accel/ivpu/ivpu_drv.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/d43e11d9c7fcb16f18bd46ab2556c2772ffc5775 https://git.kernel.org/stable/c/e6011411147209bc0cc14628cbc155356837e52a https://git.kernel.org/stable/c/fd7726e75968b27fe98534ccbf47ccd6fef686f3