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 31206274B50 for ; Wed, 1 Oct 2025 07:47:53 +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=1759304874; cv=none; b=NKgelMFTlCv8vrqAaRiSo7weIlbaH1fbmioiLIY1QmXlSpZeROSRajTLrz78b24XqpPqjcW1r7Koz/YgtS5zy/nlzUXNEoynvxEqDklowD5jiKMdcRJgxPOiWZ3DL11eCu91mCRcN2Nu/bn0AxAZjbI+0Ms/lGuieWzbCHsLCBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759304874; c=relaxed/simple; bh=tF6akjgSMhwjyur64Tx7ehp5UpoyxxEMVvuGtgdlkTQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pN4m+W/QVu8WkKPLpxfjAHborGdQzGIp2B1yIT5j/YwfkjHbH2xqeHq9hmbeL4slNRIMw8mwFl1aKin3BWz/Tahs305ZFJFrJ19BGdA0SjQKjfpNAqG744Q1+gsjlJoTFHrVeJICuAGhBBHEmlIFn0CI74mkK4zEOJl8e6Unu2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=omixjSwT; 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="omixjSwT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 532DDC4CEF7; Wed, 1 Oct 2025 07:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759304873; bh=tF6akjgSMhwjyur64Tx7ehp5UpoyxxEMVvuGtgdlkTQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=omixjSwT6yNCykB+mMH/aJ9UjbZ6tZGsCxMgx46Mcakq72IraoO9/b8cf2TTxsfCF lxJOibmDjbhreKonjYAdvOWOR9tT0SH0/3Ue5Td4obIh8mz2EP8truU2UwCh7EXf/7 +364VcZhdV0+M78jtCQoaWFlvRQA67arfUKg1+88= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39911: i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path Date: Wed, 1 Oct 2025 09:47:16 +0200 Message-ID: <2025100110-CVE-2025-39911-5646@gregkh> X-Mailer: git-send-email 2.51.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=3886; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zCaLI5aGfkcUYT+BHPa0KT3lx6GQd6gJM34VRGBTSLo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl37tTxP3f59dZjv6zSBZMXjxgNCpb9rvBMmb3+9e3Yf XeC2t5t64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJXFVgmCstX3Plw55fT6Yc rpPfut0lY9Opw98Z5jv0bY3tZ2rOfWJvuZM70e/CtT2MNQA= 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: i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path If request_irq() in i40e_vsi_request_irq_msix() fails in an iteration later than the first, the error path wants to free the IRQs requested so far. However, it uses the wrong dev_id argument for free_irq(), so it does not free the IRQs correctly and instead triggers the warning: Trying to free already-free IRQ 173 WARNING: CPU: 25 PID: 1091 at kernel/irq/manage.c:1829 __free_irq+0x192/0x2c0 Modules linked in: i40e(+) [...] CPU: 25 UID: 0 PID: 1091 Comm: NetworkManager Not tainted 6.17.0-rc1+ #1 PREEMPT(lazy) Hardware name: [...] RIP: 0010:__free_irq+0x192/0x2c0 [...] Call Trace: free_irq+0x32/0x70 i40e_vsi_request_irq_msix.cold+0x63/0x8b [i40e] i40e_vsi_request_irq+0x79/0x80 [i40e] i40e_vsi_open+0x21f/0x2f0 [i40e] i40e_open+0x63/0x130 [i40e] __dev_open+0xfc/0x210 __dev_change_flags+0x1fc/0x240 netif_change_flags+0x27/0x70 do_setlink.isra.0+0x341/0xc70 rtnl_newlink+0x468/0x860 rtnetlink_rcv_msg+0x375/0x450 netlink_rcv_skb+0x5c/0x110 netlink_unicast+0x288/0x3c0 netlink_sendmsg+0x20d/0x430 ____sys_sendmsg+0x3a2/0x3d0 ___sys_sendmsg+0x99/0xe0 __sys_sendmsg+0x8a/0xf0 do_syscall_64+0x82/0x2c0 entry_SYSCALL_64_after_hwframe+0x76/0x7e [...] ---[ end trace 0000000000000000 ]--- Use the same dev_id for free_irq() as for request_irq(). I tested this with inserting code to fail intentionally. The Linux kernel CVE team has assigned CVE-2025-39911 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit 493fb30011b3ab5173cef96f1d1ce126da051792 and fixed in 6.1.153 with commit b905b2acb3a0bbb08ad9be9984d8cdabdf827315 Issue introduced in 3.13 with commit 493fb30011b3ab5173cef96f1d1ce126da051792 and fixed in 6.6.107 with commit 23431998a37764c464737b855c71a81d50992e98 Issue introduced in 3.13 with commit 493fb30011b3ab5173cef96f1d1ce126da051792 and fixed in 6.12.48 with commit a30afd6617c30aaa338d1dbcb1e34e7a1890085c Issue introduced in 3.13 with commit 493fb30011b3ab5173cef96f1d1ce126da051792 and fixed in 6.16.8 with commit c62580674ce5feb1be4f90b5873ff3ce50e0a1db Issue introduced in 3.13 with commit 493fb30011b3ab5173cef96f1d1ce126da051792 and fixed in 6.17 with commit 915470e1b44e71d1dd07ee067276f003c3521ee3 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-39911 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/i40e/i40e_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/b905b2acb3a0bbb08ad9be9984d8cdabdf827315 https://git.kernel.org/stable/c/23431998a37764c464737b855c71a81d50992e98 https://git.kernel.org/stable/c/a30afd6617c30aaa338d1dbcb1e34e7a1890085c https://git.kernel.org/stable/c/c62580674ce5feb1be4f90b5873ff3ce50e0a1db https://git.kernel.org/stable/c/915470e1b44e71d1dd07ee067276f003c3521ee3