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 C75193C9427 for ; Fri, 3 Apr 2026 15:27:31 +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=1775230051; cv=none; b=LyVjc23qDkKCyajhO6s5i+DTyQ4klPNCJfVjKTjYtHIfaXPHvDQDRT/z1TAB756kGQ8RzE7BT0lDu3DkXDdzPWrGDY2aW064lSnEWydZjMH/SdiW3H/ZqzjT9WFM4bzvggk+3+n3xNN4edv5M3UhpQmvYRfsuiEPqpfZ1BOzrlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775230051; c=relaxed/simple; bh=XJ6zo6YtNEwwaxc0jqXSRgUNNm9Q2FgQsCK7qoKMHic=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eo3UyQ10p4+gTgcJeEBiybbuOyrUjMRGyJ5IUWS1EyVzsiXVYc03Qmp66AzJjKy/hh6GaMok0hVpdZmcy5HnUyPEHALKZqRwbmwbklboS2M5g8lwzb5P3icyq8Owy6JcxJDqbJPaDi2ZFOfMqkuaEnw6+nRT2JXVQW0YDrHfwT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=netWwLwB; 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="netWwLwB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AA7AC4CEF7; Fri, 3 Apr 2026 15:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775230051; bh=XJ6zo6YtNEwwaxc0jqXSRgUNNm9Q2FgQsCK7qoKMHic=; h=From:To:Cc:Subject:Date:Reply-To:From; b=netWwLwBXc7HfRTrWmgsXRmXpSJk9zGFAitrV/sKFhY/GbgRcT/fcU1ab2RP2o79G qG4XQljG2dRUWeqhsinexMI4l2ojRq8PqCFtLNBmy9vZT8lSWi2P/UtKw2w+7Y2zi4 ObUTZlFv4XpWMMoOQQ1V1eEMc73BfaCzko5Fyi58= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23475: spi: fix statistics allocation Date: Fri, 3 Apr 2026 17:18:56 +0200 Message-ID: <2026040323-CVE-2026-23475-8bf5@gregkh> X-Mailer: git-send-email 2.53.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=3025; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=54K2iuVXKXcD55UNPduEDJxCuR/73YGjhtNS6yHXIUg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb9kbyf4yUk39aeQv7PtOevWttBC54+1M0p+mOYlwp vYptip0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETWbGSYH/mrb8/TB0fa+eQu n9X1uMBjYP8kj2F+4SFNr6nnW0z+TZy6+kfXvcNPdt0XAQA= 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: spi: fix statistics allocation The controller per-cpu statistics is not allocated until after the controller has been registered with driver core, which leaves a window where accessing the sysfs attributes can trigger a NULL-pointer dereference. Fix this by moving the statistics allocation to controller allocation while tying its lifetime to that of the controller (rather than using implicit devres). The Linux kernel CVE team has assigned CVE-2026-23475 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 and fixed in 6.1.167 with commit 80c5bd0dca1cc5526ae0f4b273ccd163ed4caa4e Issue introduced in 6.0 with commit 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 and fixed in 6.6.130 with commit f13100b1f5f111989f0750540a795fdef47492af Issue introduced in 6.0 with commit 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 and fixed in 6.12.78 with commit df30056c78e8bead02d4be020199cabdbec0fef1 Issue introduced in 6.0 with commit 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 and fixed in 6.18.20 with commit 378b295f67102eef78cf2c28105f60ae1dab5cc1 Issue introduced in 6.0 with commit 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 and fixed in 6.19.10 with commit 118ce777d39f03cac99231196f820e4f998613a8 Issue introduced in 6.0 with commit 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 and fixed in 7.0-rc5 with commit dee0774bbb2abb172e9069ce5ffef579b12b3ae9 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-23475 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/spi/spi.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/80c5bd0dca1cc5526ae0f4b273ccd163ed4caa4e https://git.kernel.org/stable/c/f13100b1f5f111989f0750540a795fdef47492af https://git.kernel.org/stable/c/df30056c78e8bead02d4be020199cabdbec0fef1 https://git.kernel.org/stable/c/378b295f67102eef78cf2c28105f60ae1dab5cc1 https://git.kernel.org/stable/c/118ce777d39f03cac99231196f820e4f998613a8 https://git.kernel.org/stable/c/dee0774bbb2abb172e9069ce5ffef579b12b3ae9