CVE-2024-50298: net: enetc: allocate vf_state during PF probes
In the Linux kernel, the following vulnerability has been resolved:
net: enetc: allocate vf_state during PF probes
In the previous implementation, vf_state is allocated memory only when VF
is enabled. However, net_device_ops::ndo_set_vf_mac() may be called before
VF is enabled to configure the MAC address of VF. If this is the case,
enetc_pf_set_vf_mac() will access vf_state, resulting in access to a null
pointer. The simplified error log is as follows.
root@ls1028ardb:~# ip link set eno0 vf 1 mac 00:0c:e7:66:77:89
[ 173.543315] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000004
[ 173.637254] pc : enetc_pf_set_vf_mac+0x3c/0x80 Message from sy
[ 173.641973] lr : do_setlink+0x4a8/0xec8
[ 173.732292] Call trace:
[ 173.734740] enetc_pf_set_vf_mac+0x3c/0x80
[ 173.738847] __rtnl_newlink+0x530/0x89c
[ 173.742692] rtnl_newlink+0x50/0x7c
[ 173.746189] rtnetlink_rcv_msg+0x128/0x390
[ 173.750298] netlink_rcv_skb+0x60/0x130
[ 173.754145] rtnetlink_rcv+0x18/0x24
[ 173.757731] netlink_unicast+0x318/0x380
[ 173.761665] netlink_sendmsg+0x17c/0x3c8
Security readout for executives and security teams
Plain-English summary
CVE-2024-50298 is a Linux kernel bug in the ENETC network driver. A local user with permissions to change network VF settings can trigger a null pointer dereference, likely crashing the kernel or affected network subsystem. This is mainly an availability risk, not a data theft or remote compromise issue.
Executive priority
Treat as a targeted availability issue. Prioritize embedded, industrial, and network-facing appliances using ENETC hardware where downtime matters. It is lower urgency than remotely exploitable kernel flaws, but should be included in normal kernel and vendor patch cycles.
Technical view
The ENETC PF driver allocated vf_state only after VFs were enabled. The set-VF-MAC operation can be reached earlier, causing enetc_pf_set_vf_mac() to dereference a null pointer. The CVSS vector is local, low complexity, low privileges, no user interaction, unchanged scope, and high availability impact.
Likely exposure
Exposure is limited to Linux systems using the ENETC driver with PF/VF or SR-IOV management paths. Systems without this hardware or driver path are unlikely to be affected. Siemens advisories reference affected products, so embedded or industrial Linux deployments should be checked against vendor guidance.
Exploitation context
The provided sources do not show active exploitation, and CISA KEV is false. Exploitation requires local access and privileges sufficient to configure network virtual functions. The practical impact is denial of service through a kernel null pointer dereference.
Researcher notes
Evidence is limited to the CVE record, Linux stable commits, and Siemens advisories. The root cause is CWE-476 null pointer dereference in the ENETC PF VF-state lifecycle. No public source in the bundle confirms weaponized exploitation or confidentiality/integrity impact.
Mitigation direction
Apply Linux stable kernel fixes referenced by the kernel.org commits when available for your branch.
Check Siemens product advisories for affected product versions and vendor-specific updates.
Restrict local privileges for network device and SR-IOV/VF configuration.
If patching is delayed, avoid unnecessary VF configuration on affected ENETC interfaces.
Validation and detection
Inventory Linux hosts using ENETC network hardware or drivers.
Identify kernels in affected version ranges from vendor or distribution advisories.
Confirm whether SR-IOV or VF management is enabled on ENETC interfaces.
Verify installed kernel includes the referenced stable fix or vendor backport.
Review Siemens advisories if using Siemens products or firmware.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.