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 089BB1F472F for ; Fri, 27 Dec 2024 14:12:37 +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=1735308757; cv=none; b=VgxSqgMkPJSn7km1+Zzj9vPH0ERJXGEP3yeoaE1k9RcvclnfmqWfrNDmIoobD1rRfSI5rrqu0ku0qdDhd5lxLLsUTGnT2BBgp1dFUqI04sa/5pMPg5hNTK8zY/dPiyCkqlVT3TGZUDlCNuauM3cn/6UyBD8/hDjEyuE0ry8nrn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735308757; c=relaxed/simple; bh=lq06CCa/2Ije0sBvQxoYBpR5yFTSIFglcMT7//qhHcM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ujxBGnDluCbUEAy/yn9nr2nA8Q1AurVGN1WpRWeXKxeTUvbvkNQ6Hh1CNae45E2Vx3gjimcxHMwMuf2L4QbWLhtbn5wRe+A1UeEtTxxNpIf7Nux+siRL0uq9cXu4JSfchgtJSPptHnO83BQbmi72Pv5j0YnxPZeTHEhPA3YPJdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gpI/yzCl; 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="gpI/yzCl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AA68C4CED0; Fri, 27 Dec 2024 14:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735308756; bh=lq06CCa/2Ije0sBvQxoYBpR5yFTSIFglcMT7//qhHcM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gpI/yzClmje9qpOCsmLgwMLkHlmzUXtR8bdpQ77MqcnEXQmgp4SCyQA5D/p5Vfr55 gts2hQTRUf5ibBGDrNFqKJbAWSAAvf+WjsWHoOvif2MEU2SHK6VSy0m1arwWe4ngeu c4++r0+ILMXTPigmxDtN5FbEs9IJ1Ov2ygKmsiGQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56540: accel/ivpu: Prevent recovery invocation during probe and resume Date: Fri, 27 Dec 2024 15:11:31 +0100 Message-ID: <2024122726-CVE-2024-56540-d2f7@gregkh> X-Mailer: git-send-email 2.47.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=2817; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lq06CCa/2Ije0sBvQxoYBpR5yFTSIFglcMT7//qhHcM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5W/st27e/mh/W5XFVz8ToFVMvo0Lk1X6VyLjvYgErJ qiLzDnUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPRyGFYcN18e+6S0ADp2BM3 oyNEP2b3/vllzLCgweXwDuXL1UZi33doKtUJNLlPUjYDAA== 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: Prevent recovery invocation during probe and resume Refactor IPC send and receive functions to allow correct handling of operations that should not trigger a recovery process. Expose ivpu_send_receive_internal(), which is now utilized by the D0i3 entry, DCT initialization, and HWS initialization functions. These functions have been modified to return error codes gracefully, rather than initiating recovery. The updated functions are invoked within ivpu_probe() and ivpu_resume(), ensuring that any errors encountered during these stages result in a proper teardown or shutdown sequence. The previous approach of triggering recovery within these functions could lead to a race condition, potentially causing undefined behavior and kernel crashes due to null pointer dereferences. The Linux kernel CVE team has assigned CVE-2024-56540 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 45e45362e0955fc3b0b622e8a0d788097f3de902 and fixed in 6.11.11 with commit cac822772c4dc27a285f09caf30072ab76d2bf38 Issue introduced in 6.8 with commit 45e45362e0955fc3b0b622e8a0d788097f3de902 and fixed in 6.12.2 with commit 362ef76020ea6219a4df4ac5b738672b59527239 Issue introduced in 6.8 with commit 45e45362e0955fc3b0b622e8a0d788097f3de902 and fixed in 6.13-rc1 with commit 5eaa497411197c41b0813d61ba3fbd6267049082 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-56540 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_ipc.c drivers/accel/ivpu/ivpu_ipc.h drivers/accel/ivpu/ivpu_jsm_msg.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/cac822772c4dc27a285f09caf30072ab76d2bf38 https://git.kernel.org/stable/c/362ef76020ea6219a4df4ac5b738672b59527239 https://git.kernel.org/stable/c/5eaa497411197c41b0813d61ba3fbd6267049082