{"id":"CVE-2026-53042","published":"2026-06-24T16:29:48Z","modified":"2026-06-24T16:29:48Z","title":"fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0016,"percentile":0.02741,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a28f56988c8e5bb9375806a5cfb0bf54d662ae3f","tags":[]},{"url":"https://git.kernel.org/stable/c/1075f2f590fdac147f8b8010c35b606564b5c7d7","tags":[]},{"url":"https://git.kernel.org/stable/c/a55f80233f384dc89ef3425b2e1dd0e6d44bcf29","tags":[]}],"priority":{"score":0.5,"factors":[{"name":"EPSS percentile","points":0.55}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b, < a28f56988c8e5bb9375806a5cfb0bf54d662ae3f",">= 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b, < 1075f2f590fdac147f8b8010c35b606564b5c7d7",">= 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b, < a55f80233f384dc89ef3425b2e1dd0e6d44bcf29"]},{"vendor":"Linux","product":"Linux","versions":["6.15"]}],"euvd":{"id":"EUVD-2026-38910","exploited":false,"provenance":"source"}}