Skip to content
Heist/ feed
Unrated

ptp: ocp: fix resource freeing order

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: ptp: ocp: fix resource freeing order Commit a60fc3294a37 ("ptp: rework ptp_clock_unregister() to disable events") added a call to ptp_disable_all_events() which changes the configuration of pins if they support EXTTS events. In ptp_ocp_detach() pins resources are freed before ptp_clock_unregister() and it leads to use-after-free during driver removal. Fix it by changing the order of free/unregister calls. To avoid irq handler running on the other core while ptp device unregistering, call synchronize_irq() after HW is configured to stop producing irqs and no irqs are in-flight.

Announced Source revision 1
Original source ↗

CVE-2026-53222

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-53222

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": "a60fc3294a377204664b5484e4a487fa124155da",
        "lessThan": "daacc9d1430b63f6bee6e5646def5d6414d35c4e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a60fc3294a377204664b5484e4a487fa124155da",
        "lessThan": "aa03698bb28d3be5ee180adb185395054b342b04",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a60fc3294a377204664b5484e4a487fa124155da",
        "lessThan": "627366c51145a07f675b1800fb5ea2ec960bd900",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/ptp/ptp_ocp.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.18"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.18",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.18.57",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.0.13",
        "versionType": "semver",
        "lessThanOrEqual": "7.0.*"
      },
      {
        "status": "unaffected",
        "version": "7.1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/ptp/ptp_ocp.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-53222

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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