{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-80991",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-80991"
  ],
  "published": "2026-09-11T19:47:07Z",
  "summary": "net: ravb: serialize PTP clock teardown",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ravb: serialize PTP clock teardown\n\nravb_ptp_interrupt() can race with ravb_ptp_stop() and pass the clock to\nptp_clock_event() while ptp_clock_unregister() is freeing it. This can\nlead to a use-after-free.\n\nUse READ_ONCE() and WRITE_ONCE() for lockless access to the clock pointer.\nAtomically detach it with xchg() before disabling PTP interrupts, then\nsynchronize all IRQs which can invoke ravb_ptp_interrupt() before\nunregistering the detached clock.\n\nA handler which read the old pointer completes before the clock is\nunregistered, while later handlers read NULL and skip the event.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": null,
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-80991"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/695acb5534a9e366efb47b40c7487fc56488b09b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/67a82e6f886beed0de8f8da08bb767e68fba952d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/66b50c31419e7946e9aa325a468ad9b64c961a25"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1cb9663789c5b7a12fcd419fcca6d6254c398252"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-13T06:49:25Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The UAF is reached from the ravb gPTP IRQ handler (ravb_interrupt/ravb_multi_interrupt \u2192 ravb_ptp_interrupt \u2192 ptp_clock_event) racing local ravb_ptp_stop teardown (close, suspend, TX-timeout work, ethtool ringparam). GIS_PTCF capture IRQs come from the on-chip AVB timer, not from parsing received Ethernet frames.\nAC:L - The attacker drives both sides: ordinary sockets or automotive idle autosuspend trigger ravb_ptp_stop, and PTP_EXTTS_REQUEST on /dev/ptpX (write fd, no CAP_SYS_TIME) enables capture IRQs. Pre-fix stop cleared GIC then called ptp_clock_unregister without synchronize_irq, so an in-flight handler can be raced repeatedly.\nPR:L - On Renesas R-Car/RZ automotive and industrial systems, unprivileged traffic arms ravb_tx_timeout_work and platform autosleep calls ravb_close without CAP_NET_ADMIN; EXTTS enable needs only a writable PTP chardev, not host root. This matches CVE-2025-21801 and CVE-2023-52509 ravb scoring.\nUI:N - Interface teardown runs from the TX watchdog or from automatic suspend/idle power management on the affected platforms, with no separate victim user action required.\nS:U - The use-after-free corrupts the host kernel's struct ptp_clock heap object within a single kernel security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - ptp_clock_event takes ptp->tsevqs_lock and walks the timestamp queue list after ptp_clock_release has kfree'd the clock, so reclaiming that slab provides an arbitrary kernel-memory read primitive.\nI:H - The same IRQ-context UAF writes via enqueue_external_timestamp into list-queue objects the attacker can reclaim, yielding a kernel heap write primitive suitable for control-flow hijacking.\nA:H - Use-after-free of struct ptp_clock in hardirq context causes a kernel oops or panic and takes down the system's primary Ethernet interface."
    }
  }
}
