CVE-2026-53230

Source
https://cve.org/CVERecord?id=CVE-2026-53230
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53230.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-53230
Downstream
Related
Published
2026-06-25T08:39:29.210Z
Modified
2026-07-08T08:09:46.108860605Z
Severity
  • 8.7 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:H CVSS Calculator
Summary
net/mlx5: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list
Details

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

net/mlx5: Fix slab-out-of-bounds in mlx5querynicvportmac_list

mlx5querynicvportmaclist() sizes its firmware command buffer using the PF's logmaxcurrentuc/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 mlx5querynicvportmaclist+0x453/0x4c0 [mlx5core] 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: mlx5eswwq eswvportchangehandler [mlx5core] Call Trace: <TASK> dumpstacklvl+0x69/0xa0 printreport+0x176/0x4e4 kasanreport+0xc8/0x100 mlx5querynicvportmaclist+0x453/0x4c0 [mlx5core] eswupdatevportaddrlist+0x2e3/0xda0 [mlx5core] eswvportchangehandlelocked+0xa1f/0x1060 [mlx5core] eswvportchangehandler+0x6a/0x90 [mlx5core] processonework+0x87f/0x15e0 workerthread+0x62b/0x1020 kthread+0x375/0x490 retfromfork+0x4dc/0x810 retfromforkasm+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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53230.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e16aea2744abea612c27ee0eef606c6a6a8204de
Fixed
41781f2789309462520a93822e946521ed78f97f
Fixed
537d87784e81c3d7037525b99416455cee088cdc
Fixed
0f807764bb122fd63aa45f4229cb1ef2679fbd40
Fixed
2398e497389ed4be43f7cfbab499b49cec7dae1a
Fixed
894e036a24a26a6dd7b17d8d3fb5c53ab48a6074

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53230.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.5.0
Fixed
6.6.143
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.94
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.36
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53230.json"