CyberRota Analysis
AI-GeneratedThe vulnerability in the Linux kernel affects the handling of metadata pointers during packet processing, specifically when timestamps are not requested. This flaw allows user space to manipulate metadata flags, potentially leading to unintended timestamp writes during packet completion, which could compromise data integrity. Organizations utilizing Linux systems, particularly those employing the mlx5 multi-packet WQE path, should prioritize addressing this issue to safeguard against potential exploitation.
Original NVD Description
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.