{"id":"CVE-2026-139220","summary":"net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference\n\nThe driver assigns netdev_ops after hbg_init(), but hbg_init() calls\nhbg_mdio_init() -\u003e hbg_phy_connect() -\u003e phy_connect_direct() -\u003e\nphy_attach_direct() -\u003e phy_link_topo_add_phy(), which invokes\nnetdev_need_ops_lock(). With CONFIG_NET_SHAPER enabled, this function\ndereferences dev-\u003enetdev_ops-\u003enet_shaper_ops. Since netdev_ops is still\nNULL at this point, a NULL pointer dereference occurs.\n\nMove the netdev_ops assignment before hbg_init() so that\nnetdev_need_ops_lock() can safely access netdev_ops during PHY\nattachment.\n\nThe issue was hit and verified on an evaluation board.","modified":"2026-12-01T21:02:36.924845471Z","published":"2026-11-30T13:32:42.601Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139220.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1dd0c65d3452ffe663c3e9d8812a41849b2edb9e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/522c7494e7369edd9fbd0a9504b63229b440ed8c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b8ae9aaa1b8e2b6c1cbf5613d3a37923cf53bc5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139220.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139220"},{"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":"ff4edac6e9bd2dc7f14e86f6880e542ac37679bd"},{"fixed":"1dd0c65d3452ffe663c3e9d8812a41849b2edb9e"},{"fixed":"522c7494e7369edd9fbd0a9504b63229b440ed8c"},{"fixed":"9b8ae9aaa1b8e2b6c1cbf5613d3a37923cf53bc5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139220.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139220.json"}}],"schema_version":"1.9.2"}