Skip to content
Heist/ feed
Back to feed
UnratedFix available

net: stmmac: initialize ptp_lock at probe time

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.222, 6.1.189, 6.12.111, 6.18.53, 6.6.158, 7.2.7
CVEs
CVE-2026-97963
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 10:02 UTC · Revision 1

Source evidence

net: stmmac: initialize ptp_lock at probe time

core-osv · Original source

Published 25 Sept 2026, 10:23 UTC

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.

osv:CVE-2026-97963

Kernel

Fixed versions: 5.15.222, 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2.7

Complete source record
{
  "id": "17d32d2348739817166b0d3b00605ba97938dd1ea262e99c8a03e190ff5f2e29",
  "url": "https://osv.dev/vulnerability/CVE-2026-97963",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: stmmac: initialize ptp_lock at probe time",
    "summary": "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.",
    "evidence": "osv:CVE-2026-97963",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.222",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.189",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.158",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.111",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.53",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-97963",
      "aliases": [
        "CVE-2026-97963"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b60189e0392fa06348911077ef281eb2b1047b6a"
                },
                {
                  "fixed": "ee33e424d4932c70f103b94a46b685923f236f65"
                },
                {
                  "fixed": "7ced87834f3a58761d4bbcabf8326478548e6a54"
                },
                {
                  "fixed": "79fb5bcc50996964e076dffbdc24b7d2c06bd957"
                },
                {
                  "fixed": "420315413b29635de1d4ea4142e410e6465260f3"
                },
                {
                  "fixed": "25cc0096efba83b4e0e6fa50f03e9543b41e9d3d"
                },
                {
                  "fixed": "b1986595cf827c38ff929e22fbc9ca8f76379306"
                },
                {
                  "fixed": "0338c68e22abd2ee509ec2e32508a50896618c32"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97963.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.6.0"
                },
                {
                  "fixed": "5.15.222"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.189"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.158"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.111"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.53"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97963.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.239467070Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0338c68e22abd2ee509ec2e32508a50896618c32",
        "https://git.kernel.org/stable/c/25cc0096efba83b4e0e6fa50f03e9543b41e9d3d",
        "https://git.kernel.org/stable/c/420315413b29635de1d4ea4142e410e6465260f3",
        "https://git.kernel.org/stable/c/79fb5bcc50996964e076dffbdc24b7d2c06bd957",
        "https://git.kernel.org/stable/c/7ced87834f3a58761d4bbcabf8326478548e6a54",
        "https://git.kernel.org/stable/c/b1986595cf827c38ff929e22fbc9ca8f76379306",
        "https://git.kernel.org/stable/c/ee33e424d4932c70f103b94a46b685923f236f65",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97963.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-97963",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97963.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-97963",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 518953,
  "published_at": "2026-09-25T10:23:06.749+00:00"
}