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 81D0F169AE6 for ; Thu, 27 Feb 2025 02:09:08 +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=1740622148; cv=none; b=S28tgZ2Hqs+TDx9t7lyEGQJQKSVukXKueysHe12Yuy6GXhGD/agC7hWJvGDV+IPSbEcKSrFAYsL4YN4oRrUVO+tL6HBHO2oDLuzkJxLjHFPiEo8Wfj5nriBqnB25BYRCbgIFk8xHIV2vwZ6zaoi5L9okpTluqAysuNVtdvL19Hk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622148; c=relaxed/simple; bh=6tj1tU9StMI5H4Mzd/ICMKDIfxvYN5s8s+HKyf4Zus8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oERSKWZ+QiwASlm9x7kERLAAvPNcgZx94NY2Y7evGtxfN3bYSrE6NoyalI+b2UmEfJZprh1AzIYeeK5nDd3Ek4OnDm2sgC8stbNFwIf9YHBBpk1j/ep4U60IcUU52IRyxScRuWTkHyibYWf6Zd2RyoBv5YuM3YjliAqOcaZdyJw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ik9n1TwO; 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="Ik9n1TwO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E477C4CED6; Thu, 27 Feb 2025 02:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622148; bh=6tj1tU9StMI5H4Mzd/ICMKDIfxvYN5s8s+HKyf4Zus8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ik9n1TwODbS8hUrw9ui+zJL51MWANYQpQE+VDM5FlamN2bvRKsFE3O2557MCFwslY XLCMLKtHNr83IOJLQRUR+49NrZ4P9YCottsWyjK0Wy9t9o8k+KgH5+yGpTGMNVGIZJ 7gbH3DSc3xCE78LDZruCcNk3oy49ZkrRSrykC4c0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21715: net: davicom: fix UAF in dm9000_drv_remove Date: Wed, 26 Feb 2025 18:06:10 -0800 Message-ID: <2025022645-CVE-2025-21715-2837@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=3377; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6tj1tU9StMI5H4Mzd/ICMKDIfxvYN5s8s+HKyf4Zus8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T1StXeC1bO3ywBqjA9J1xkzM9xS+XxA2W3ft05W6i /v3lXNqdMSwMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEwqMZZrN0Rh9sXvO/kOV7 4udrExoEj8S0qDNMT/tuVHn41ZQ93neZfdYu9bLzfhkHAA== 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: davicom: fix UAF in dm9000_drv_remove dm is netdev private data and it cannot be used after free_netdev() call. Using dm after free_netdev() can cause UAF bug. Fix it by moving free_netdev() at the end of the function. This is similar to the issue fixed in commit ad297cd2db89 ("net: qcom/emac: fix UAF in emac_remove"). This bug is detected by our static analysis tool. The Linux kernel CVE team has assigned CVE-2025-21715 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b and fixed in 6.1.129 with commit c94ab07edc2843e2f3d46dbd82e5c681503aaadf Issue introduced in 5.12 with commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b and fixed in 6.6.76 with commit c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca Issue introduced in 5.12 with commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b and fixed in 6.12.13 with commit 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7 Issue introduced in 5.12 with commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b and fixed in 6.13.2 with commit 2013c95df6752d9c88221d0f0f37b6f197969390 Issue introduced in 5.12 with commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b and fixed in 6.14-rc1 with commit 19e65c45a1507a1a2926649d2db3583ed9d55fd9 Issue introduced in 4.4.262 with commit d182994b2b6e23778b146a230efac8f1d77a3445 Issue introduced in 4.9.262 with commit 427b3fc3d5244fef9c1f910a9c699f2690642f83 Issue introduced in 4.14.226 with commit 9c49181c201d434186ca6b1a7b52e29f4169f6f8 Issue introduced in 4.19.181 with commit 9808f032c4d971cbf2b01411a0a2a8ee0040efe3 Issue introduced in 5.4.106 with commit d28e783c20033b90a64d4e1307bafb56085d8184 Issue introduced in 5.10.24 with commit 4fd0654b8f2129b68203974ddee15f804ec011c2 Issue introduced in 5.11.7 with commit a1f308089257616cdb91b4334c5eaa81ae17e387 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-21715 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/davicom/dm9000.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/c94ab07edc2843e2f3d46dbd82e5c681503aaadf https://git.kernel.org/stable/c/c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca https://git.kernel.org/stable/c/5a54367a7c2378c65aaa4d3cfd952f26adef7aa7 https://git.kernel.org/stable/c/2013c95df6752d9c88221d0f0f37b6f197969390 https://git.kernel.org/stable/c/19e65c45a1507a1a2926649d2db3583ed9d55fd9