# CVE-2024-50146: net/mlx5e: Don't call cleanup on profile rollback 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, 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 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-11-07T09:31:23.123Z
- **Modified:** 2026-11-05T21:17:33.350Z

## Who should check

- Anyone running Linux \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< db84cb4c8c565e6d4de84b23c2818b63991adfdd; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< d6fe973c8873c998734a050f366b28facc03d32a; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< 3955b77494c3c7d14873b1db67e7e00c46a714db; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0
- Anyone running Linux 5.12

## Description

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

net/mlx5e: Don't call cleanup on profile rollback failure

When profile rollback fails in mlx5e\_netdev\_change\_profile, the netdev
profile var is left set to NULL. Avoid a crash when unloading the driver
by not calling profile-\>cleanup in such a case.

This was encountered while testing, with the original trigger that
the wq rescuer thread creation got interrupted (presumably due to
Ctrl+C-ing modprobe), which gets converted to ENOMEM (-12) by
mlx5e\_priv\_init, the profile rollback also fails for the same reason
(signal still active) so the profile is left as NULL, leading to a crash
later in \_mlx5e\_remove.

 \[  732.473932\] mlx5\_core 0000:08:00.1: E-Switch: Unload vfs: mode(OFFLOADS), nvfs(2), necvfs(0), active vports(2)
 \[  734.525513\] workqueue: Failed to create a rescuer kthread for wq "mlx5e": -EINTR
 \[  734.557372\] mlx5\_core 0000:08:00.1: mlx5e\_netdev\_init\_profile:6235:(pid 6086): mlx5e\_priv\_init failed, err=-12
 \[  734.559187\] mlx5\_core 0000:08:00.1 eth3: mlx5e\_netdev\_change\_profile: new profile init failed, -12
 \[  734.560153\] workqueue: Failed to create a rescuer kthread for wq "mlx5e": -EINTR
 \[  734.589378\] mlx5\_core 0000:08:00.1: mlx5e\_netdev\_init\_profile:6235:(pid 6086): mlx5e\_priv\_init failed, err=-12
 \[  734.591136\] mlx5\_core 0000:08:00.1 eth3: mlx5e\_netdev\_change\_profile: failed to rollback to orig profile, -12
 \[  745.537492\] BUG: kernel NULL pointer dereference, address: 0000000000000008
 \[  745.538222\] \#PF: supervisor read access in kernel mode
\<snipped\>
 \[  745.551290\] Call Trace:
 \[  745.551590\]  \<TASK\>
 \[  745.551866\]  ? \_\_die+0x20/0x60
 \[  745.552218\]  ? page\_fault\_oops+0x150/0x400
 \[  745.555307\]  ? exc\_page\_fault+0x79/0x240
 \[  745.555729\]  ? asm\_exc\_page\_fault+0x22/0x30
 \[  745.556166\]  ? mlx5e\_remove+0x6b/0xb0 \[mlx5\_core\]
 \[  745.556698\]  auxiliary\_bus\_remove+0x18/0x30
 \[  745.557134\]  device\_release\_driver\_internal+0x1df/0x240
 \[  745.557654\]  bus\_remove\_device+0xd7/0x140
 \[  745.558075\]  device\_del+0x15b/0x3c0
 \[  745.558456\]  mlx5\_rescan\_drivers\_locked.part.0+0xb1/0x2f0 \[mlx5\_core\]
 \[  745.559112\]  mlx5\_unregister\_device+0x34/0x50 \[mlx5\_core\]
 \[  745.559686\]  mlx5\_uninit\_one+0x46/0xf0 \[mlx5\_core\]
 \[  745.560203\]  remove\_one+0x4e/0xd0 \[mlx5\_core\]
 \[  745.560694\]  pci\_device\_remove+0x39/0xa0
 \[  745.561112\]  device\_release\_driver\_internal+0x1df/0x240
 \[  745.561631\]  driver\_detach+0x47/0x90
 \[  745.562022\]  bus\_remove\_driver+0x84/0x100
 \[  745.562444\]  pci\_unregister\_driver+0x3b/0x90
 \[  745.562890\]  mlx5\_cleanup+0xc/0x1b \[mlx5\_core\]
 \[  745.563415\]  \_\_x64\_sys\_delete\_module+0x14d/0x2f0
 \[  745.563886\]  ? kmem\_cache\_free+0x1b0/0x460
 \[  745.564313\]  ? lockdep\_hardirqs\_on\_prepare+0xe2/0x190
 \[  745.564825\]  do\_syscall\_64+0x6d/0x140
 \[  745.565223\]  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
 \[  745.565725\] RIP: 0033:0x7f1579b1288b

## Affected and fixed versions

- Linux: \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< db84cb4c8c565e6d4de84b23c2818b63991adfdd; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< d6fe973c8873c998734a050f366b28facc03d32a; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< 3955b77494c3c7d14873b1db67e7e00c46a714db; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0 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-50146. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50146.md
Affected: Linux >= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, < db84cb4c8c565e6d4de84b23c2818b63991adfdd; >= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, < d6fe973c8873c998734a050f366b28facc03d32a; >= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, < 3955b77494c3c7d14873b1db67e7e00c46a714db; >= 3ef14e463f6ed0218710f56…
Fixed in: Linux 3955b77494c3c7d14873b1db67e7e00c46a714db, Linux 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0

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

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

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

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

Linux \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< db84cb4c8c565e6d4de84b23c2818b63991adfdd; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< d6fe973c8873c998734a050f366b28facc03d32a; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< 3955b77494c3c7d14873b1db67e7e00c46a714db; \>= 3ef14e463f6ed0218710f56b97e1a7d0448784d2, \< 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0; Linux 5.12.

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

Yes. Fixed in Linux 3955b77494c3c7d14873b1db67e7e00c46a714db, Linux 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0. Upgrade Linux to 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0 or later.

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

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/3955b77494c3c7d14873b1db67e7e00c46a714db>
- patch: <https://git.kernel.org/stable/c/4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0>
- other: <https://git.kernel.org/stable/c/db84cb4c8c565e6d4de84b23c2818b63991adfdd>
- other: <https://git.kernel.org/stable/c/d6fe973c8873c998734a050f366b28facc03d32a>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/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-50146>

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