{"id":"CVE-2025-40263","aliases":["CVE-2025-40263"],"related":[],"kind":"vulnerability","state":"published","title":"Input: cros_ec_keyb - fix an invalid memory access","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: cros_ec_keyb - fix an invalid memory access\n\nIf cros_ec_keyb_register_matrix() isn't called (due to\n`buttons_switches_only`) in cros_ec_keyb_probe(), `ckdev->idev` remains\nNULL.  An invalid memory access is observed in cros_ec_keyb_process()\nwhen receiving an EC_MKBP_EVENT_KEY_MATRIX event in cros_ec_keyb_work()\nin such case.\n\n  Unable to handle kernel read from unreadable memory at virtual address 0000000000000028\n  ...\n  x3 : 0000000000000000 x2 : 0000000000000000\n  x1 : 0000000000000000 x0 : 0000000000000000\n  Call trace:\n  input_event\n  cros_ec_keyb_work\n  blocking_notifier_call_chain\n  ec_irq_thread\n\nIt's still unknown about why the kernel receives such malformed event,\nin any cases, the kernel shouldn't access `ckdev->idev` and friends if\nthe driver doesn't intend to initialize them.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: cros_ec_keyb - fix an invalid memory access\n\nIf cros_ec_keyb_register_matrix() isn't called (due to\n`buttons_switches_only`) in cros_ec_keyb_probe(), `ckdev->idev` remains\nNULL.  An invalid memory access is observed in cros_ec_keyb_process()\nwhen receiving an EC_MKBP_EVENT_KEY_MATRIX event in cros_ec_keyb_work()\nin such case.\n\n  Unable to handle kernel read from unreadable memory at virtual address 0000000000000028\n  ...\n  x3 : 0000000000000000 x2 : 0000000000000000\n  x1 : 0000000000000000 x0 : 0000000000000000\n  Call trace:\n  input_event\n  cros_ec_keyb_work\n  blocking_notifier_call_chain\n  ec_irq_thread\n\nIt's still unknown about why the kernel receives such malformed event,\nin any cases, the kernel shouldn't access `ckdev->idev` and friends if\nthe driver doesn't intend to initialize them.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nEntrada: cros_ec_keyb - corrige un acceso a memoria no válido\n\nSi cros_ec_keyb_register_matrix() no es llamada (debido a 'buttons_switches_only') en cros_ec_keyb_probe(), 'ckdev -> idev' permanece NULL. Se observa un acceso a memoria no válido en cros_ec_keyb_process() al recibir un evento EC_MKBP_EVENT_KEY_MATRIX en cros_ec_keyb_work() en tal caso.\n\nNo se puede manejar la lectura del kernel desde memoria ilegible en la dirección virtual 0000000000000028\n...\nx3 : 0000000000000000 x2 : 0000000000000000\nx1 : 0000000000000000 x0 : 0000000000000000\nRastro de llamada:\ninput_event\ncros_ec_keyb_work\nblocking_notifier_call_chain\nec_irq_thread\n\nAún se desconoce por qué el kernel recibe un evento tan malformado, en cualquier caso, el kernel no debería acceder a 'ckdev -> idev' y sus relacionados si el controlador no tiene la intención de inicializarlos.","source":"nvd"}],"published":"2025-12-04T16:08:23.327Z","modified":"2026-10-18T18:10:00.100Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ca1eadbfcd36bec73f2a2111c28e8c7e9e8ae6c0","fixed":"d74864291cb8bd784d44d1d02e87109cf88666bb","status":"affected"},{"type":"git","introduced":"ca1eadbfcd36bec73f2a2111c28e8c7e9e8ae6c0","fixed":"9cf59f4724a9ee06ebb06c76b8678ac322e850b7","status":"affected"},{"type":"git","introduced":"ca1eadbfcd36bec73f2a2111c28e8c7e9e8ae6c0","fixed":"6d81068685154535af06163eb585d6d9663ec7ec","status":"affected"},{"type":"git","introduced":"ca1eadbfcd36bec73f2a2111c28e8c7e9e8ae6c0","fixed":"2d251c15c27e2dd16d6318425d2f7260cbd47d39","status":"affected"},{"type":"git","introduced":"ca1eadbfcd36bec73f2a2111c28e8c7e9e8ae6c0","fixed":"e08969c4d65ac31297fcb4d31d4808c789152f68","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.118","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.60","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.10","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/d74864291cb8bd784d44d1d02e87109cf88666bb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9cf59f4724a9ee06ebb06c76b8678ac322e850b7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d81068685154535af06163eb585d6d9663ec7ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d251c15c27e2dd16d6318425d2f7260cbd47d39","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e08969c4d65ac31297fcb4d31d4808c789152f68","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40263","url":"https://www.cve.org/CVERecord?id=CVE-2025-40263","licence":"CVE Terms of Use","modified":"2026-06-02T13:00:15.067Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40263","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40263","licence":"Public domain","modified":"2026-10-18T18:10:00.100Z"}],"updatedAt":"2026-11-25T22:59:08.282Z","epss":{"score":0.00205,"percentile":0.11033,"date":"2026-12-02T12:00:21.000Z"}}