{"id":"CVE-2026-139220","aliases":["CVE-2026-139220"],"related":[],"kind":"vulnerability","state":"published","title":"net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference","summary":"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() -> hbg_phy_connect() -> phy_connect_direct() ->\nphy_attach_direct() -> phy_link_topo_add_phy(), which invokes\nnetdev_need_ops_lock(). With CONFIG_NET_SHAPER enabled, this function\ndereferences dev->netdev_ops->net_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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() -> hbg_phy_connect() -> phy_connect_direct() ->\nphy_attach_direct() -> phy_link_topo_add_phy(), which invokes\nnetdev_need_ops_lock(). With CONFIG_NET_SHAPER enabled, this function\ndereferences dev->netdev_ops->net_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.","source":"cvelist"}],"published":"2026-11-30T13:32:42.601Z","modified":"2026-11-30T14:18:42.310Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ff4edac6e9bd2dc7f14e86f6880e542ac37679bd","fixed":"1dd0c65d3452ffe663c3e9d8812a41849b2edb9e","status":"affected"},{"type":"git","introduced":"ff4edac6e9bd2dc7f14e86f6880e542ac37679bd","fixed":"522c7494e7369edd9fbd0a9504b63229b440ed8c","status":"affected"},{"type":"git","introduced":"ff4edac6e9bd2dc7f14e86f6880e542ac37679bd","fixed":"9b8ae9aaa1b8e2b6c1cbf5613d3a37923cf53bc5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/1dd0c65d3452ffe663c3e9d8812a41849b2edb9e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/522c7494e7369edd9fbd0a9504b63229b440ed8c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b8ae9aaa1b8e2b6c1cbf5613d3a37923cf53bc5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139220","url":"https://www.cve.org/CVERecord?id=CVE-2026-139220","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:42.601Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139220","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139220","licence":"Public domain","modified":"2026-11-30T14:18:42.310Z"}],"updatedAt":"2026-11-30T14:32:56.719Z","epss":{"score":0.00206,"percentile":0.11345,"date":"2026-12-01T12:00:22.000Z"}}