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 2CD7E35CBA9 for ; Wed, 12 Nov 2025 22:01:00 +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=1762984861; cv=none; b=uVJbciXwQfv5949mzdjpqFwLgOCE/0YekIaXFyEYWmiw2E4Vj//9uz3DUlEkPJXBPPuqo9Fy8+nUiF/eXqT0YMnr58VKKWFZla3ljbOcFT+zyKkYdctlcpMMCEQdxV5ixYR1flr+ThalRDezDF8gJGaam8Kht6woUqhB0uxGs1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762984861; c=relaxed/simple; bh=uCoMKft1e86o9F7XnROY/RbQuunPqYHDfyJ9bqLvRKY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cCMYrH3hHOX4YLizCVDKq8B8/sIslkiEzzsYbbFBnYY/6Y3MsalDj78LwTzKzTuCvWN/q+zT2x+66s5DZFl/EQ4xIS7zsIIEHIoHg47Bp+MbX0R9YyEBLh0KTO0YJRhgy5BBc0Qgse1HFyL2TRpykTmOkhXMx1D9Qu6ULnN5yko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pddtJtQD; 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="pddtJtQD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EB20C4CEF1; Wed, 12 Nov 2025 22:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762984860; bh=uCoMKft1e86o9F7XnROY/RbQuunPqYHDfyJ9bqLvRKY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pddtJtQDp7NNCerg8wRrmmM3nZWJz7RMcazN5rZHd89yctrK5vncO26fL9DkESXlY wgxdN+Bag0Sof1H+3f+/rXWeSLw/ck2HY6ZNZktgZ7whszZ4QBnS9LAZKxPGdANfJE NT4z9Y3YrdfPJbJwNpbZZt8RexqC6rAW89X75wPs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40189: net: usb: lan78xx: Fix lost EEPROM read timeout error(-ETIMEDOUT) in lan78xx_read_raw_eeprom Date: Wed, 12 Nov 2025 17:00:52 -0500 Message-ID: <2025111244-CVE-2025-40189-c4ca@gregkh> X-Mailer: git-send-email 2.51.2 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=3522; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qzOO99Vb4ICfXCgrrGkU59Ci+uU6+6+GnVaoCU3W2zQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmizD1hh0/4XNQ6NCtGL3K6yZ1ZMj2vH8yKa1P4JhSaL j79wv6PHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRyWkM89NFzolmnQs+5TjL 6qRghqdIy1GmNwwLOvartru99HS+3r6wmbPxj5BGttJUAA== 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: net: usb: lan78xx: Fix lost EEPROM read timeout error(-ETIMEDOUT) in lan78xx_read_raw_eeprom Syzbot reported read of uninitialized variable BUG with following call stack. lan78xx 8-1:1.0 (unnamed net_device) (uninitialized): EEPROM read operation timeout ===================================================== BUG: KMSAN: uninit-value in lan78xx_read_eeprom drivers/net/usb/lan78xx.c:1095 [inline] BUG: KMSAN: uninit-value in lan78xx_init_mac_address drivers/net/usb/lan78xx.c:1937 [inline] BUG: KMSAN: uninit-value in lan78xx_reset+0x999/0x2cd0 drivers/net/usb/lan78xx.c:3241 lan78xx_read_eeprom drivers/net/usb/lan78xx.c:1095 [inline] lan78xx_init_mac_address drivers/net/usb/lan78xx.c:1937 [inline] lan78xx_reset+0x999/0x2cd0 drivers/net/usb/lan78xx.c:3241 lan78xx_bind+0x711/0x1690 drivers/net/usb/lan78xx.c:3766 lan78xx_probe+0x225c/0x3310 drivers/net/usb/lan78xx.c:4707 Local variable sig.i.i created at: lan78xx_read_eeprom drivers/net/usb/lan78xx.c:1092 [inline] lan78xx_init_mac_address drivers/net/usb/lan78xx.c:1937 [inline] lan78xx_reset+0x77e/0x2cd0 drivers/net/usb/lan78xx.c:3241 lan78xx_bind+0x711/0x1690 drivers/net/usb/lan78xx.c:3766 The function lan78xx_read_raw_eeprom failed to properly propagate EEPROM read timeout errors (-ETIMEDOUT). In the fallthrough path, it first attempted to restore the pin configuration for LED outputs and then returned only the status of that restore operation, discarding the original timeout error. As a result, callers could mistakenly treat the data buffer as valid even though the EEPROM read had actually timed out with no data or partial data. To fix this, handle errors in restoring the LED pin configuration separately. If the restore succeeds, return any prior EEPROM timeout error correctly to the caller. The Linux kernel CVE team has assigned CVE-2025-40189 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4 and fixed in 6.17.4 with commit a72a7c4f675080a324d4c2167bd2314d968279f1 Issue introduced in 6.14 with commit 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4 and fixed in 6.18-rc1 with commit 49bdb63ff64469a6de8ea901aef123c75be9bbe7 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-40189 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/usb/lan78xx.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/a72a7c4f675080a324d4c2167bd2314d968279f1 https://git.kernel.org/stable/c/49bdb63ff64469a6de8ea901aef123c75be9bbe7