{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "20503272422693d793b84f88bf23fe4e955d3a33"
            },
            {
              "fixed": "6dbd8b91a065d1d8001446a28e72cd140f9acef0"
            },
            {
              "fixed": "f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21822.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nptp: vmclock: Set driver data before its usage\n\nIf vmclock_ptp_register() fails during probing, vmclock_remove() is\ncalled to clean up the ptp clock and misc device.\nIt uses dev_get_drvdata() to access the vmclock state.\nHowever the driver data is not yet set at this point.\n\nAssign the driver data earlier.",
  "id": "CVE-2025-21822",
  "modified": "2026-04-01T23:10:10.838647474Z",
  "published": "2025-02-27T20:06:13.422Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6dbd8b91a065d1d8001446a28e72cd140f9acef0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21822.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-21822"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "ptp: vmclock: Set driver data before its usage"
}