# CVE-2026-23237: platform/x86: classmate-laptop: Add missing NULL pointer checks

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-03-04T14:38:41.815Z
- Modified: 2026-11-05T22:18:07.940Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 529aa8cb0a59367d08883f818e8c47028e819d0d before 993708fc18d0d0919db438361b4e8c1f980a8d1b; from 529aa8cb0a59367d08883f818e8c47028e819d0d before af673209d43b46257540997aba042b90ef3258c0; from 529aa8cb0a59367d08883f818e8c47028e819d0d before eb214804f03c829decf10998e9b7dd26f4c8ab9e; from 529aa8cb0a59367d08883f818e8c47028e819d0d before 9cf4b9b8ad09d6e05307abc4e951cabdff4be652; from 529aa8cb0a59367d08883f818e8c47028e819d0d before da6e06a5fdbabea3870d18c227734b5dea5b3be6; from 529aa8cb0a59367d08883f818e8c47028e819d0d before 97528b1622b8f129574d29a571c32a3c85eafa3c; from 529aa8cb0a59367d08883f818e8c47028e819d0d before fe747d7112283f47169e9c16e751179a9b38611e; 2.6.33 (not affected: before 2.6.33; from 5.10.251 up to 5.10.*; from 5.15.201 up to 5.15.*; from 6.1.164 up to 6.1.*; from 6.6.127 up to 6.6.*; from 6.12.74 up to 6.12.*; from 6.18.13 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 2.6.33.1 before 5.10.251; from 5.11 before 5.15.201; from 5.16 before 6.1.164; from 6.2 before 6.6.127; from 6.7 before 6.12.74; from 6.13 before 6.18.13; 2.6.33; 6.19

## References

- <https://git.kernel.org/stable/c/993708fc18d0d0919db438361b4e8c1f980a8d1b> (patch)
- <https://git.kernel.org/stable/c/af673209d43b46257540997aba042b90ef3258c0> (patch)
- <https://git.kernel.org/stable/c/eb214804f03c829decf10998e9b7dd26f4c8ab9e> (patch)
- <https://git.kernel.org/stable/c/9cf4b9b8ad09d6e05307abc4e951cabdff4be652> (patch)
- <https://git.kernel.org/stable/c/da6e06a5fdbabea3870d18c227734b5dea5b3be6> (patch)
- <https://git.kernel.org/stable/c/97528b1622b8f129574d29a571c32a3c85eafa3c> (patch)
- <https://git.kernel.org/stable/c/fe747d7112283f47169e9c16e751179a9b38611e> (patch)

## Sources

- CVE List: [CVE-2026-23237](https://www.cve.org/CVERecord?id=CVE-2026-23237), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-23237](https://nvd.nist.gov/vuln/detail/CVE-2026-23237), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-23237 · Whole record: https://cve.day/CVE-2026-23237.json · Rebuilt by cve.day 2026-11-25T22:59:15.172Z
