CVE-2025-40263 Details
Description
In the Linux kernel, the following vulnerability has been resolved: Input: cros_ec_keyb - fix an invalid memory access If cros_ec_keyb_register_matrix() isn't called (due to `buttons_switches_only`) in cros_ec_keyb_probe(), `ckdev->idev` remains NULL. An invalid memory access is observed in cros_ec_keyb_process() when receiving an EC_MKBP_EVENT_KEY_MATRIX event in cros_ec_keyb_work() in such case. Unable to handle kernel read from unreadable memory at virtual address 0000000000000028 ... x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: input_event cros_ec_keyb_work blocking_notifier_call_chain ec_irq_thread It's still unknown about why the kernel receives such malformed event, in any cases, the kernel shouldn't access `ckdev->idev` and friends if the driver doesn't intend to initialize them.
A vulnerability has been identified in the Linux kernel's Cros EC keyboard driver, specifically in the handling of key matrix events. When the function 'cros_ec_keyb_register_matrix()' is not called due to the 'buttons_switches_only' condition, the device input interface remains uninitialized. This oversight leads to an invalid memory access in 'cros_ec_keyb_process()', triggered by an 'EC_MKBP_EVENT_KEY_MATRIX' event. The kernel attempts to read from a virtual memory address that is not accessible, causing a fault. The issue arises because the driver does not properly initialize the necessary components before processing events, leaving the system vulnerable to memory access violations.
Users can ensure that the Cros EC keyboard driver properly initializes the key matrix by avoiding the 'buttons_switches_only' condition when loading the driver.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cert-portal.siemens.com/productcert/html/ssa-253495.html | siemens-SADP | |
| https://git.kernel.org/stable/c/2d251c15c27e2dd16d6318425d2f7260cbd47d39 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6d81068685154535af06163eb585d6d9663ec7ec | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/9cf59f4724a9ee06ebb06c76b8678ac322e850b7 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d74864291cb8bd784d44d1d02e87109cf88666bb | kernel.org | |
| https://git.kernel.org/stable/c/e08969c4d65ac31297fcb4d31d4808c789152f68 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| cros_ec_keyb | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| Jun 2, 2026 | CVE Modified | siemens-SADP |
| Jan 2, 2026 | CVE Modified | kernel.org |
| Dec 6, 2025 | CVE Modified | kernel.org |
| Dec 4, 2025 | New CVE Received | kernel.org |
Volerion