# CVE-2024-50136: net/mlx5: Unregister notifier on eswitch init failure

> 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, CNA) `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 15, 2026-11-26)
- **Published:** 2024-11-05T17:11:00.231Z
- **Modified:** 2026-06-17T08:03:40.947Z

## Who should check

- Anyone running Linux \>= 0aa1e83a20f12e9eaad32f72212ebc7fe0c29c95, \< e58fb7ddbab6635191c26dea1af26b91cce00866; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 9f2ccb6f3888bec45c00121ee43e4e72423b12c1; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 599147722c5778c96292e2fbff4103abbdb45b1f; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 1da9cfd6c41c2e6bbe624d0568644e1521c33e12; dc426bd9d813aa5754ce35adaa6f97f0585c06fc; \>= 6.1.60, \< 6.1.115; \>= 6.5.9, \< 6.6
- Anyone running Linux 6.6

## Description

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

net/mlx5: Unregister notifier on eswitch init failure

It otherwise remains registered and a subsequent attempt at eswitch
enabling might trigger warnings of the sort:

\[  682.589148\] ------------\[ cut here \]------------
\[  682.590204\] notifier callback eswitch\_vport\_event \[mlx5\_core\] already registered
\[  682.590256\] WARNING: CPU: 13 PID: 2660 at kernel/notifier.c:31 notifier\_chain\_register+0x3e/0x90
\[...snipped\]
\[  682.610052\] Call Trace:
\[  682.610369\]  \<TASK\>
\[  682.610663\]  ? \_\_warn+0x7c/0x110
\[  682.611050\]  ? notifier\_chain\_register+0x3e/0x90
\[  682.611556\]  ? report\_bug+0x148/0x170
\[  682.611977\]  ? handle\_bug+0x36/0x70
\[  682.612384\]  ? exc\_invalid\_op+0x13/0x60
\[  682.612817\]  ? asm\_exc\_invalid\_op+0x16/0x20
\[  682.613284\]  ? notifier\_chain\_register+0x3e/0x90
\[  682.613789\]  atomic\_notifier\_chain\_register+0x25/0x40
\[  682.614322\]  mlx5\_eswitch\_enable\_locked+0x1d4/0x3b0 \[mlx5\_core\]
\[  682.614965\]  mlx5\_eswitch\_enable+0xc9/0x100 \[mlx5\_core\]
\[  682.615551\]  mlx5\_device\_enable\_sriov+0x25/0x340 \[mlx5\_core\]
\[  682.616170\]  mlx5\_core\_sriov\_configure+0x50/0x170 \[mlx5\_core\]
\[  682.616789\]  sriov\_numvfs\_store+0xb0/0x1b0
\[  682.617248\]  kernfs\_fop\_write\_iter+0x117/0x1a0
\[  682.617734\]  vfs\_write+0x231/0x3f0
\[  682.618138\]  ksys\_write+0x63/0xe0
\[  682.618536\]  do\_syscall\_64+0x4c/0x100
\[  682.618958\]  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53

## Affected and fixed versions

- Linux: \>= 0aa1e83a20f12e9eaad32f72212ebc7fe0c29c95, \< e58fb7ddbab6635191c26dea1af26b91cce00866; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 9f2ccb6f3888bec45c00121ee43e4e72423b12c1; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 599147722c5778c96292e2fbff4103abbdb45b1f; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 1da9cfd6c41c2e6bbe624d0568644e1521c33e12; dc426bd9d813aa5754ce35adaa6f97f0585c06fc; \>= 6.1.60, \< 6.1.115; \>= 6.5.9, \< 6.6 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 6.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-50136.md
Affected: Linux >= 0aa1e83a20f12e9eaad32f72212ebc7fe0c29c95, < e58fb7ddbab6635191c26dea1af26b91cce00866; >= 7624e58a8b3a251e3e5108b32f2183b34453db32, < 9f2ccb6f3888bec45c00121ee43e4e72423b12c1; >= 7624e58a8b3a251e3e5108b32f2183b34453db32, < 599147722c5778c96292e2fbff4103abbdb45b1f; >= 7624e58a8b3a251e3e5108b…
Fixed in: Linux 9f2ccb6f3888bec45c00121ee43e4e72423b12c1, Linux 599147722c5778c96292e2fbff4103abbdb45b1f, Linux 1da9cfd6c41c2e6bbe624d0568644e1521c33e12, Linux 6.1.115, Linux 6.6

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-2024-50136 being exploited?

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

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

### Which versions are affected by CVE-2024-50136?

Linux \>= 0aa1e83a20f12e9eaad32f72212ebc7fe0c29c95, \< e58fb7ddbab6635191c26dea1af26b91cce00866; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 9f2ccb6f3888bec45c00121ee43e4e72423b12c1; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 599147722c5778c96292e2fbff4103abbdb45b1f; \>= 7624e58a8b3a251e3e5108b32f2183b34453db32, \< 1da9cfd6c41c2e6bbe624d0568644e1521c33e12; dc426bd9d813aa5754ce35adaa6f97f0585c06fc; \>= 6.1.60, \< 6.1.115; \>= 6.5.9, \< 6.6; Linux 6.6.

### Is there a fix for CVE-2024-50136?

Yes. Fixed in Linux 9f2ccb6f3888bec45c00121ee43e4e72423b12c1, Linux 599147722c5778c96292e2fbff4103abbdb45b1f, Linux 1da9cfd6c41c2e6bbe624d0568644e1521c33e12, Linux 6.1.115, Linux 6.6. Upgrade Linux to 6.6 or later.

### How do I check if I'm affected by CVE-2024-50136?

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/e58fb7ddbab6635191c26dea1af26b91cce00866>
- patch: <https://git.kernel.org/stable/c/9f2ccb6f3888bec45c00121ee43e4e72423b12c1>
- patch: <https://git.kernel.org/stable/c/599147722c5778c96292e2fbff4103abbdb45b1f>
- patch: <https://git.kernel.org/stable/c/1da9cfd6c41c2e6bbe624d0568644e1521c33e12>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## 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-2024-50136>

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