# CVE-2022-49333: net/mlx5: E-Switch, pair only capable devices

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-02-26T02:10:52.081Z
- **Modified:** 2026-06-17T05:17:44.820Z

## Who should check

- Anyone running Linux \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< 0cef0b7eb044bb8cfdaff4c1db55a8fd442f6bc9; \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< cdbcdddb8076a09aa6ddaf20fd911fc787dca0e5; \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< 3008e6a0049361e731b803c60fe8f3ab44e1d73f; 4d253ea99fbac316cbe4bafaf36087b592c2cd49; \>= 5.13.8, \< 5.14
- Anyone running Linux 5.14

## Description

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

net/mlx5: E-Switch, pair only capable devices

OFFLOADS paring using devcom is possible only on devices
that support LAG. Filter based on lag capabilities.

This fixes an issue where mlx5\_get\_next\_phys\_dev() was
called without holding the interface lock.

This issue was found when commit
bc4c2f2e0179 ("net/mlx5: Lag, filter non compatible devices")
added an assert that verifies the interface lock is held.

WARNING: CPU: 9 PID: 1706 at drivers/net/ethernet/mellanox/mlx5/core/dev.c:642 mlx5\_get\_next\_phys\_dev+0xd2/0x100 \[mlx5\_core\]
Modules linked in: mlx5\_vdpa vringh vhost\_iotlb vdpa mlx5\_ib mlx5\_core xt\_conntrack xt\_MASQUERADE nf\_conntrack\_netlink nfnetlink xt\_addrtype iptable\_nat nf\_nat br\_netfilter rpcrdma rdma\_ucm ib\_iser libiscsi scsi\_transport\_iscsi rdma\_cm iw\_cm ib\_umad ib\_ipoib ib\_cm ib\_uverbs ib\_core overlay fuse \[last unloaded: mlx5\_core\]
CPU: 9 PID: 1706 Comm: devlink Not tainted 5.18.0-rc7+ \#11
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
RIP: 0010:mlx5\_get\_next\_phys\_dev+0xd2/0x100 \[mlx5\_core\]
Code: 02 00 75 48 48 8b 85 80 04 00 00 5d c3 31 c0 5d c3 be ff ff ff ff 48 c7 c7 08 41 5b a0 e8 36 87 28 e3 85 c0 0f 85 6f ff ff ff \<0f\> 0b e9 68 ff ff ff 48 c7 c7 0c 91 cc 84 e8 cb 36 6f e1 e9 4d ff
RSP: 0018:ffff88811bf47458 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88811b398000 RCX: 0000000000000001
RDX: 0000000080000000 RSI: ffffffffa05b4108 RDI: ffff88812daaaa78
RBP: ffff88812d050380 R08: 0000000000000001 R09: ffff88811d6b3437
R10: 0000000000000001 R11: 00000000fddd3581 R12: ffff88815238c000
R13: ffff88812d050380 R14: ffff8881018aa7e0 R15: ffff88811d6b3428
FS:  00007fc82e18ae80(0000) GS:ffff88842e080000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9630d1b421 CR3: 0000000149802004 CR4: 0000000000370ea0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 mlx5\_esw\_offloads\_devcom\_event+0x99/0x3b0 \[mlx5\_core\]
 mlx5\_devcom\_send\_event+0x167/0x1d0 \[mlx5\_core\]
 esw\_offloads\_enable+0x1153/0x1500 \[mlx5\_core\]
 ? mlx5\_esw\_offloads\_controller\_valid+0x170/0x170 \[mlx5\_core\]
 ? wait\_for\_completion\_io\_timeout+0x20/0x20
 ? mlx5\_rescan\_drivers\_locked+0x318/0x810 \[mlx5\_core\]
 mlx5\_eswitch\_enable\_locked+0x586/0xc50 \[mlx5\_core\]
 ? mlx5\_eswitch\_disable\_pf\_vf\_vports+0x1d0/0x1d0 \[mlx5\_core\]
 ? mlx5\_esw\_try\_lock+0x1b/0xb0 \[mlx5\_core\]
 ? mlx5\_eswitch\_enable+0x270/0x270 \[mlx5\_core\]
 ? \_\_debugfs\_create\_file+0x260/0x3e0
 mlx5\_devlink\_eswitch\_mode\_set+0x27e/0x870 \[mlx5\_core\]
 ? mutex\_lock\_io\_nested+0x12c0/0x12c0
 ? esw\_offloads\_disable+0x250/0x250 \[mlx5\_core\]
 ? devlink\_nl\_cmd\_trap\_get\_dumpit+0x470/0x470
 ? rcu\_read\_lock\_sched\_held+0x3f/0x70
 devlink\_nl\_cmd\_eswitch\_set\_doit+0x217/0x620

## Affected and fixed versions

- Linux: \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< 0cef0b7eb044bb8cfdaff4c1db55a8fd442f6bc9; \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< cdbcdddb8076a09aa6ddaf20fd911fc787dca0e5; \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< 3008e6a0049361e731b803c60fe8f3ab44e1d73f; 4d253ea99fbac316cbe4bafaf36087b592c2cd49; \>= 5.13.8, \< 5.14 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 5.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49333.md
Affected: Linux >= dd3fddb82780bfa24124834edd90bbc63bd689cc, < 0cef0b7eb044bb8cfdaff4c1db55a8fd442f6bc9; >= dd3fddb82780bfa24124834edd90bbc63bd689cc, < cdbcdddb8076a09aa6ddaf20fd911fc787dca0e5; >= dd3fddb82780bfa24124834edd90bbc63bd689cc, < 3008e6a0049361e731b803c60fe8f3ab44e1d73f; 4d253ea99fbac316cbe4bafaf3…
Fixed in: Linux 0cef0b7eb044bb8cfdaff4c1db55a8fd442f6bc9, Linux 3008e6a0049361e731b803c60fe8f3ab44e1d73f, Linux 5.14

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-49333 being exploited?

There is no confirmed exploitation: CVE-2022-49333 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49333?

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

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

Linux \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< 0cef0b7eb044bb8cfdaff4c1db55a8fd442f6bc9; \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< cdbcdddb8076a09aa6ddaf20fd911fc787dca0e5; \>= dd3fddb82780bfa24124834edd90bbc63bd689cc, \< 3008e6a0049361e731b803c60fe8f3ab44e1d73f; 4d253ea99fbac316cbe4bafaf36087b592c2cd49; \>= 5.13.8, \< 5.14; Linux 5.14.

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

Yes. Fixed in Linux 0cef0b7eb044bb8cfdaff4c1db55a8fd442f6bc9, Linux 3008e6a0049361e731b803c60fe8f3ab44e1d73f, Linux 5.14. Upgrade Linux to 5.14 or later.

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

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/0cef0b7eb044bb8cfdaff4c1db55a8fd442f6bc9>
- patch: <https://git.kernel.org/stable/c/cdbcdddb8076a09aa6ddaf20fd911fc787dca0e5>
- patch: <https://git.kernel.org/stable/c/3008e6a0049361e731b803c60fe8f3ab44e1d73f>

## 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-49333>

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