Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 76FD934A3A6 for ; Thu, 30 Oct 2025 09:49:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761817743; cv=none; b=M1bvaVAZ3qYkEJF1CZD0Xzygiqzdaqk8MF3udVbbjsNwUhXZQKKT3UoLFZ4MA6BBfdZc/bZSiK2dKciq0yvBfk7dg+fAmj8dUdVgTRBIsusRPclZXGTvv4VrG1K6W1+yCz3kMDOo9JmvlP/hIE23kdt/FSQrrEf/GxnY1W2I5xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761817743; c=relaxed/simple; bh=9CxMRCKmRD3mDX2a6slafEQccRmp1FPjIm/HDLUyOMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PFGEj/wT7OeCLKwk3oTtv9SNgST3nG+aHr3xVriMCjfexKYgsxU5IcO2FFqi6vZpE2SdAT0ZdZDb5lf5id4IOeBCWlomfk8KWaoVejOntXMggJvtQhJ8yTtOduHDB3kC+9d+MohuKTW5qnmd/lJkeiq12sd0y4ZDX6UyKjQz2G0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rD/JCadl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rD/JCadl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 956D9C4CEF1; Thu, 30 Oct 2025 09:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761817743; bh=9CxMRCKmRD3mDX2a6slafEQccRmp1FPjIm/HDLUyOMc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rD/JCadlU5nmgqxxy7gzCTgZlWJTqSFaUD1Mrvl517o0FJZPijxr1pkSc9pZWSJgm RK+vCsBUGOQQD3g4gNBnL36aCJ24pSmmEVlnm5cZQvfFnshKs4SIh/lV6slVlki6+M uWQ9KJ6wSv3kr1XgYvUazfqOzSE8xb20nORRS3ZM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40089: cxl/features: Add check for no entries in cxl_feature_info Date: Thu, 30 Oct 2025 10:48:16 +0100 Message-ID: <2025103015-CVE-2025-40089-26ca@gregkh> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2546; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ADsWxRyu67fZjOM+N49h9lDCi5nWgRlx+tvlmJPbV1s=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnMJvFMfPySJdZFWQpBcXlz536aziEpK3T6bXrUza0XH 21TehHcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO55cwwv6K/pnPTykDmA9zf 2s65t8UbNqyawrDgnOzaRsOn+R94FSa18X8rLT0flxoJAA== 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: cxl/features: Add check for no entries in cxl_feature_info cxl EDAC calls cxl_feature_info() to get the feature information and if the hardware has no Features support, cxlfs may be passed in as NULL. [ 51.957498] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 51.965571] #PF: supervisor read access in kernel mode [ 51.971559] #PF: error_code(0x0000) - not-present page [ 51.977542] PGD 17e4f6067 P4D 0 [ 51.981384] Oops: Oops: 0000 [#1] SMP NOPTI [ 51.986300] CPU: 49 UID: 0 PID: 3782 Comm: systemd-udevd Not tainted 6.17.0dj test+ #64 PREEMPT(voluntary) [ 51.997355] Hardware name: [ 52.009790] RIP: 0010:cxl_feature_info+0xa/0x80 [cxl_core] Add a check for cxlfs before dereferencing it and return -EOPNOTSUPP if there is no cxlfs created due to no hardware support. The Linux kernel CVE team has assigned CVE-2025-40089 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit eb5dfcb9e36d0e46089fec777d911313c1876fa3 and fixed in 6.17.5 with commit b8a69e3b1a460bf5d96dd53cbd121aa2cd346886 Issue introduced in 6.15 with commit eb5dfcb9e36d0e46089fec777d911313c1876fa3 and fixed in 6.18-rc2 with commit a375246fcf2bbdaeb1df7fa7ee5a8b884a89085e 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-2025-40089 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/cxl/core/features.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/b8a69e3b1a460bf5d96dd53cbd121aa2cd346886 https://git.kernel.org/stable/c/a375246fcf2bbdaeb1df7fa7ee5a8b884a89085e