← Back to CVE Explorer

CVE-2026-97963

Full vulnerability record from the local CVENow database.

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.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-25 11:17:24.080000
Last modified
2026-10-19 10:17:47.687000
View original CVE JSON
{
  "id": "CVE-2026-97963",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-25T11:17:24.080",
  "lastModified": "2026-10-19T10:17:47.687",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: initialize ptp_lock at probe time\n\npriv->ptp_lock is only initialized in stmmac_ptp_register(), which runs\nduring __stmmac_open(). However, the lock is also used while the\ninterface is down and has never been opened: tc_taprio_configure()\ninvokes the PTP gettime64() callback to compute the EST base time when\noffloading a TAPRIO schedule, and stmmac_get_time() takes\npriv->ptp_lock. Using an uninitialized rwlock is undefined behaviour.\nMove the rwlock_init() to __stmmac_dvr_probe(), together with the other\nprivate locks, so that ptp_lock is always valid regardless of the\ninterface state."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c",
            "drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "b60189e0392fa06348911077ef281eb2b1047b6a",
              "lessThan": "ee33e424d4932c70f103b94a46b685923f236f65",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "b60189e0392fa06348911077ef281eb2b1047b6a",
              "lessThan": "7ced87834f3a58761d4bbcabf8326478548e6a54",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "b60189e0392fa06348911077ef281eb2b1047b6a",
              "lessThan": "79fb5bcc50996964e076dffbdc24b7d2c06bd957",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "b60189e0392fa06348911077ef281eb2b1047b6a",
              "lessThan": "420315413b29635de1d4ea4142e410e6465260f3",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "b60189e0392fa06348911077ef281eb2b1047b6a",
              "lessThan": "25cc0096efba83b4e0e6fa50f03e9543b41e9d3d",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "b60189e0392fa06348911077ef281eb2b1047b6a",
              "lessThan": "b1986595cf827c38ff929e22fbc9ca8f76379306",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "b60189e0392fa06348911077ef281eb2b1047b6a",
              "lessThan": "0338c68e22abd2ee509ec2e32508a50896618c32",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c",
            "drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "5.6",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "5.6",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.222",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.189",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.158",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.111",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.53",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.7",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/0338c68e22abd2ee509ec2e32508a50896618c32",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/25cc0096efba83b4e0e6fa50f03e9543b41e9d3d",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/420315413b29635de1d4ea4142e410e6465260f3",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/79fb5bcc50996964e076dffbdc24b7d2c06bd957",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/7ced87834f3a58761d4bbcabf8326478548e6a54",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/b1986595cf827c38ff929e22fbc9ca8f76379306",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ee33e424d4932c70f103b94a46b685923f236f65",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}