Description
In the Linux kernel, the following vulnerability has been resolved:

net: stmmac: initialize ptp_lock at probe time

priv->ptp_lock is only initialized in stmmac_ptp_register(), which runs
during __stmmac_open(). However, the lock is also used while the
interface is down and has never been opened: tc_taprio_configure()
invokes the PTP gettime64() callback to compute the EST base time when
offloading a TAPRIO schedule, and stmmac_get_time() takes
priv->ptp_lock. Using an uninitialized rwlock is undefined behaviour.
Move the rwlock_init() to __stmmac_dvr_probe(), together with the other
private locks, so that ptp_lock is always valid regardless of the
interface state.
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: Uninitialized Kernel Lock Leading to Undefined Behavior
Action: Apply Patch
AI Analysis

Impact

An uninitialized read‑write lock is used by the stmmac network driver when the interface is down and not yet opened. The use of this uninitialized lock triggers undefined behaviour, which can manifest as a kernel panic, data corruption, or a potential local privilege escalation if an attacker can trigger the path. The weakness corresponds to common categories of improper initialization and use of uninitialized variables.

Affected Systems

All Linux kernel releases that include the stmmac driver before the fix for this issue. Linux kernels on any distribution that ship with this driver are potentially affected until the patch is applied.

Risk and Exploitability

The CVSS score is not reported, and the EPSS score is unavailable, so the exact quantitative risk cannot be determined from the data. The lack of KEV listing suggests no publicly known exploitation yet. However, because the flaw involves kernel memory handling and can lead to a crash or corrupted state, the potential impact is high for systems that load the driver on a vulnerable kernel. The likely attack vector is local, requiring the attacker to have some influence over the network interface or to load the driver, which typically requires root or kernel module privileges. With the vulnerability present, an attacker could trigger a kernel failure by causing a taprio schedule configuration that uses the uninitialized lock.

Generated by OpenCVE AI on September 25, 2026 at 14:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the system to a kernel version where the stmmac driver has been patched to initialize ptp_lock during probe.
  • If an upgrade is not immediately possible, disable PTP functionality on affected interfaces or ensure the stmmac driver never loads before the kernel patch is applied.
  • Monitor kernel logs for unexpected panics or PTP‑related errors and apply the patch as soon as it becomes available.

Generated by OpenCVE AI on September 25, 2026 at 14:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-457
CWE-665

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: stmmac: initialize ptp_lock at probe time priv->ptp_lock is only initialized in stmmac_ptp_register(), which runs during __stmmac_open(). However, the lock is also used while the interface is down and has never been opened: tc_taprio_configure() invokes the PTP gettime64() callback to compute the EST base time when offloading a TAPRIO schedule, and stmmac_get_time() takes priv->ptp_lock. Using an uninitialized rwlock is undefined behaviour. Move the rwlock_init() to __stmmac_dvr_probe(), together with the other private locks, so that ptp_lock is always valid regardless of the interface state.
Title net: stmmac: initialize ptp_lock at probe time
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-25T10:23:06.749Z

Reserved: 2026-09-25T10:18:58.206Z

Link: CVE-2026-97963

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:24.080

Modified: 2026-09-25T11:17:24.080

Link: CVE-2026-97963

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T14:45:18Z

Weaknesses
  • CWE-457

    Use of Uninitialized Variable

  • CWE-665

    Improper Initialization