CVE-2026-139137: ice: set in_use only after preparing Tx timestamp index
In the Linux kernel, the following vulnerability has been resolved:
ice: set inuse only after preparing Tx timestamp index
The iceptprequestts() function is used to request a timestamp index for use with a packet. When reserving an index, it sets the start time and saves a pointer to the skb into the appropriate index. The function marks the inuse bit first before doing any of these steps. The IRQ handler which clears the timestamps reads the inuse bits uses a lockless flow for reading the inuse bits to determine which ones are in-use. This is necessary as actually processing a complete timestamp must be able to sleep so we cannot hold the timestamp tracker lock over the entire sequence. Additionally, blocking the Tx hotpath with such a lock indefinitely would be problematic.
However, the existing flow now has a very narrow window where the IRQ handler could see a timestamp as in-use but read a stale value for its "start" time.
Fix this by ordering the sequence to mark the inuse bit last, and add a memory barrier to prevent re-ordering of the previous writes to setup the index.
This was found and reported by Sashiko while reviewing an unrelated change.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel ice PTP timestamp-index reservation flow, mark the index's in_use bit only after preparing the timestamp index, and add a memory barrier to prevent reordering of the setup writes.
Event History
Frequently Asked Questions
Which systems are exposed to this race condition?
Systems using the Linux kernel ice driver's transmit timestamp request path are relevant. The race involves an IRQ handler observing a timestamp slot as in use while reading a stale start-time value.
Is a default configuration known to be affected?
The available information does not state whether transmit timestamping is enabled or exercised by default. Exposure depends on use of the ice driver's transmit timestamp request functionality.
What is the remediation?
Apply a kernel update containing the referenced fixes. The correction initializes the timestamp index fields before marking the slot in use and uses a memory barrier to preserve that ordering.