CVE-2026-53042 fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal
A NULL pointer dereference in the Linux kernel fwctl driver can cause a system crash during device removal due to incorrect initialization ordering.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-53042?
CVE-2026-53042 is a medium-severity vulnerability in Linux kernel, published on 24 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-824
Which versions are affected by CVE-2026-53042?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-53042?
Apply the vendor's patch.
Is CVE-2026-53042 being exploited?
There is no known exploitation of CVE-2026-53042 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2026-53042, DEBIAN-CVE-2026-53042, GHSA-q56q-rvw2-p4r2, UBUNTU-CVE-2026-53042.