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 2BB9E304BC7 for ; Wed, 12 Nov 2025 10:24:55 +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=1762943095; cv=none; b=oMBAtsB7q4HYzZvE1KdodAO5plQ3aIbfkmKkNAmTY9TuuKTfSdp2bojctt8MFTcvEh8SZ9iNwr3ot/YMfryyY1C6x2Ys20ELqDRDvFVOOtcAhuXftvpT/cqvvTWMFULFhp4ujWQCToc+ZJAgaOD2qWmRgvdkuBRI+d0iZMcnnDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943095; c=relaxed/simple; bh=/cNp9CeeZpHU57XNabWMwNUIF2WxubrzUq9XoEn/FXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BlG0PQXUy62OB9i2mJXqHlv7bQplpysRLvA0/Y89YRRDEKVjr2dMZJScyimodNPJb6xnWESq1FI+ypyinqa2Zr2u1x0UatC858KfJj/jFeXfOSddj9TnFfz3hnC9rWzRtk8hwfwLw7s8A9Nk0V0qXUTTo6fRs+yJUg5Je2y/Dwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kBiNyN8H; 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="kBiNyN8H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D673FC19424; Wed, 12 Nov 2025 10:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943095; bh=/cNp9CeeZpHU57XNabWMwNUIF2WxubrzUq9XoEn/FXw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kBiNyN8HnUNjDdsyyt9WFL2Sk5hx5twxOuJrPxBbWMKDNV43HgEml2SmYLULfMwGu EQADlyIQ67Ex86lV09LcoSb4qqceZfnY62ZQj1EfJQILqbByWhuuDzloPIMvZzAJGq kQv+DwXj0RZXulqKcH86U3V5yTz3wTDf+MXoUaSI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40136: crypto: hisilicon/qm - request reserved interrupt for virtual function Date: Wed, 12 Nov 2025 19:24:12 +0900 Message-ID: <2025111255-CVE-2025-40136-9c55@gregkh> X-Mailer: git-send-email 2.51.2 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=2489; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LmDuLAl8G3cwayO2QRu5p47vAeixoIdd5SxNpMoGNZA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCdb98y6XOphujDi0W2Xh3YAF94pue74Te2P91Xpr3 ZLEXau1O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAic28yzGZTdYqfNJXJfkbu uXJhfjnGbw7PuxkWrJ7NfGJa8u4pvJ27192py9AT0vDaDAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: crypto: hisilicon/qm - request reserved interrupt for virtual function The device interrupt vector 3 is an error interrupt for physical function and a reserved interrupt for virtual function. However, the driver has not registered the reserved interrupt for virtual function. When allocating interrupts, the number of interrupts is allocated based on powers of two, which includes this interrupt. When the system enables GICv4 and the virtual function passthrough to the virtual machine, releasing the interrupt in the driver triggers a warning. The WARNING report is: WARNING: CPU: 62 PID: 14889 at arch/arm64/kvm/vgic/vgic-its.c:852 its_free_ite+0x94/0xb4 Therefore, register a reserved interrupt for VF and set the IRQF_NO_AUTOEN flag to avoid that warning. The Linux kernel CVE team has assigned CVE-2025-40136 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 3536cc55cadaf2a03241915f9cfdaf6cd073e4fe and fixed in 6.17.3 with commit 854da2b0df1654d63963d587b12fec6068d89643 Issue introduced in 6.1 with commit 3536cc55cadaf2a03241915f9cfdaf6cd073e4fe and fixed in 6.18-rc1 with commit 9228facb308157ac0bdd264b873187896f7a9c7a 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-40136 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/crypto/hisilicon/qm.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/854da2b0df1654d63963d587b12fec6068d89643 https://git.kernel.org/stable/c/9228facb308157ac0bdd264b873187896f7a9c7a