# CVE-2026-53230: net/mlx5: Fix slab-out-of-bounds in mlx5\_query\_nic\_vport\_mac\_list

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

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; 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.17% (percentile 3, 2026-11-26)
- **CWE:** CWE-125, CWE-787
- **Published:** 2026-06-25T08:39:29.210Z
- **Modified:** 2026-10-30T13:19:12.927Z

## Who should check

- Anyone running Linux \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 87149f3e53f3839454b837f87a2ec7c926775a6a; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 41781f2789309462520a93822e946521ed78f97f; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 537d87784e81c3d7037525b99416455cee088cdc; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 0f807764bb122fd63aa45f4229cb1ef2679fbd40; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 2398e497389ed4be43f7cfbab499b49cec7dae1a; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074
- Anyone running Linux 4.5

## Description

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

net/mlx5: Fix slab-out-of-bounds in mlx5\_query\_nic\_vport\_mac\_list

mlx5\_query\_nic\_vport\_mac\_list() sizes its firmware command buffer using
the PF's log\_max\_current\_uc/mc\_list capabilities. When querying a VF
vport with a larger configured max (via devlink), the firmware response
can overflow this buffer:

 BUG: KASAN: slab-out-of-bounds in mlx5\_query\_nic\_vport\_mac\_list+0x453/0x4c0 \[mlx5\_core\]
 Read of size 4 at addr ff1100013ffc8a12 by task kworker/u96:2/385

 CPU: 12 UID: 0 PID: 385 Comm: kworker/u96:2 Not tainted 7.0.0-rc6+ \#1 PREEMPT
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)
 Workqueue: mlx5\_esw\_wq esw\_vport\_change\_handler \[mlx5\_core\]
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x69/0xa0
  print\_report+0x176/0x4e4
  kasan\_report+0xc8/0x100
  mlx5\_query\_nic\_vport\_mac\_list+0x453/0x4c0 \[mlx5\_core\]
  esw\_update\_vport\_addr\_list+0x2e3/0xda0 \[mlx5\_core\]
  esw\_vport\_change\_handle\_locked+0xa1f/0x1060 \[mlx5\_core\]
  esw\_vport\_change\_handler+0x6a/0x90 \[mlx5\_core\]
  process\_one\_work+0x87f/0x15e0
  worker\_thread+0x62b/0x1020
  kthread+0x375/0x490
  ret\_from\_fork+0x4dc/0x810
  ret\_from\_fork\_asm+0x11/0x20
  \</TASK\>

Fix by querying the vport's own HCA caps to size the buffer correctly.
Refactor the function to allocate and return the MAC list internally,
removing the caller's dependency on knowing the correct max.

## Affected and fixed versions

- Linux: \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 87149f3e53f3839454b837f87a2ec7c926775a6a; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 41781f2789309462520a93822e946521ed78f97f; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 537d87784e81c3d7037525b99416455cee088cdc; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 0f807764bb122fd63aa45f4229cb1ef2679fbd40; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 2398e497389ed4be43f7cfbab499b49cec7dae1a; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074 (cvelist)
- Linux: 4.5 (cvelist)

## Mitigation

- Upgrade Linux to 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-53230.md
Affected: Linux >= e16aea2744abea612c27ee0eef606c6a6a8204de, < 87149f3e53f3839454b837f87a2ec7c926775a6a; >= e16aea2744abea612c27ee0eef606c6a6a8204de, < 41781f2789309462520a93822e946521ed78f97f; >= e16aea2744abea612c27ee0eef606c6a6a8204de, < 537d87784e81c3d7037525b99416455cee088cdc; >= e16aea2744abea612c27ee0…
Fixed in: Linux 87149f3e53f3839454b837f87a2ec7c926775a6a, Linux 41781f2789309462520a93822e946521ed78f97f, Linux 537d87784e81c3d7037525b99416455cee088cdc, Linux 0f807764bb122fd63aa45f4229cb1ef2679fbd40, Linux 2398e497389ed4be43f7cfbab499b49cec7dae1a, Linux 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074

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-2026-53230 being exploited?

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

### How serious is CVE-2026-53230?

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

### Which versions are affected by CVE-2026-53230?

Linux \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 87149f3e53f3839454b837f87a2ec7c926775a6a; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 41781f2789309462520a93822e946521ed78f97f; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 537d87784e81c3d7037525b99416455cee088cdc; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 0f807764bb122fd63aa45f4229cb1ef2679fbd40; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 2398e497389ed4be43f7cfbab499b49cec7dae1a; \>= e16aea2744abea612c27ee0eef606c6a6a8204de, \< 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074; Linux 4.5.

### Is there a fix for CVE-2026-53230?

Yes. Fixed in Linux 87149f3e53f3839454b837f87a2ec7c926775a6a, Linux 41781f2789309462520a93822e946521ed78f97f, Linux 537d87784e81c3d7037525b99416455cee088cdc, Linux 0f807764bb122fd63aa45f4229cb1ef2679fbd40, Linux 2398e497389ed4be43f7cfbab499b49cec7dae1a, Linux 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074. Upgrade Linux to 894e036a24a26a6dd7b17d8d3fb5c53ab48a6074 or later.

### How do I check if I'm affected by CVE-2026-53230?

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/41781f2789309462520a93822e946521ed78f97f>
- patch: <https://git.kernel.org/stable/c/537d87784e81c3d7037525b99416455cee088cdc>
- patch: <https://git.kernel.org/stable/c/0f807764bb122fd63aa45f4229cb1ef2679fbd40>
- patch: <https://git.kernel.org/stable/c/2398e497389ed4be43f7cfbab499b49cec7dae1a>
- patch: <https://git.kernel.org/stable/c/894e036a24a26a6dd7b17d8d3fb5c53ab48a6074>
- other: <https://git.kernel.org/stable/c/87149f3e53f3839454b837f87a2ec7c926775a6a>

## 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-2026-53230>

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