CVE-2026-139336

usbnet: fix smp_processor_id() use in preemptible context

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

usbnet: fix smp_processor_id() use in preemptible context

tx_complete() calls this_cpu_ptr() before disabling preemption, which
triggers a BUG when running with CONFIG_DEBUG_PREEMPT:

BUG: using smp_processor_id() in preemptible code in tx_complete

Fix by using get_cpu_ptr()/put_cpu_ptr() which disable preemption and
return the per-CPU pointer atomically. The usbnet_skb_return() hunk
is a hardening change: that path runs in softirq context so no warning
fires there, but the same fix is applied for consistency.

Analysis

AI-generated

Technical impact

The usbnet driver accesses per-CPU data by calling this_cpu_ptr() before disabling preemption, which triggers a BUG when CONFIG_DEBUG_PREEMPT is enabled. The BUG results in a kernel panic, bringing the system down and causing a denial of service. The flaw does not provide an attacker with code execution or data exfiltration, but it halts system operation whenever the buggy code path is exercised, such as during USB network transmission completion.

Affected Systems

All Linux kernel builds that include the unpatched usbnet implementation and have CONFIG_DEBUG_PREEMPT enabled are affected. The precise commit that introduces the safe get_cpu_ptr()/put_cpu_ptr() sequence is referenced in the advisory links. Consequently, any kernel version prior to that commit is potentially impacted on systems that have the debugging configuration active.

Risk and Exploitability

The CVSS base score is unspecified and EPSS data is unavailable. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The BUG is triggered only in a preemptible context with CONFIG_DEBUG_PREEMPT enabled; an attacker must have local or privileged access to a system to trigger the panic. Consequently, the risk is moderate to high for environments that cannot apply the patch promptly, as the primary impact is a denial-of-service through kernel crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a revision that applies get_cpu_ptr()/put_cpu_ptr() for per-CPU access in usbnet; the advisory links contain the relevant commit.
  • If an immediate kernel upgrade is not feasible, rebuild or reconfigure the kernel with CONFIG_DEBUG_PREEMPT disabled to suppress the BUG trigger, at the cost of disabling that debugging feature.
  • After applying either change, reboot the system to clear any pending USB network operations and activate the patched driver state.

Generated by OpenCVE AI on December 1, 2026 at 11:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-682
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: usbnet: fix smp_processor_id() use in preemptible context tx_complete() calls this_cpu_ptr() before disabling preemption, which triggers a BUG when running with CONFIG_DEBUG_PREEMPT: BUG: using smp_processor_id() in preemptible code in tx_complete Fix by using get_cpu_ptr()/put_cpu_ptr() which disable preemption and return the per-CPU pointer atomically. The usbnet_skb_return() hunk is a hardening change: that path runs in softirq context so no warning fires there, but the same fix is applied for consistency.
Title usbnet: fix smp_processor_id() use in preemptible context
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM