Skip to content
Heist/ feed
Unrated

net: libwx: fix races in Tx timestamp handling

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: net: libwx: fix races in Tx timestamp handling wx->ptp_tx_skb is shared between the Tx path, the PTP auxiliary worker and the timestamp cleanup paths. The WX_STATE_PTP_TX_IN_PROGRESS bit prevents multiple Tx paths from submitting timestamp requests, but does not serialize the worker against cleanup. As a result, wx_ptp_clear_tx_timestamp() can free an skb after wx_ptp_tx_hwtstamp_work() has obtained its pointer. The worker may then pass the freed skb to skb_tstamp_tx() and release the same reference again. The cleanup path may also clear the in-progress bit while the worker is still processing the old skb. This allows the Tx path to publish a new skb which the worker can subsequently overwrite with NULL, leaking its reference. Add a dedicated spinlock to protect publication and consumption of the Tx timestamp skb. Detach the skb and clear the in-progress bit while holding the lock, then deliver the timestamp and release the skb after dropping it. Use the same locked cleanup in the quiesce path, but keep the detach there free of register accesses: quiesce runs during PCIe error recovery, where MMIO is not reliable, and it deliberately did not touch the device before. The lock is taken with interrupts disabled, because netpoll can call ndo_start_xmit() with hard interrupts already off. When handling a Tx DMA mapping failure, keep the transmit path reference until after comparing the skb under the lock. This pre

Announced Source revision 1
Original source ↗

CVE-2026-98562

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98562

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "06e75161b9d4833518a7c266310a0635eab50616",
        "lessThan": "e78b95cfd5df25d0c562aaef95d3c7fe6c7e0e66",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "06e75161b9d4833518a7c266310a0635eab50616",
        "lessThan": "3173cba1170131816972ed2b6185cb970ba8b747",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/wangxun/libwx/wx_hw.c",
      "drivers/net/ethernet/wangxun/libwx/wx_lib.c",
      "drivers/net/ethernet/wangxun/libwx/wx_ptp.c",
      "drivers/net/ethernet/wangxun/libwx/wx_type.h"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "7.2.9",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/wangxun/libwx/wx_hw.c",
      "drivers/net/ethernet/wangxun/libwx/wx_lib.c",
      "drivers/net/ethernet/wangxun/libwx/wx_ptp.c",
      "drivers/net/ethernet/wangxun/libwx/wx_type.h"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98562

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#38582 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement