xsk: clear metadata pointer when no timestamp is requested
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel eb4c613d4ebc3f664e70d572b8867ba114a8754e, Kernel 6.15, Kernel 0ba2e1eb07a826d021344e2f146b6716c58139eb and 3 more.
In the Linux kernel, the following vulnerability has been resolved: xsk: clear metadata pointer when no timestamp is requested User space can change metadata flags after request processing. Rereading them during completion can therefore make the kernel write a timestamp that was not requested when the packet was submitted. Clear the metadata pointer during request processing unless timestamp completion is requested. Completion handling can then use the pointer itself instead of rereading the flags. On the mlx5 multi-packet WQE path metadata is evaluated per batch: xsk_tx_metadata_request() runs only for the descriptor that starts a session, just like the checksum offload that is applied once through the shared WQE. Only that descriptor's pointer is reset, so completion handling can record a timestamp for the other descriptors of the session regardless of their own XDP_TXMD_FLAGS_TIMESTAMP bit. The write stays inside the metadata area; the single-WQE, other zero-copy, and generic paths reset the pointer per descriptor and are unaffected.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=ca4419f15abd19ba8be1e109661b60f9f5b6c9f0 <eb4c613d4ebc3f664e70d572b8867ba114a8754e, >=6.14.2 <6.15, >=ca4419f15abd19ba8be1e109661b60f9f5b6c9f0 <0ba2e1eb07a826d021344e2f146b6716c58139eb, >=ca4419f15abd19ba8be1e109661b60f9f5b6c9f0 <9f60a67df8d3c862503bee62bada8e7089cba438, =6.15, =d9d736c416c9a85f84e15435ba82a177262e745b | eb4c613d4ebc3f664e70d572b8867ba114a8754e, 6.15, 0ba2e1eb07a826d021344e2f146b6716c58139eb, 9f60a67df8d3c862503bee62bada8e7089cba438 |
| linux-kernel: Kernel | >=6.15.0 <6.18.45, >=6.19.0 <7.1.9, >=6.14.2 <6.15 | 6.18.45, 7.1.9, 6.15 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket