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 3C6F1305058 for ; Wed, 12 Nov 2025 10:25: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=1762943100; cv=none; b=an/KfGWtsgP60UUL5UTTz7qa0hP9srvQkFt3SGvVDQ2FarsBCyZgOqqzz6pdBIc3C1L/ND1lQzSK2db/g0CSb3Fa1h3wO7HDlhp9tsBB2REbKJhvOOJQgKiT5iJlpdlYX2EbqGdGuFps7qoH8eYjaii6aIXBHtYu4z1BnA/6hoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943100; c=relaxed/simple; bh=khhOLAoN6fWuCVIk7LYloLwhTugAMBbEWtqXnNsHJj4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NxKPISLURO555Ku/VKj4CbYugfUakUpNnFhz6iDZ3sB2uMKatn1rVrUT+aBRDdBwJur53E+AILVECfec1DASDOIdXV/KYmrzb6ZD+sAhvocNR22+jm3xN6flmH30fzhGDrquHhTQ0VoF6LUX8hOeUhKzlAHHLxIft+L4KxrZBcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1/D/iu/m; 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="1/D/iu/m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA128C16AAE; Wed, 12 Nov 2025 10:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943100; bh=khhOLAoN6fWuCVIk7LYloLwhTugAMBbEWtqXnNsHJj4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1/D/iu/m3FArrcgZNupr9KcCFvHnLM4zUCAKzYmmBdH4Z6EVFsXzgoNh1uZPR/saP pRANd1bDR/2R1bYQvnnWkV+H/VkBQEra5uTyJjZBDMX4EVTHp3MjdkNEN0YJYVNXiW V4++yyUw9QSL4Nlv9Tm+WXl5JuJQDqtxcVHYogyE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40140: net: usb: Remove disruptive netif_wake_queue in rtl8150_set_multicast Date: Wed, 12 Nov 2025 19:24:16 +0900 Message-ID: <2025111255-CVE-2025-40140-ae1a@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=3897; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S9Dj+KSlYOC5l5J/xUnsAGgihK7gdxikKY5dgDEPYqI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCdYVRX/MtDKSo6rDBFx8zx6PttETYpwqLTU563liT r7OljkdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJH6hwwLbkw9YrN01XHTmcfE zizus9N/x2WozzA/JdFi+gKmyo0LG++u+SvD3Bq6ok8WAA== 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: Remove disruptive netif_wake_queue in rtl8150_set_multicast syzbot reported WARNING in rtl8150_start_xmit/usb_submit_urb. This is the sequence of events that leads to the warning: rtl8150_start_xmit() { netif_stop_queue(); usb_submit_urb(dev->tx_urb); } rtl8150_set_multicast() { netif_stop_queue(); netif_wake_queue(); <-- wakes up TX queue before URB is done } rtl8150_start_xmit() { netif_stop_queue(); usb_submit_urb(dev->tx_urb); <-- double submission } rtl8150_set_multicast being the ndo_set_rx_mode callback should not be calling netif_stop_queue and notif_start_queue as these handle TX queue synchronization. The net core function dev_set_rx_mode handles the synchronization for rtl8150_set_multicast making it safe to remove these locks. The Linux kernel CVE team has assigned CVE-2025-40140 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.4.301 with commit cce3c0e21cdd15bcba5c35d3af1700186de8f187 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.246 with commit 1a08a37ac03d07a1608a1592791041cac979fbc3 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.195 with commit 54f8ef1a970a8376e5846ed90854decf7c00555d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.156 with commit 114e05344763a102a8844efd96ec06ba99293ccd Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.112 with commit 6394bade9daab8e318c165fe43bba012bf13cd8e Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.53 with commit 6053e47bbf212b93c051beb4261d7d5a409d0ce3 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.17.3 with commit 9d72df7f5eac946f853bf49c428c4e87a17d91da Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18-rc1 with commit 958baf5eaee394e5fd976979b0791a875f14a179 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-40140 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/rtl8150.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/cce3c0e21cdd15bcba5c35d3af1700186de8f187 https://git.kernel.org/stable/c/1a08a37ac03d07a1608a1592791041cac979fbc3 https://git.kernel.org/stable/c/54f8ef1a970a8376e5846ed90854decf7c00555d https://git.kernel.org/stable/c/114e05344763a102a8844efd96ec06ba99293ccd https://git.kernel.org/stable/c/6394bade9daab8e318c165fe43bba012bf13cd8e https://git.kernel.org/stable/c/6053e47bbf212b93c051beb4261d7d5a409d0ce3 https://git.kernel.org/stable/c/9d72df7f5eac946f853bf49c428c4e87a17d91da https://git.kernel.org/stable/c/958baf5eaee394e5fd976979b0791a875f14a179