xsk: honor XDP_TX_METADATA in zero-copy path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 53a5b262d706b572840cbe8feae392538077ee19, Kernel 8ba0d143e471c85f8a116707c0b42bf046b0a7b3, Kernel a6e4b9a6deb9362ef7a0706c70d674e92fe1411a and 1 more.
In the Linux kernel, the following vulnerability has been resolved: xsk: honor XDP_TX_METADATA in zero-copy path The zero-copy path reads TX metadata whenever the UMEM has metadata space, even if the descriptor does not set XDP_TX_METADATA. Pass descriptor options through the metadata helpers and ignore metadata unless the option is set. This does not fix the existing per-WQE metadata handling for mlx5 MPWQEs. Only the descriptor that starts a session passes through xsk_tx_metadata_request() and configures offload state shared by the batch. Metadata on descriptors joining an open session is therefore not validated and does not configure its requested offloads. In addition, a non-NULL metadata pointer from such a descriptor is treated as a timestamp completion request even when XDP_TXMD_FLAGS_TIMESTAMP is not set, so its metadata union can be overwritten with an unrequested timestamp. Fixing mixed metadata states within one MPWQE requires a separate change.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.8, >=48eb03dd26304c24f03bdbb9382e89c8564e71df <53a5b262d706b572840cbe8feae392538077ee19, >=48eb03dd26304c24f03bdbb9382e89c8564e71df <8ba0d143e471c85f8a116707c0b42bf046b0a7b3, >=48eb03dd26304c24f03bdbb9382e89c8564e71df <a6e4b9a6deb9362ef7a0706c70d674e92fe1411a, >=48eb03dd26304c24f03bdbb9382e89c8564e71df <bf9387488d6394845076928c6ca5315ce5d84f54 | 53a5b262d706b572840cbe8feae392538077ee19, 8ba0d143e471c85f8a116707c0b42bf046b0a7b3, a6e4b9a6deb9362ef7a0706c70d674e92fe1411a, bf9387488d6394845076928c6ca5315ce5d84f54 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket