CVE-2026-139336: usbnet: fix smp_processor_id() use in preemptible context
In the Linux kernel, the following vulnerability has been resolved:
usbnet: fix smpprocessorid() use in preemptible context
txcomplete() calls thiscpuptr() before disabling preemption, which triggers a BUG when running with CONFIGDEBUGPREEMPT:
BUG: using smpprocessorid() in preemptible code in txcomplete
Fix by using getcpuptr()/putcpuptr() which disable preemption and return the per-CPU pointer atomically. The usbnetskbreturn() hunk is a hardening change: that path runs in softirq context so no warning fires there, but the same fix is applied for consistency.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In tx_complete(), use get_cpu_ptr()/put_cpu_ptr() to disable preemption while accessing the per-CPU pointer; apply the same change in usbnet_skb_return() for consistency.