# CVE-2024-26830: i40e: Do not allow untrusted VF to remove administratively set MAC

- Severity: High 8.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-04-17T09:43:53.643Z
- Modified: 2026-08-05T11:27:42.789Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

i40e: Do not allow untrusted VF to remove administratively set MAC

Currently when PF administratively sets VF's MAC address and the VF
is put down (VF tries to delete all MACs) then the MAC is removed
from MAC filters and primary VF MAC is zeroed.

Do not allow untrusted VF to remove primary MAC when it was set
administratively by PF.

Reproducer:
1) Create VF
2) Set VF interface up
3) Administratively set the VF's MAC
4) Put VF interface down

[root@host ~]# echo 1 > /sys/class/net/enp2s0f0/device/sriov_numvfs
[root@host ~]# ip link set enp2s0f0v0 up
[root@host ~]# ip link set enp2s0f0 vf 0 mac fe:6c:b5:da:c7:7d
[root@host ~]# ip link show enp2s0f0
23: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 3c:ec:ef:b7:dd:04 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether fe:6c:b5:da:c7:7d brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off
[root@host ~]# ip link set enp2s0f0v0 down
[root@host ~]# ip link show enp2s0f0
23: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 3c:ec:ef:b7:dd:04 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off

(As written by CVE List.)

## Affected

- Linux Linux: from 700bbf6c1f9e4ab055528d5ab4ac5815fe4a6c1b before 1c981792e4ccbc134b468797acdd7781959e6893; from 700bbf6c1f9e4ab055528d5ab4ac5815fe4a6c1b before be147926140ac48022c9605d7ab0a67387e4b404; from 700bbf6c1f9e4ab055528d5ab4ac5815fe4a6c1b before d250a81ba813a93563be68072c563aa1e346346d; from 700bbf6c1f9e4ab055528d5ab4ac5815fe4a6c1b before 73d9629e1c8c1982f13688c4d1019c3994647ccc; 3.14 (not affected: before 3.14; from 6.1.79 up to 6.1.*; from 6.6.18 up to 6.6.*; from 6.7.6 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 3.14 before 6.1.79; from 6.2 before 6.6.18; from 6.7 before 6.7.6; 6.8

## Every score

- Linux: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1c981792e4ccbc134b468797acdd7781959e6893> (patch)
- <https://git.kernel.org/stable/c/be147926140ac48022c9605d7ab0a67387e4b404> (patch)
- <https://git.kernel.org/stable/c/d250a81ba813a93563be68072c563aa1e346346d> (patch)
- <https://git.kernel.org/stable/c/73d9629e1c8c1982f13688c4d1019c3994647ccc> (patch)

## Sources

- CVE List: [CVE-2024-26830](https://www.cve.org/CVERecord?id=CVE-2024-26830), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26830](https://nvd.nist.gov/vuln/detail/CVE-2024-26830), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26830 · Whole record: https://cve.day/CVE-2024-26830.json · Rebuilt by cve.day 2026-11-25T22:58:39.341Z
