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 3A0D41ACECE for ; Sun, 19 Jan 2025 10:19:46 +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=1737281986; cv=none; b=fIUmeKFRMqZkHyV9TKuVB5Z8P9q+GYz+lsDKTjC/w4vBSCZDvfWCQBFxOZC3e62uoTY6Y3ZgQ3HV8pIOe0VxUFqYKhOlSqokebnmwHBnKVX69neS5uheqE16qwSLL9nsiXz3kbv24DGIskf6Ty/K7GKoO8bZbG5mJMY+IRAx1Ow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737281986; c=relaxed/simple; bh=iyRhGwNcpG1tpsHCoJ+530BQYWtPXl+YpaGYgrkMh+o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=m3I7nPtNCWOLT4wXhQfJuvljmKMd5OftN8CGLxt8XONiLdGkaAzl9K9sH+TK8KVPnx1jVJg7Wly9sxE4vteXwdNjwzQsarWJhqSlgPSWgKvgey2LZtm+hnDtUaxvs/l3/AaAn/NudS+0rXPfEe+FQ5P7xkoQ9YAjWl+glfcohkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qmKvljZ1; 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="qmKvljZ1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8779C4CED6; Sun, 19 Jan 2025 10:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737281986; bh=iyRhGwNcpG1tpsHCoJ+530BQYWtPXl+YpaGYgrkMh+o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qmKvljZ1gz/CqxlxnwgYZbKt6YjWhsA0ToulfC5SkbXEZR6Xmhk7Wi5C90byuGJ20 BEjWGAXaGXCEuD9Akn8bQZs2VLX9UA8uPs1RrpTpqzz72faWmm52DBM64M8vIMSJFd nlfn2w7XdFBNgx5g5kQj1XrUAO4SIdZIMpTPV/XI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21651: net: hns3: don't auto enable misc vector Date: Sun, 19 Jan 2025 11:18:00 +0100 Message-ID: <2025011946-CVE-2025-21651-fbe8@gregkh> X-Mailer: git-send-email 2.48.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=2845; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iyRhGwNcpG1tpsHCoJ+530BQYWtPXl+YpaGYgrkMh+o=; b=kA0DAAIRMUfUDdst+ykByyZiAGeM0UqgoZWBDfAsd3LrI1+/WOT28A8raD43UQPURAG/P5Nj/ 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmeM0UoACgkQMUfUDdst+ylBCwCfYudb oJQBrytBn4U+XAXV3JNvWPcAnAoYk1xjKWONLgAgWilLQAA/AwOc 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: net: hns3: don't auto enable misc vector Currently, there is a time window between misc irq enabled and service task inited. If an interrupte is reported at this time, it will cause warning like below: [ 16.324639] Call trace: [ 16.324641] __queue_delayed_work+0xb8/0xe0 [ 16.324643] mod_delayed_work_on+0x78/0xd0 [ 16.324655] hclge_errhand_task_schedule+0x58/0x90 [hclge] [ 16.324662] hclge_misc_irq_handle+0x168/0x240 [hclge] [ 16.324666] __handle_irq_event_percpu+0x64/0x1e0 [ 16.324667] handle_irq_event+0x80/0x170 [ 16.324670] handle_fasteoi_edge_irq+0x110/0x2bc [ 16.324671] __handle_domain_irq+0x84/0xfc [ 16.324673] gic_handle_irq+0x88/0x2c0 [ 16.324674] el1_irq+0xb8/0x140 [ 16.324677] arch_cpu_idle+0x18/0x40 [ 16.324679] default_idle_call+0x5c/0x1bc [ 16.324682] cpuidle_idle_call+0x18c/0x1c4 [ 16.324684] do_idle+0x174/0x17c [ 16.324685] cpu_startup_entry+0x30/0x6c [ 16.324687] secondary_start_kernel+0x1a4/0x280 [ 16.324688] ---[ end trace 6aa0bff672a964aa ]--- So don't auto enable misc vector when request irq.. The Linux kernel CVE team has assigned CVE-2025-21651 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 7be1b9f3e99f6213d053d16ed2438126931d8351 and fixed in 6.12.10 with commit bcf430d3bb5525fc89a92a0c451c725ba1aa4306 Issue introduced in 5.4 with commit 7be1b9f3e99f6213d053d16ed2438126931d8351 and fixed in 6.13-rc7 with commit 98b1e3b27734139c76295754b6c317aa4df6d32e 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-21651 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/hisilicon/hns3/hns3pf/hclge_main.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/bcf430d3bb5525fc89a92a0c451c725ba1aa4306 https://git.kernel.org/stable/c/98b1e3b27734139c76295754b6c317aa4df6d32e