{"id":"CVE-2026-23258","summary":"net: liquidio: Initialize netdev pointer before queue setup","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: liquidio: Initialize netdev pointer before queue setup\n\nIn setup_nic_devices(), the netdev is allocated using alloc_etherdev_mq().\nHowever, the pointer to this structure is stored in oct-\u003eprops[i].netdev\nonly after the calls to netif_set_real_num_rx_queues() and\nnetif_set_real_num_tx_queues().\n\nIf either of these functions fails, setup_nic_devices() returns an error\nwithout freeing the allocated netdev. Since oct-\u003eprops[i].netdev is still\nNULL at this point, the cleanup function liquidio_destroy_nic_device()\nwill fail to find and free the netdev, resulting in a memory leak.\n\nFix this by initializing oct-\u003eprops[i].netdev before calling the queue\nsetup functions. This ensures that the netdev is properly accessible for\ncleanup in case of errors.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","modified":"2026-03-20T12:47:29.021857Z","published":"2026-03-18T17:41:05.080Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23258.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1d4590fde856cb94bd9a46e795c29d8288c238fc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/926ede0c85e1e57c97d64d9612455267d597bb2c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0e57c0b68c9e6f9a8fd7c1167861a5a730eb2f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be109646cdaecab262f6276303b1763468c94378"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0ed6c77ec34050971fd0df2a94dfdea66d09331"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c81a8515fb8c8fb5d0dbc21f48337494bf1d60df"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d028147ae06407cb355245db1774793600670169"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23258.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23258"},{"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":"c33c997346c34ea7b89aec99524ad9632a2f1e0c"},{"fixed":"be109646cdaecab262f6276303b1763468c94378"},{"fixed":"c81a8515fb8c8fb5d0dbc21f48337494bf1d60df"},{"fixed":"a0e57c0b68c9e6f9a8fd7c1167861a5a730eb2f4"},{"fixed":"c0ed6c77ec34050971fd0df2a94dfdea66d09331"},{"fixed":"1d4590fde856cb94bd9a46e795c29d8288c238fc"},{"fixed":"d028147ae06407cb355245db1774793600670169"},{"fixed":"926ede0c85e1e57c97d64d9612455267d597bb2c"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23258.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.18.0"},{"fixed":"5.10.250"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.200"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.124"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.70"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23258.json"}}],"schema_version":"1.7.5"}