{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "858ce2f56b5253063f61f6b1c58a6dbf5d71da0b"
            },
            {
              "fixed": "a28f56988c8e5bb9375806a5cfb0bf54d662ae3f"
            },
            {
              "fixed": "1075f2f590fdac147f8b8010c35b606564b5c7d7"
            },
            {
              "fixed": "a55f80233f384dc89ef3425b2e1dd0e6d44bcf29"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.15.0"
            },
            {
              "fixed": "6.18.33"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.10"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53042.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfwctl: Fix class init ordering to avoid NULL pointer dereference on device removal\n\nCXL is linked before fwctl in drivers/Makefile. Both use `module_init, so\n`cxl_pci_driver_init()` runs first. When `cxl_pci_probe()` calls\n`fwctl_register()` and then `device_add()`, fwctl_class is not yet\nregistered because fwctl_init() hasn't run, causing `class_to_subsys()` to\nreturn NULL and skip knode_class initialization.\n\nOn device removal, `class_to_subsys()` returns non-NULL, and\n`device_del()` calls `klist_del()` on the uninitialized knode, triggering\na NULL pointer dereference.",
  "id": "CVE-2026-53042",
  "modified": "2026-07-16T03:30:49.844732458Z",
  "published": "2026-06-24T16:29:48.273Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1075f2f590fdac147f8b8010c35b606564b5c7d7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a28f56988c8e5bb9375806a5cfb0bf54d662ae3f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a55f80233f384dc89ef3425b2e1dd0e6d44bcf29"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53042.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-53042"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal"
}