# CVE-2021-47164: net/mlx5e: Fix null deref accessing lag dev

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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-03-25T09:16:17.592Z
- Modified: 2026-06-17T04:16:48.510Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

net/mlx5e: Fix null deref accessing lag dev

It could be the lag dev is null so stop processing the event.
In bond_enslave() the active/backup slave being set before setting the
upper dev so first event is without an upper dev.
After setting the upper dev with bond_master_upper_dev_link() there is
a second event and in that event we have an upper dev.

(As written by CVE List.)

## Affected

- Linux Linux: from 7e51891a237f9ea319f53f9beb83afb0077d88e6 before 2e4b0b95a489259f9d35a3db17023061f8f3d587; from 7e51891a237f9ea319f53f9beb83afb0077d88e6 before bdfd3593a8248eea6ecfcbf7b47b56b86515672d; from 7e51891a237f9ea319f53f9beb83afb0077d88e6 before 83026d83186bc48bb41ee4872f339b83f31dfc55; 5.8 (not affected: before 5.8; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.8 before 5.10.42; from 5.11 before 5.12.9

## References

- <https://git.kernel.org/stable/c/2e4b0b95a489259f9d35a3db17023061f8f3d587> (patch)
- <https://git.kernel.org/stable/c/bdfd3593a8248eea6ecfcbf7b47b56b86515672d> (patch)
- <https://git.kernel.org/stable/c/83026d83186bc48bb41ee4872f339b83f31dfc55> (patch)

## Sources

- CVE List: [CVE-2021-47164](https://www.cve.org/CVERecord?id=CVE-2021-47164), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47164](https://nvd.nist.gov/vuln/detail/CVE-2021-47164), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47164 · Whole record: https://cve.day/CVE-2021-47164.json · Rebuilt by cve.day 2026-11-25T22:58:08.694Z
