i40e: Fix preempt count leak in napi poll tracepoint
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i40e: Fix preempt count leak in napi poll tracepoint
Using get_cpu() in the tracepoint assignment causes an obvious preempt count leak because nothing invokes put_cpu() to undo it:
softirq: huh, entered softirq 3 NET_RX with preempt_count 00000100, exited with 00000101?
This clearly has seen a lot of testing in the last 3+ years...
Use smp_processor_id() instead.
From the CVE record · Linux
The Linux kernel's i40e NAPI poll tracepoint uses get_cpu() without a matching put_cpu(), leaking the preempt count when the tracepoint runs. The input does not describe an attacker action or specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the i40e driver should check their versions; affected versions are not specified.