Shellfeed logo Shellfeed

CVE-2026-97963 · UNKNOWN

Summary: net: stmmac: initialize ptp_lock at probe time

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 6.8).

Details

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.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [b60189e0392fa06348911077ef281eb2b1047b6a – ee33e424d4932c70f103b94a46b685923f236f65]
  • Linux Kernel [5.6.0 – 5.15.222] [5.16.0 – 6.1.189] [6.2.0 – 6.6.158] [6.7.0 – 6.12.111] [6.13.0 – 6.18.53] [6.19.0 – 7.2.7]

References