CVE-2025-40140

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40140
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40140.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40140
Downstream
Published
2025-11-12T10:23:24.586Z
Modified
2025-11-28T02:34:55.535156Z
Summary
net: usb: Remove disruptive netif_wake_queue in rtl8150_set_multicast
Details

In the Linux kernel, the following vulnerability has been resolved:

net: usb: Remove disruptive netifwakequeue in rtl8150setmulticast

syzbot reported WARNING in rtl8150startxmit/usbsubmiturb. This is the sequence of events that leads to the warning:

rtl8150startxmit() { netifstopqueue(); usbsubmiturb(dev->tx_urb); }

rtl8150setmulticast() { netifstopqueue(); netifwakequeue(); <-- wakes up TX queue before URB is done }

rtl8150startxmit() { netifstopqueue(); usbsubmiturb(dev->tx_urb); <-- double submission }

rtl8150setmulticast being the ndosetrxmode callback should not be calling netifstopqueue and notifstart_queue as these handle TX queue synchronization.

The net core function devsetrxmode handles the synchronization for rtl8150set_multicast making it safe to remove these locks.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40140.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
cce3c0e21cdd15bcba5c35d3af1700186de8f187
Fixed
1a08a37ac03d07a1608a1592791041cac979fbc3
Fixed
54f8ef1a970a8376e5846ed90854decf7c00555d
Fixed
114e05344763a102a8844efd96ec06ba99293ccd
Fixed
6394bade9daab8e318c165fe43bba012bf13cd8e
Fixed
6053e47bbf212b93c051beb4261d7d5a409d0ce3
Fixed
9d72df7f5eac946f853bf49c428c4e87a17d91da
Fixed
958baf5eaee394e5fd976979b0791a875f14a179

Database specific

source

"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40140.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.12
Fixed
5.4.301
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.246
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.156
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.112
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.3

Database specific

source

"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40140.json"