CVE-2026-139137

ice: set in_use only after preparing Tx timestamp index

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ice: set in_use only after preparing Tx timestamp index

The ice_ptp_request_ts() 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 in_use bit first before doing any of these steps. The IRQ handler which
clears the timestamps reads the in_use bits uses a lockless flow for
reading the in_use 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 in_use 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.

Analysis

AI-generated

Technical impact

The Linux kernel ice driver contains a race condition in the timestamp reservation function. The function marks a timestamp index as in-use before initializing its start time and packet pointer. Because the CPU can reorder writes, an interrupt handler may see an index flagged as in-use while the start time remains stale. This flaw does not expose data or allow code execution, but it can lead to inaccurate or inconsistent precision time protocol (PTP) timestamps, undermining the accuracy of network time synchronization and any services that rely on precise timing.

Affected Systems

All Linux kernel releases that include the ice driver and its PTP timestamp handling code before the commit adding the memory barrier are potentially affected. The CVE does not specify a version range, so any system with an ice driver that has not incorporated the ordering fix is at risk.

Risk and Exploitability

The vulnerability lacks a CVSS score, EPSS is not available, and it is not listed in the CISA KEV catalog. Exploitation would require the attacker to trigger PTP traffic and may only be feasible with privileged access, resulting in a low probability of exploitation. The primary risk is the corruption of timestamp integrity, which could disrupt time‑dependent protocols but does not lead to direct compromise of confidentiality, integrity, or availability of the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that contains the patch commit 11d54e081223bc1035a47d0a306d7468f7a57d69 or later, which orders the in-use flag after the timestamp data and adds a memory barrier.
  • Verify that PTP services report correct timestamps by comparing them against a trusted reference and checking for consistent values in kernel logs.
  • If critical timing accuracy is required and no updated kernel is available, consider disabling PTP on the affected interface until the patch is applied.

Generated by OpenCVE AI on December 1, 2026 at 09:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-823
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ice: set in_use only after preparing Tx timestamp index The ice_ptp_request_ts() 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 in_use bit first before doing any of these steps. The IRQ handler which clears the timestamps reads the in_use bits uses a lockless flow for reading the in_use 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 in_use 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.
Title ice: set in_use only after preparing Tx timestamp index
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-823

    Use of Out-of-range Pointer Offset

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM