# CVE-2022-48746: net/mlx5e: Fix handling of wrong devices during bond netevent

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-06-20T11:13:29.308Z
- **Modified:** 2026-06-17T05:16:04.833Z

## Who should check

- Anyone running Linux \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< a01ee1b8165f4161459b5ec4e728bc7130fe8cd4; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< fe70126da6063c29ca161cdec7ad1dae9af836b3; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< 4fad499d7fece448e7230d5e5b92f6d8a073e0bb; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< ec41332e02bd0acf1f24206867bb6a02f5877a62
- Anyone running Linux 5.8

## Description

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

net/mlx5e: Fix handling of wrong devices during bond netevent

Current implementation of bond netevent handler only check if
the handled netdev is VF representor and it missing a check if
the VF representor is on the same phys device of the bond handling
the netevent.

Fix by adding the missing check and optimizing the check if
the netdev is VF representor so it will not access uninitialized
private data and crashes.

BUG: kernel NULL pointer dereference, address: 000000000000036c
PGD 0 P4D 0
Oops: 0000 \[\#1\] SMP NOPTI
Workqueue: eth3bond0 bond\_mii\_monitor \[bonding\]
RIP: 0010:mlx5e\_is\_uplink\_rep+0xc/0x50 \[mlx5\_core\]
RSP: 0018:ffff88812d69fd60 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8881cf800000 RCX: 0000000000000000
RDX: ffff88812d69fe10 RSI: 000000000000001b RDI: ffff8881cf800880
RBP: ffff8881cf800000 R08: 00000445cabccf2b R09: 0000000000000008
R10: 0000000000000004 R11: 0000000000000008 R12: ffff88812d69fe10
R13: 00000000fffffffe R14: ffff88820c0f9000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88846fb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000000036c CR3: 0000000103d80006 CR4: 0000000000370ea0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 mlx5e\_eswitch\_uplink\_rep+0x31/0x40 \[mlx5\_core\]
 mlx5e\_rep\_is\_lag\_netdev+0x94/0xc0 \[mlx5\_core\]
 mlx5e\_rep\_esw\_bond\_netevent+0xeb/0x3d0 \[mlx5\_core\]
 raw\_notifier\_call\_chain+0x41/0x60
 call\_netdevice\_notifiers\_info+0x34/0x80
 netdev\_lower\_state\_changed+0x4e/0xa0
 bond\_mii\_monitor+0x56b/0x640 \[bonding\]
 process\_one\_work+0x1b9/0x390
 worker\_thread+0x4d/0x3d0
 ? rescuer\_thread+0x350/0x350
 kthread+0x124/0x150
 ? set\_kthread\_struct+0x40/0x40
 ret\_from\_fork+0x1f/0x30

## Affected and fixed versions

- Linux: \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< a01ee1b8165f4161459b5ec4e728bc7130fe8cd4; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< fe70126da6063c29ca161cdec7ad1dae9af836b3; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< 4fad499d7fece448e7230d5e5b92f6d8a073e0bb; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< ec41332e02bd0acf1f24206867bb6a02f5877a62 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48746. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48746.md
Affected: Linux >= 7e51891a237f9ea319f53f9beb83afb0077d88e6, < a01ee1b8165f4161459b5ec4e728bc7130fe8cd4; >= 7e51891a237f9ea319f53f9beb83afb0077d88e6, < fe70126da6063c29ca161cdec7ad1dae9af836b3; >= 7e51891a237f9ea319f53f9beb83afb0077d88e6, < 4fad499d7fece448e7230d5e5b92f6d8a073e0bb; >= 7e51891a237f9ea319f53f9…
Fixed in: Linux 4fad499d7fece448e7230d5e5b92f6d8a073e0bb

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.
```

## FAQ

### Is CVE-2022-48746 being exploited?

There is no confirmed exploitation: CVE-2022-48746 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-2022-48746?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48746?

Linux \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< a01ee1b8165f4161459b5ec4e728bc7130fe8cd4; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< fe70126da6063c29ca161cdec7ad1dae9af836b3; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< 4fad499d7fece448e7230d5e5b92f6d8a073e0bb; \>= 7e51891a237f9ea319f53f9beb83afb0077d88e6, \< ec41332e02bd0acf1f24206867bb6a02f5877a62; Linux 5.8.

### Is there a fix for CVE-2022-48746?

Yes. Fixed in Linux 4fad499d7fece448e7230d5e5b92f6d8a073e0bb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-48746?

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.

## References

- patch: <https://git.kernel.org/stable/c/a01ee1b8165f4161459b5ec4e728bc7130fe8cd4>
- patch: <https://git.kernel.org/stable/c/fe70126da6063c29ca161cdec7ad1dae9af836b3>
- patch: <https://git.kernel.org/stable/c/4fad499d7fece448e7230d5e5b92f6d8a073e0bb>
- patch: <https://git.kernel.org/stable/c/ec41332e02bd0acf1f24206867bb6a02f5877a62>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48746>

HTML: <https://flawdb.com/CVE-2022-48746> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48746>
