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 A6C331D89FA for ; Wed, 16 Apr 2025 14:18:59 +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=1744813139; cv=none; b=HDIgqsUm+hSWYznTd1FA4od32LltCRbYEcwTjTLDNlOypVlIXdCxEjnsxSFySeUGYPfMT4aR4ifL9lEPv6kcYTi5Zy3wbF/tlnmRhLhXm++ndqcobgfDv2LqwyjWiBZhJ8oUDkW2XnevsUFrjMx6PUyuGrKCQKnn9SzsUupiqwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813139; c=relaxed/simple; bh=QNlAKshkz8b0ZAb8Bzv9xJgMYKcEiGUjDByMX2qvc7s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YNX3znfkyadl8mPEaGvXXsG9NRPMVMpSVAwUDWmvV7EhY9uJf6q3/Lt0NVpej6TPBASwQpbDZv2Z9inxRmg6I44WnZRLCNocpqhE4MYlwS/DDypI4y75HvdpANcVKJU5Vjd2CzfpBRYWa9wgS+IZxvvDCs3cwvAAwK2InubbPz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qI3TkrEW; 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="qI3TkrEW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0333C4CEE2; Wed, 16 Apr 2025 14:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813139; bh=QNlAKshkz8b0ZAb8Bzv9xJgMYKcEiGUjDByMX2qvc7s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qI3TkrEWLTxMDElRD5+LCK/ROzbIGNf+QHQplUOlVIpJTZJ9hTplsxv9aJqmOg215 8aHTWj9SMm22R4DalwO7h2UtzVqdfmg5Epjv656dLrCj9GEjidXd0K2Se4BTgHi+jo t4R9K3+OlOd+hGAHyJ1ZKOT/NekCGZDdJlppCObE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22128: wifi: ath12k: Clear affinity hint before calling ath12k_pci_free_irq() in error path Date: Wed, 16 Apr 2025 16:13:39 +0200 Message-ID: <2025041630-CVE-2025-22128-c025@gregkh> X-Mailer: git-send-email 2.49.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=2578; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QNlAKshkz8b0ZAb8Bzv9xJgMYKcEiGUjDByMX2qvc7s=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d50r+cb0Yr39t113HY/kLFu6zVHj7+10rvuLe13u7 ZNnZrXZ2BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATKbrPME9pxfJCQSW5Exoh yZ0/1W4Idt6yeccwT98t7s/qV/ynXKauKLsyZU/fe+XQJQA= 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: wifi: ath12k: Clear affinity hint before calling ath12k_pci_free_irq() in error path If a shared IRQ is used by the driver due to platform limitation, then the IRQ affinity hint is set right after the allocation of IRQ vectors in ath12k_pci_msi_alloc(). This does no harm unless one of the functions requesting the IRQ fails and attempt to free the IRQ. This may end up with a warning from the IRQ core that is expecting the affinity hint to be cleared before freeing the IRQ: kernel/irq/manage.c: /* make sure affinity_hint is cleaned up */ if (WARN_ON_ONCE(desc->affinity_hint)) desc->affinity_hint = NULL; So to fix this issue, clear the IRQ affinity hint before calling ath12k_pci_free_irq() in the error path. The affinity will be cleared once again further down the error path due to code organization, but that does no harm. The Linux kernel CVE team has assigned CVE-2025-22128 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9 and fixed in 6.14.2 with commit 35b33ba76765ce9e72949d957f3cf1feafd2955c Issue introduced in 6.8 with commit a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9 and fixed in 6.15-rc1 with commit b43b1e2c52db77c872bd60d30cdcc72c47df70c7 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-2025-22128 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/wireless/ath/ath12k/pci.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/35b33ba76765ce9e72949d957f3cf1feafd2955c https://git.kernel.org/stable/c/b43b1e2c52db77c872bd60d30cdcc72c47df70c7