Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0306431E827 for ; Wed, 24 Jun 2026 16:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319009; cv=none; b=hDpNYdzCP+FgsAFprxASpKA8PvuPQsZtNPmiCMxlgq6XcFDq8uarFpm4hWhIfOF1faPxY8GZNb+/cojdcTtqavnMYY2s/+8nBFjr3GQ0OkMribsPwDY1uP9SU05oT3J00F8ujUF4ukfDH6p9cIXG0NxnZaSZRgQouQCTLvW9hGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319009; c=relaxed/simple; bh=MMImcGw7hXrnuKqv2n3niaoTrh7fbx9FKiqllAQqWmk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qy1HjKuzD2TTGTsI3SMmPNRCw8htIO3ADt3UjzzsahtQ96Uf9IrGqyX2lVJa8gLrTH4MPBQd0jYWqe2dVncTm+f3Qqm9tNg2YS++KAO2Mwe2wc/K/Isq4lC7yDhD52ulEOh1mSuPBL3VLbrKAWuxBVlRJeZh7EEds7tDNOcc2A0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oJAv3w3G; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oJAv3w3G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC13E1F00A3A; Wed, 24 Jun 2026 16:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319005; bh=Im+dDy5yuhRwRu4aMxfZZjLvAAzifl9+xUEl9uqA9ak=; h=From:To:Cc:Subject:Date:Reply-To; b=oJAv3w3GnaUV1y5/lWVUZEKIROub4cxw/P407H4DqPWpJyTgf9PqM0LU4blbIRNVm vOMqlt2h8ctVcpgLaST3n21N3fHzy5pOQhA3ZKAvSNDzquSfRzLCWDAqedycO0uN2p p6yj4ujL5+leTpyA5HrPtRNjTqC+1LnB1OLUNqSA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53042: fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal Date: Wed, 24 Jun 2026 17:31:06 +0100 Message-ID: <2026062457-CVE-2026-53042-9758@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2515; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B2FE9xn49CsQqJDvsgrJx9UpS0R4tueq6Fq9wiL6pmM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bKxd8+PCLp9c2N6UEfRKI7NM1KGBT3b1i40xa5MnG 7aqi/p3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQuzWJYMDPYZoLRNRctoReP WbUumV/cc+fdc4b5qeKrRS+mat/bLRqlmvZYPTHT5ekZAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-53042 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b and fixed in 6.18.33 with commit a28f56988c8e5bb9375806a5cfb0bf54d662ae3f Issue introduced in 6.15 with commit 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b and fixed in 7.0.10 with commit 1075f2f590fdac147f8b8010c35b606564b5c7d7 Issue introduced in 6.15 with commit 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b and fixed in 7.1 with commit a55f80233f384dc89ef3425b2e1dd0e6d44bcf29 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53042 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/fwctl/main.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a28f56988c8e5bb9375806a5cfb0bf54d662ae3f https://git.kernel.org/stable/c/1075f2f590fdac147f8b8010c35b606564b5c7d7 https://git.kernel.org/stable/c/a55f80233f384dc89ef3425b2e1dd0e6d44bcf29