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 558163A5E67 for ; Wed, 4 Mar 2026 14:38:53 +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=1772635133; cv=none; b=f25n/LU1sAOTZ7huAx0BEYoxpBlRT8LsL16xrF3FR2dMLc2uUmFdGa9dPUORmOTHmXl9eb3UqlCpsgVOulX8Hiux+SWEr90GC3HlzkabJJyCtj0ohCB3RRRuMsef5YCsCX1wJKrLBgD+bHl8GeQ97uTPtJTbIIbZ9Oux8OWrMJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772635133; c=relaxed/simple; bh=CXpbltQUxYQ2OTPIpc8cgGAslbl1VZDHideDLyJEdpY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qWf2lBBRgcqgW71MxXDxat0gPyHHmCXKcyZwMiNfsrW8ygpV39mMt41556/+JIqXlLWf4fOmQeBQLBQyVPrY/D78JZDQpXqfCDPCU0lOQvZ4AnLVm41exKKBknVfHv4lLWSks20vdBk3bzy/qmwEWSw3x4QCa8HXswlsTRscdQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qaO1zRpW; 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="qaO1zRpW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D2C9C4CEF7; Wed, 4 Mar 2026 14:38:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1772635132; bh=CXpbltQUxYQ2OTPIpc8cgGAslbl1VZDHideDLyJEdpY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qaO1zRpWieJwNv7onxIKI/bO9be9zdeNww23CgK7jIbxmWj95tiYtBv7nkZzvpfDM offlKEtxAao0uI/1G2SLenpjhrs50hQqYu09i7OQkT8uAgIgXRXv9URl0SDH7kl9PV mBBlgvWeAhp9dri/vpcNAmKTmcEJjGAuBL+ijUso= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23237: platform/x86: classmate-laptop: Add missing NULL pointer checks Date: Wed, 4 Mar 2026 15:38:37 +0100 Message-ID: <2026030436-CVE-2026-23237-f6fb@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=3516; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=na77BpmEmwi32hJXEdNFD/GTznjKANwOqNc5Wc7JUjg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkrnN9w2XimVxZ8E3rLv8LCXvjSt57H4df2b+S8cMG2u +9q96EHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARpUcM8z2WJVRmX9kYsu/R HHetaRJSHywbcxgWdJtl7v7MXJ8eda7lzpfPLqHqlY2vAQ== 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: platform/x86: classmate-laptop: Add missing NULL pointer checks In a few places in the Classmate laptop driver, code using the accel object may run before that object's address is stored in the driver data of the input device using it. For example, cmpc_accel_sensitivity_store_v4() is the "show" method of cmpc_accel_sensitivity_attr_v4 which is added in cmpc_accel_add_v4(), before calling dev_set_drvdata() for inputdev->dev. If the sysfs attribute is accessed prematurely, the dev_get_drvdata(&inputdev->dev) call in in cmpc_accel_sensitivity_store_v4() returns NULL which leads to a NULL pointer dereference going forward. Moreover, sysfs attributes using the input device are added before initializing that device by cmpc_add_acpi_notify_device() and if one of them is accessed before running that function, a NULL pointer dereference will occur. For example, cmpc_accel_sensitivity_attr_v4 is added before calling cmpc_add_acpi_notify_device() and if it is read prematurely, the dev_get_drvdata(&acpi->dev) call in cmpc_accel_sensitivity_show_v4() returns NULL which leads to a NULL pointer dereference going forward. Fix this by adding NULL pointer checks in all of the relevant places. The Linux kernel CVE team has assigned CVE-2026-23237 to this issue. Affected and fixed versions =========================== Fixed in 5.10.251 with commit 993708fc18d0d0919db438361b4e8c1f980a8d1b Fixed in 5.15.201 with commit af673209d43b46257540997aba042b90ef3258c0 Fixed in 6.1.164 with commit eb214804f03c829decf10998e9b7dd26f4c8ab9e Fixed in 6.6.127 with commit 9cf4b9b8ad09d6e05307abc4e951cabdff4be652 Fixed in 6.12.74 with commit da6e06a5fdbabea3870d18c227734b5dea5b3be6 Fixed in 6.18.13 with commit 97528b1622b8f129574d29a571c32a3c85eafa3c Fixed in 6.19 with commit fe747d7112283f47169e9c16e751179a9b38611e 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-23237 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/platform/x86/classmate-laptop.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/993708fc18d0d0919db438361b4e8c1f980a8d1b https://git.kernel.org/stable/c/af673209d43b46257540997aba042b90ef3258c0 https://git.kernel.org/stable/c/eb214804f03c829decf10998e9b7dd26f4c8ab9e https://git.kernel.org/stable/c/9cf4b9b8ad09d6e05307abc4e951cabdff4be652 https://git.kernel.org/stable/c/da6e06a5fdbabea3870d18c227734b5dea5b3be6 https://git.kernel.org/stable/c/97528b1622b8f129574d29a571c32a3c85eafa3c https://git.kernel.org/stable/c/fe747d7112283f47169e9c16e751179a9b38611e