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 AC999273D66 for ; Wed, 1 Oct 2025 07:43:58 +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=1759304638; cv=none; b=fZOxo/MqOOM1Za/qZdJIVHvWoXLJBt2YpZnFFTPy1JHZTw7OTZyeaODIbHLDnGmCbWmUxMkUh9kQ4nY6JGDa+WOOFxmELTKsbkCj/d6Oxy14cdYorImfiuhCT4UkBoxcv2XTtnl9ZyKJJW7DRgx3SD4tZyXGODfHx7x+Aj1krHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759304638; c=relaxed/simple; bh=7c5I1b8WQuLbvkpMFXEJ81AoTPllnB5RMxyJhk/xCTk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DIsaYXyrRQOcnhOEQGR1jQDUKti/It6wBa/YwS+QR6Uln3ws9Bb+xhG6QM1sVcUQHDrd+gBoR6TGOvjTjOXC7dfbYc952BKtTBZTAAeoONA9UsP0ZdiVSEM3u94UmwVwK6bpxPNJ9jiDA9YtfUKVqPIRwv2lJ50oXsY5kCPy+HQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AgtDEg/E; 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="AgtDEg/E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE221C4CEF4; Wed, 1 Oct 2025 07:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759304638; bh=7c5I1b8WQuLbvkpMFXEJ81AoTPllnB5RMxyJhk/xCTk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AgtDEg/ErrayuAWDl1Vmf3x0JFNt4gA4xKo7A/KD4QKvYnqCGK0cfmGShCO25UgOJ S3nsp35l/ZYfs3Pws7ihVRnWtQrBck0VgOuxzjX2Yo7ScySe0TAXmmUirrM0VQ5Jvw OAgY1gBzJTysPBZ5/j3X89CtPMeIx18z5wBwo+G8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39898: e1000e: fix heap overflow in e1000_set_eeprom Date: Wed, 1 Oct 2025 09:43:22 +0200 Message-ID: <2025100116-CVE-2025-39898-d844@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=3423; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kr0D0DPoS8ZVLMTH57Tmh2QZHsnhJ47Kh9uoqwGmjbo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3bk9hVfy4ZJLBwQuen4ptrk/hcl/Ct+PdLeX3s16tU royeU+FTkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMpP8Ew4JZy3d8KlU/NHUe F5PQI0Eh2beiEyoYFuyOUPxbU8pWKXJtk/3nlDm7bv1e7QkA 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: e1000e: fix heap overflow in e1000_set_eeprom Fix a possible heap overflow in e1000_set_eeprom function by adding input validation for the requested length of the change in the EEPROM. In addition, change the variable type from int to size_t for better code practices and rearrange declarations to RCT. The Linux kernel CVE team has assigned CVE-2025-39898 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 5.4.299 with commit ea832ec0583e2398ea0c5ed8d902c923e16f53c4 Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 5.10.243 with commit ce8829d3d44b8622741bccca9f4408bc3da30b2b Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 5.15.192 with commit 99a8772611e2d7ec318be7f0f072037914a1f509 Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 6.1.151 with commit b48adcacc34fbbc49046a7ee8a97839bef369c85 Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 6.6.105 with commit 50a84d5c814039ad2abe2748aec3e89324a548a7 Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 6.12.46 with commit b370f7b1f470a8d5485cc1e40e8ff663bb55d712 Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 6.16.6 with commit 0aec3211283482cfcdd606d1345e1f9acbcabd31 Issue introduced in 2.6.24 with commit bc7f75fa97884d41efbfde1397b621fefb2550b4 and fixed in 6.17 with commit 90fb7db49c6dbac961c6b8ebfd741141ffbc8545 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-39898 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/e1000e/ethtool.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/ea832ec0583e2398ea0c5ed8d902c923e16f53c4 https://git.kernel.org/stable/c/ce8829d3d44b8622741bccca9f4408bc3da30b2b https://git.kernel.org/stable/c/99a8772611e2d7ec318be7f0f072037914a1f509 https://git.kernel.org/stable/c/b48adcacc34fbbc49046a7ee8a97839bef369c85 https://git.kernel.org/stable/c/50a84d5c814039ad2abe2748aec3e89324a548a7 https://git.kernel.org/stable/c/b370f7b1f470a8d5485cc1e40e8ff663bb55d712 https://git.kernel.org/stable/c/0aec3211283482cfcdd606d1345e1f9acbcabd31 https://git.kernel.org/stable/c/90fb7db49c6dbac961c6b8ebfd741141ffbc8545