Bug 2492429 (CVE-2026-53042) - CVE-2026-53042 kernel: fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal
Summary: CVE-2026-53042 kernel: fwctl: Fix class init ordering to avoid NULL pointer d...
Keywords:
Status: NEW
Alias: CVE-2026-53042
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 18:11 UTC by OSIDB Bzimport
Modified: 2026-06-26 11:42 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-24 18:11:35 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-06-26 11:36:53 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062457-CVE-2026-53042-9758@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.