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 8E37D23BD1F for ; Tue, 16 Sep 2025 13:01:39 +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=1758027699; cv=none; b=fpAlg93CYfxb0tQ+/GAqgacAaShqA/xKFCrKW8CNoMoKxF57tZGSQkOE0l8VQ7nHoCVNVNJeJFhl3cuP90iloFIpKfiN/ExTKZR+gOkA35doooqh4i/UGH+f2oL9Zxvgr+SB2chKkJP9OFDKxfDuYYTy1zKFU7sGFsS/Ls+udWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758027699; c=relaxed/simple; bh=GYsKU6grgKplFmxgHqwbwtlMRBhD/TMjmSHU2MQeNXA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cNIBbqkTIwmKa7WO2GrZ9RcKHgT3n93QJftnKF0Q4HkkIfHtoB7Ms1KtT+LvlN/xV3zRmPN9uY3P9IIWbF5KHjqBR3f8Py/Dualc8Y5Uv/JkhZXeuo0gBIr3ZySk1UEF8Bsi9JP60NbHZs1hQNm3roccFI92eHvZWX7KWIho7aM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WXKIoYPk; 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="WXKIoYPk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EB30C4CEEB; Tue, 16 Sep 2025 13:01:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758027699; bh=GYsKU6grgKplFmxgHqwbwtlMRBhD/TMjmSHU2MQeNXA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WXKIoYPkBhOZOdTIFGULmINpW/uhOv8pwOHoLcJxsc74V8gOR/WvZWvg6TzeMgJGL MZckHtWIu+mB/mCPhErUpAQVBI0Yqu9XD2eckHyw2kagd1wwSQqD4bK4Cjyayg42+5 YtEzCKb24Sz/DnkyanPY2c93l100ttyOPFZNGxHg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39814: ice: fix NULL pointer dereference in ice_unplug_aux_dev() on reset Date: Tue, 16 Sep 2025 15:00:20 +0200 Message-ID: <2025091614-CVE-2025-39814-1765@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=2743; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BljZsk5E6P59TQaSCCzzvED27895A8POUOkO3G2EDqY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn4+MiVtWJiVy9zm5VvrvwkLDLzGzhvz8ZZu/2U93ZL PbA63BjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk7gTDPKPwQP8H+uZlvtxH +ZnaLrzfW/CkkmGePWv0oi8Xd/5tzJ3/erdVp3AWq+RCAA== 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: ice: fix NULL pointer dereference in ice_unplug_aux_dev() on reset Issuing a reset when the driver is loaded without RDMA support, will results in a crash as it attempts to remove RDMA's non-existent auxbus device: echo 1 > /sys/class/net//device/reset BUG: kernel NULL pointer dereference, address: 0000000000000008 ... RIP: 0010:ice_unplug_aux_dev+0x29/0x70 [ice] ... Call Trace: ice_prepare_for_reset+0x77/0x260 [ice] pci_dev_save_and_disable+0x2c/0x70 pci_reset_function+0x88/0x130 reset_store+0x5a/0xa0 kernfs_fop_write_iter+0x15e/0x210 vfs_write+0x273/0x520 ksys_write+0x6b/0xe0 do_syscall_64+0x79/0x3b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e ice_unplug_aux_dev() checks pf->cdev_info->adev for NULL pointer, but pf->cdev_info will also be NULL, leading to the deref in the trace above. Introduce a flag to be set when the creation of the auxbus device is successful, to avoid multiple NULL pointer checks in ice_unplug_aux_dev(). The Linux kernel CVE team has assigned CVE-2025-39814 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit c24a65b6a27c78d8540409800886b6622ea86ebf and fixed in 6.16.5 with commit db783756a7d7cfaea039411971d0dc0a374e85cb Issue introduced in 6.16 with commit c24a65b6a27c78d8540409800886b6622ea86ebf and fixed in 6.17-rc4 with commit 60dfe2434eed13082f26eb7409665dfafb38fa51 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-39814 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/ice/ice.h drivers/net/ethernet/intel/ice/ice_idc.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/db783756a7d7cfaea039411971d0dc0a374e85cb https://git.kernel.org/stable/c/60dfe2434eed13082f26eb7409665dfafb38fa51