{"id":"CVE-2026-53042","state":"PUBLISHED","title":"fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal","description":"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.","publishedAt":"2026-06-24T16:29:48.273Z","updatedAt":"2026-06-24T16:29:48.273Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"858ce2f56b5253063f61f6b1c58a6dbf5d71da0b","status":"affected","lessThan":"a28f56988c8e5bb9375806a5cfb0bf54d662ae3f","versionType":"git"},{"version":"858ce2f56b5253063f61f6b1c58a6dbf5d71da0b","status":"affected","lessThan":"1075f2f590fdac147f8b8010c35b606564b5c7d7","versionType":"git"},{"version":"858ce2f56b5253063f61f6b1c58a6dbf5d71da0b","status":"affected","lessThan":"a55f80233f384dc89ef3425b2e1dd0e6d44bcf29","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/fwctl/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/fwctl/main.c"]}],"references":["https://git.kernel.org/stable/c/a28f56988c8e5bb9375806a5cfb0bf54d662ae3f","https://git.kernel.org/stable/c/1075f2f590fdac147f8b8010c35b606564b5c7d7","https://git.kernel.org/stable/c/a55f80233f384dc89ef3425b2e1dd0e6d44bcf29"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53042.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53042","state":"PUBLISHED","datePublished":"2026-06-24T16:29:48.273Z","dateUpdated":"2026-06-24T16:29:48.273Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.380Z"},"containers":{"cna":{"title":"fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"858ce2f56b5253063f61f6b1c58a6dbf5d71da0b","status":"affected","lessThan":"a28f56988c8e5bb9375806a5cfb0bf54d662ae3f","versionType":"git"},{"version":"858ce2f56b5253063f61f6b1c58a6dbf5d71da0b","status":"affected","lessThan":"1075f2f590fdac147f8b8010c35b606564b5c7d7","versionType":"git"},{"version":"858ce2f56b5253063f61f6b1c58a6dbf5d71da0b","status":"affected","lessThan":"a55f80233f384dc89ef3425b2e1dd0e6d44bcf29","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/fwctl/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.33","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.10","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/fwctl/main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a28f56988c8e5bb9375806a5cfb0bf54d662ae3f"},{"url":"https://git.kernel.org/stable/c/1075f2f590fdac147f8b8010c35b606564b5c7d7"},{"url":"https://git.kernel.org/stable/c/a55f80233f384dc89ef3425b2e1dd0e6d44bcf29"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-24T16:29:48.273Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.0.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}