CVE-2026-139220

net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference

The driver assigns netdev_ops after hbg_init(), but hbg_init() calls
hbg_mdio_init() -> hbg_phy_connect() -> phy_connect_direct() ->
phy_attach_direct() -> phy_link_topo_add_phy(), which invokes
netdev_need_ops_lock(). With CONFIG_NET_SHAPER enabled, this function
dereferences dev->netdev_ops->net_shaper_ops. Since netdev_ops is still
NULL at this point, a NULL pointer dereference occurs.

Move the netdev_ops assignment before hbg_init() so that
netdev_need_ops_lock() can safely access netdev_ops during PHY
attachment.

The issue was hit and verified on an evaluation board.

Analysis

AI-generated

Technical impact

The Linux kernel hibmcge network driver performs a netdev_ops assignment after invoking hbg_init(). During this initialization a chain of calls eventually triggers netdev_need_ops_lock(), which, when CONFIG_NET_SHAPER is enabled, dereferences dev->netdev_ops->net_shaper_ops. Because netdev_ops is still NULL at that point, a null pointer dereference occurs, leading to a kernel panic and interruption of all network services. The impact is a denial of service that can disrupt network operation on the affected system.

Affected Systems

Every Linux kernel build that includes the hibmcge driver and has CONFIG_NET_SHAPER enabled is affected. The exact kernel releases are not specified, so any system running a kernel version before the patch that introduced the netdev_ops assignment fix is vulnerable.

Risk and Exploitability

There is no evidence of active exploitation and the EPSS score is not available; the vulnerability is not listed in CISA KEV. The flaw appears to be local or requires direct interaction with the device and its initialization process. While it can cause a system crash, it does not provide remote code execution or privilege escalation. The risk remains moderate, primarily limited to denial of service on affected Linux kernels.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel that incorporates the commit moving netdev_ops assignment before hbg_init()
  • If the system cannot be upgraded immediately, disable the CONFIG_NET_SHAPER configuration or the net_shaper_ops feature for the hibmcge driver to prevent the null pointer dereference
  • Recompile the kernel or apply the specific patch commit locally if a vendor patch is not yet available

Generated by OpenCVE AI on November 30, 2026 at 20:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference The driver assigns netdev_ops after hbg_init(), but hbg_init() calls hbg_mdio_init() -> hbg_phy_connect() -> phy_connect_direct() -> phy_attach_direct() -> phy_link_topo_add_phy(), which invokes netdev_need_ops_lock(). With CONFIG_NET_SHAPER enabled, this function dereferences dev->netdev_ops->net_shaper_ops. Since netdev_ops is still NULL at this point, a NULL pointer dereference occurs. Move the netdev_ops assignment before hbg_init() so that netdev_need_ops_lock() can safely access netdev_ops during PHY attachment. The issue was hit and verified on an evaluation board.
Title net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM