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 3B3821D2F43 for ; Tue, 19 Nov 2024 17:24:11 +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=1732037052; cv=none; b=YlLZ1lat7PGara1ORH13FHZ0XBpjvCeEhmvVqeY4ltvedJZJMi9GQVJ3lSfiLCsqgUK3tmg5v73Ufj5uVx/8rjYGl2nQM6JzKwZRvn5Dpr5nG9QXMvN9qWPdMIdrJcktRqTe1UPQUnBoQUZhLsMr9vHgdmQ6oH99mFTbmiosFxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732037052; c=relaxed/simple; bh=QIftLm69DaPN0BwU/tfFl3fN1Bqmp1QbJXdv77idfjQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rQDl9scxtJrMAAjCwiCW7bmUKEDbUqmwRC/EuO7jT/cLvmErKxMV8lM1XNGPtk0+I1JJuT6kQ27yVMdcFBhkgQ4jzzgtfbPdum4Gjsc8yKZtj40Xe5Dwo8UDP2tkJHVUFUyVMeo5JMNgWdQoplTgONxAMB/w7Xpj6g2DOyGuagA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L+h3OZB3; 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="L+h3OZB3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACC41C4CECF; Tue, 19 Nov 2024 17:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732037051; bh=QIftLm69DaPN0BwU/tfFl3fN1Bqmp1QbJXdv77idfjQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=L+h3OZB3u15txYE7A1wMCxTVB8VvO44DK/xXPrP8YjUm40As/tzcqCc0rCPwhPgmx gxnDXc3CFam6FsB6MH5Le6f0VlHQaE7yofgZH1PFhssZx5vxEsaV3ppqSwXgUUhx6j e40KSSEkbo3MfbNidq+vQJh41UHBtWwF40+2P7cg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53064: idpf: fix idpf_vc_core_init error path Date: Tue, 19 Nov 2024 18:22:35 +0100 Message-ID: <2024111932-CVE-2024-53064-119c@gregkh> X-Mailer: git-send-email 2.47.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=2434; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QIftLm69DaPN0BwU/tfFl3fN1Bqmp1QbJXdv77idfjQ=; b=kA0DAAIRMUfUDdst+ykByyZiAGc8yVjIppZqyO71tsXs8NVjXnljxuCQH528kD+LCl8WdzxfP IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmc8yVgACgkQMUfUDdst+ynkxwCgje1R CZVNr3GH0H6du+eSrzW4wRMAoKO2+VcFhqAKfS/PXQDm5jDSwvB9 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: idpf: fix idpf_vc_core_init error path In an event where the platform running the device control plane is rebooted, reset is detected on the driver. It releases all the resources and waits for the reset to complete. Once the reset is done, it tries to build the resources back. At this time if the device control plane is not yet started, then the driver timeouts on the virtchnl message and retries to establish the mailbox again. In the retry flow, mailbox is deinitialized but the mailbox workqueue is still alive and polling for the mailbox message. This results in accessing the released control queue leading to null-ptr-deref. Fix it by unrolling the work queue cancellation and mailbox deinitialization in the reverse order which they got initialized. The Linux kernel CVE team has assigned CVE-2024-53064 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 4930fbf419a7 and fixed in 6.11.8 with commit 683fcd90ba22 Issue introduced in 6.7 with commit 4930fbf419a7 and fixed in 6.12 with commit 9b58031ff96b 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-53064 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/net/ethernet/intel/idpf/idpf_lib.c drivers/net/ethernet/intel/idpf/idpf_virtchnl.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/683fcd90ba22507ebeb1921a26dfe77efff8c266 https://git.kernel.org/stable/c/9b58031ff96b84a38d7b73b23c7ecfb2e0557f43