CVE-2024-50298
net: enetc: allocate vf_state during PF probes
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 35668e29e979b3a1927d3959cdd87327afd8e5eb; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < ef0edfbe9eeed1fccad7cb705648af5222664944; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < e15c5506dd39885cd047f811a64240e2e8ab401b
- Anyone running Linux 5.1
Vulnerability facts
- Affected
- Linux >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 35668e29e979b3a1927d3959cdd87327afd8e5eb; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < ef0edfbe9eeed1fccad7cb705648af5222664944; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < e15c5506dd39885cd047f811a64240e2e8ab401b; Linux 5.1
- Fixed in
- Linux 35668e29e979b3a1927d3959cdd87327afd8e5eb, Linux 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
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
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 35668e29e979b3a1927d3959cdd87327afd8e5eb; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < ef0edfbe9eeed1fccad7cb705648af5222664944; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < e15c5506dd39885cd047f811a64240e2e8ab401b | — | cvelist |
| Linux | 5.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-50298. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-50298.md Affected: Linux >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 35668e29e979b3a1927d3959cdd87327afd8e5eb; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < ef0edfbe9eeed1fccad7cb705648af5222664944; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c; >= d4fd0404c1c95b17880f254… Fixed in: Linux 35668e29e979b3a1927d3959cdd87327afd8e5eb, Linux 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2024-50298 being exploited?
There is no confirmed exploitation: CVE-2024-50298 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-50298?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-50298?
Linux >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 35668e29e979b3a1927d3959cdd87327afd8e5eb; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < ef0edfbe9eeed1fccad7cb705648af5222664944; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c; >= d4fd0404c1c95b17880f254ebfee3485693fa8ba, < e15c5506dd39885cd047f811a64240e2e8ab401b; Linux 5.1.
Is there a fix for CVE-2024-50298?
Yes. Fixed in Linux 35668e29e979b3a1927d3959cdd87327afd8e5eb, Linux 7eb923f8d4819737c07d6a8d0daef0a4d7f99e0c. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-50298?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.