# CVE-2025-40164: usbnet: Fix using smp\_processor\_id() in preemptible code warnings

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2025-11-12T10:26:23.482Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 6635e52bc4165793aefd686962d912d73d323afe; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 65d04291adf7c59338f87aab9c6fe0bfa9993e64; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< f45fffae5e2549bd0a4670cc52a15ad54c9f121e; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 17fbad93879e87a334062882b45fa727ba1b3dd7; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< d1944bab8e0c1511f0cbf364aa06547735bb0ddb; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 0134c7bff14bd50314a4f92b182850ddfc38e255; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 327cd4b68b4398b6c24f10eb2b2533ffbfc10185
- Anyone running Linux 4.7

## Description

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

usbnet: Fix using smp\_processor\_id() in preemptible code warnings

Syzbot reported the following warning:

BUG: using smp\_processor\_id() in preemptible \[00000000\] code: dhcpcd/2879
caller is usbnet\_skb\_return+0x74/0x490 drivers/net/usb/usbnet.c:331
CPU: 1 UID: 0 PID: 2879 Comm: dhcpcd Not tainted 6.15.0-rc4-syzkaller-00098-g615dca38c2ea \#0 PREEMPT(voluntary)
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x16c/0x1f0 lib/dump\_stack.c:120
 check\_preemption\_disabled+0xd0/0xe0 lib/smp\_processor\_id.c:49
 usbnet\_skb\_return+0x74/0x490 drivers/net/usb/usbnet.c:331
 usbnet\_resume\_rx+0x4b/0x170 drivers/net/usb/usbnet.c:708
 usbnet\_change\_mtu+0x1be/0x220 drivers/net/usb/usbnet.c:417
 \_\_dev\_set\_mtu net/core/dev.c:9443 \[inline\]
 netif\_set\_mtu\_ext+0x369/0x5c0 net/core/dev.c:9496
 netif\_set\_mtu+0xb0/0x160 net/core/dev.c:9520
 dev\_set\_mtu+0xae/0x170 net/core/dev\_api.c:247
 dev\_ifsioc+0xa31/0x18d0 net/core/dev\_ioctl.c:572
 dev\_ioctl+0x223/0x10e0 net/core/dev\_ioctl.c:821
 sock\_do\_ioctl+0x19d/0x280 net/socket.c:1204
 sock\_ioctl+0x42f/0x6a0 net/socket.c:1311
 vfs\_ioctl fs/ioctl.c:51 \[inline\]
 \_\_do\_sys\_ioctl fs/ioctl.c:906 \[inline\]
 \_\_se\_sys\_ioctl fs/ioctl.c:892 \[inline\]
 \_\_x64\_sys\_ioctl+0x190/0x200 fs/ioctl.c:892
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0xcd/0x260 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

For historical and portability reasons, the netif\_rx() is usually
run in the softirq or interrupt context, this commit therefore add
local\_bh\_disable/enable() protection in the usbnet\_resume\_rx().

## Affected and fixed versions

- Linux: \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 6635e52bc4165793aefd686962d912d73d323afe; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 65d04291adf7c59338f87aab9c6fe0bfa9993e64; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< f45fffae5e2549bd0a4670cc52a15ad54c9f121e; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 17fbad93879e87a334062882b45fa727ba1b3dd7; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< d1944bab8e0c1511f0cbf364aa06547735bb0ddb; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 0134c7bff14bd50314a4f92b182850ddfc38e255; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 327cd4b68b4398b6c24f10eb2b2533ffbfc10185 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 327cd4b68b4398b6c24f10eb2b2533ffbfc10185 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40164. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40164.md
Affected: Linux >= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, < 6635e52bc4165793aefd686962d912d73d323afe; >= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, < 65d04291adf7c59338f87aab9c6fe0bfa9993e64; >= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, < f45fffae5e2549bd0a4670cc52a15ad54c9f121e; >= 43daa96b166c3cf5ff30dfa…
Fixed in: Linux 6635e52bc4165793aefd686962d912d73d323afe, Linux 65d04291adf7c59338f87aab9c6fe0bfa9993e64, Linux 17fbad93879e87a334062882b45fa727ba1b3dd7, Linux 0134c7bff14bd50314a4f92b182850ddfc38e255, Linux 327cd4b68b4398b6c24f10eb2b2533ffbfc10185

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40164 being exploited?

There is no confirmed exploitation: CVE-2025-40164 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40164?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40164?

Linux \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 6635e52bc4165793aefd686962d912d73d323afe; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 65d04291adf7c59338f87aab9c6fe0bfa9993e64; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< f45fffae5e2549bd0a4670cc52a15ad54c9f121e; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 17fbad93879e87a334062882b45fa727ba1b3dd7; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< d1944bab8e0c1511f0cbf364aa06547735bb0ddb; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 0134c7bff14bd50314a4f92b182850ddfc38e255; \>= 43daa96b166c3cf5ff30dfac0c5efa2620e4beab, \< 327cd4b68b4398b6c24f10eb2b2533ffbfc10185; Linux 4.7.

### Is there a fix for CVE-2025-40164?

Yes. Fixed in Linux 6635e52bc4165793aefd686962d912d73d323afe, Linux 65d04291adf7c59338f87aab9c6fe0bfa9993e64, Linux 17fbad93879e87a334062882b45fa727ba1b3dd7, Linux 0134c7bff14bd50314a4f92b182850ddfc38e255, Linux 327cd4b68b4398b6c24f10eb2b2533ffbfc10185. Upgrade Linux to 327cd4b68b4398b6c24f10eb2b2533ffbfc10185 or later.

### How do I check if I'm affected by CVE-2025-40164?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/65d04291adf7c59338f87aab9c6fe0bfa9993e64>
- patch: <https://git.kernel.org/stable/c/f45fffae5e2549bd0a4670cc52a15ad54c9f121e>
- patch: <https://git.kernel.org/stable/c/17fbad93879e87a334062882b45fa727ba1b3dd7>
- patch: <https://git.kernel.org/stable/c/d1944bab8e0c1511f0cbf364aa06547735bb0ddb>
- patch: <https://git.kernel.org/stable/c/0134c7bff14bd50314a4f92b182850ddfc38e255>
- patch: <https://git.kernel.org/stable/c/327cd4b68b4398b6c24f10eb2b2533ffbfc10185>
- other: <https://git.kernel.org/stable/c/6635e52bc4165793aefd686962d912d73d323afe>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40164>

HTML: <https://flawdb.com/CVE-2025-40164> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40164>
