{"id":"CVE-2026-81005","summary":"ipmi: si: Fix NULL pointer dereference after failed registration","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nipmi: si: Fix NULL pointer dereference after failed registration\n\ntry_smi_init() allocates new_smi-\u003esi_sm and later calls\nipmi_register_smi_mod(), which maps to ipmi_add_smi().\n\nDuring ipmi_add_smi(), the upper IPMI message handler obtains the\ninitial BMC device information through __bmc_get_device_id(). This can\nfail if the BMC does not return a successful response to the Get Device\nID command.\n\nWhen the BMC returns a nonzero completion code, the device-id helper\nretries the command and eventually returns -EIO if the device ID still\ncannot be fetched.\n\nOn this failure path, ipmi_add_smi() logs \"Unable to get the device id\"\nand goes to out_err_started, where it invokes the lower driver's\nshutdown callback. try_smi_init() then logs the returned registration\nfailure:\n\n ipmi_si IPI0001:00: IPMI message handler: Unable to get the device id: -5\n ipmi_si IPI0001:00: Unable to register device: error -5\n\nFor ipmi_si, the shutdown callback is shutdown_smi(), which cleans up\nthe SI state machine data, frees smi_info-\u003esi_sm, and sets\nsmi_info-\u003esi_sm and smi_info-\u003eintf to NULL.\n\nHowever, intf-\u003ein_shutdown is not set on this failed-registration\nrollback path. Therefore, the asynchronous redo_bmc_reg work item can\nstill retry BMC device-id probing after the lower driver has already\ncleared its SI state machine data. In the observed case, that retry path\nreached start_next_msg(), which passed the NULL smi_info-\u003esi_sm pointer\nto the selected KCS state machine handler:\n\nBUG: unable to handle kernel NULL pointer dereference at 0000000000000000\nWorkqueue: events redo_bmc_reg [ipmi_msghandler]\nRIP: start_kcs_transaction+0x2c/0x190 [ipmi_si]\nCall Trace:\n start_next_msg+0x50/0x80 [ipmi_si]\n check_start_timer_thread.part.9+0x3b/0x50 [ipmi_si]\n sender+0x69/0x80 [ipmi_si]\n i_ipmi_request+0x2ac/0x9d0 [ipmi_msghandler]\n __get_device_id.isra.29+0xaa/0x180 [ipmi_msghandler]\n __bmc_get_device_id+0xef/0x950 [ipmi_msghandler]\n redo_bmc_reg+0x52/0x60 [ipmi_msghandler]\n process_one_work+0x1a7/0x360\n\nSet intf-\u003ein_shutdown on the out_err_started path before invoking the\nlower driver's shutdown callback. This prevents later redo_bmc_reg\nretries from using an interface whose lower driver state has been\ncleaned up, and applies the same shutdown state to other IPMI interfaces\nas well.","modified":"2026-11-13T04:07:01.340986816Z","published":"2026-09-11T19:42:57.460Z","related":["SUSE-SU-2026:24550-1","SUSE-SU-2026:24619-1","SUSE-SU-2026:24643-1","SUSE-SU-2026:24648-1","SUSE-SU-2026:24651-1","SUSE-SU-2026:24662-1","SUSE-SU-2026:4687-1","SUSE-SU-2026:5091-1","openSUSE-SU-2026:11805-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81005.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/53af3a8bae0a93c1342e1b5519812203332aca8e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d920a75df9a83ab096b3cde7a643b656e4fdfeb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/75ecc80ef0614a9f8441ab476fb748d3e919bea8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ada17dd4c4ffd6b94621e735d77eda196ce118f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b11a1e545ad7a2f8f9ba7276b4ae9429c3399456"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d377bf743f29b41729a084a633874ef9c1a13c6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4be659a3e56f4eb16039ab8a1162efea086a714"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f390b0e781ca689515b659f94ef05f01497ed833"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81005.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81005"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2512e40e48d21d8bac09f7e91d2c3ceb2d3b50b2"},{"fixed":"75ecc80ef0614a9f8441ab476fb748d3e919bea8"},{"fixed":"b11a1e545ad7a2f8f9ba7276b4ae9429c3399456"},{"fixed":"f390b0e781ca689515b659f94ef05f01497ed833"},{"fixed":"d377bf743f29b41729a084a633874ef9c1a13c6a"},{"fixed":"d4be659a3e56f4eb16039ab8a1162efea086a714"},{"fixed":"53af3a8bae0a93c1342e1b5519812203332aca8e"},{"fixed":"8ada17dd4c4ffd6b94621e735d77eda196ce118f"},{"fixed":"6d920a75df9a83ab096b3cde7a643b656e4fdfeb"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"288bd736c8a027040fc261c86a87b65e7bc3f6fa"}]}],"versions":["v4.18.20","v4.18.19","v4.18.18","v4.18.17","v4.18.16","v4.18.15","v4.18.14","v4.18.13","v4.18.12","v4.18.11","v4.18.10"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-81005.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.18.10"},{"fixed":"4.19"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"5.10.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.221"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.109"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-81005.json"}}],"schema_version":"1.9.2"}