# CVE-2026-53042: fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-24T16:29:48.273Z
- Modified: 2026-07-14T19:30:54.690Z
- Weaknesses: CWE-824
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal

CXL is linked before fwctl in drivers/Makefile. Both use `module_init, so
`cxl_pci_driver_init()` runs first. When `cxl_pci_probe()` calls
`fwctl_register()` and then `device_add()`, fwctl_class is not yet
registered because fwctl_init() hasn't run, causing `class_to_subsys()` to
return NULL and skip knode_class initialization.

On device removal, `class_to_subsys()` returns non-NULL, and
`device_del()` calls `klist_del()` on the uninitialized knode, triggering
a NULL pointer dereference.

(As written by CVE List.)

## Affected

- Linux Linux: from 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b before a28f56988c8e5bb9375806a5cfb0bf54d662ae3f; from 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b before 1075f2f590fdac147f8b8010c35b606564b5c7d7; from 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b before a55f80233f384dc89ef3425b2e1dd0e6d44bcf29; 6.15 (not affected: before 6.15; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.15 before 6.18.33; from 6.19 before 7.0.10

## References

- <https://git.kernel.org/stable/c/a28f56988c8e5bb9375806a5cfb0bf54d662ae3f> (patch)
- <https://git.kernel.org/stable/c/1075f2f590fdac147f8b8010c35b606564b5c7d7> (patch)
- <https://git.kernel.org/stable/c/a55f80233f384dc89ef3425b2e1dd0e6d44bcf29> (patch)

## Sources

- CVE List: [CVE-2026-53042](https://www.cve.org/CVERecord?id=CVE-2026-53042), CVE Terms of Use, modified 2026-06-24
- NVD: [CVE-2026-53042](https://nvd.nist.gov/vuln/detail/CVE-2026-53042), Public domain, modified 2026-07-14

---

Page: https://cve.day/CVE-2026-53042 · Whole record: https://cve.day/CVE-2026-53042.json · Rebuilt by cve.day 2026-11-25T22:59:25.670Z
