igc: fix page fault in XDP TX timestamps handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
igc: fix page fault in XDP TX timestamps handling
If an XDP application that requested TX timestamping is shutting down while the link of the interface in use is still up the following kernel splat is reported:
[ 883.803618] [ T1554] BUG: unable to handle page fault for address: ffffcfb6200fd008 ... [ 883.803650] [ T1554] Call Trace: [ 883.803652] [ T1554] <TASK> [ 883.803654] [ T1554] igc_ptp_tx_tstamp_event+0xdf/0x160 [igc] [ 883.803660] [ T1554] igc_tsync_interrupt+0x2d5/0x300 [igc] ...
During shutdown of the TX ring the xsk_meta pointers are left behind, so that the IRQ handler is trying to touch them.
This issue is now being fixed by cleaning up the stale xsk meta data on TX shutdown. TX timestamps on other queues remain unaffected.
From the CVE record · Linux
The Linux kernel's igc driver can access stale XDP TX timestamp metadata after a TX ring shuts down. Shutting down an XDP application that requested TX timestamping while its interface link remains up can trigger a kernel page fault; the input does not specify an attacker route or authentication requirements.
Teams running Linux kernels with the igc driver and XDP applications that request TX timestamping should check their systems; affected versions are not specified.