# CVE-2026-72343: net/mlx5e: Fix HV VHCA stats zero-sized buffer allocation

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

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.20% (percentile 5, 2026-11-28)
- **Published:** 2026-08-15T05:55:49.067Z
- **Modified:** 2026-10-16T19:17:24.280Z

## Who should check

- Anyone running Linux \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 3b3a552cf88e10bb7bda88b29cf1fd8267043d50; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5b927dcec5f1087942bf123a82e64a3f66475f01; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 22c1d5ecccf92c849bdca1556179aafc95794baf; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 420aabb32da4381d8d7cdcaa6a77fad9eaceb0a4; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< abc4c56427f144c96b2827a4db3b90eb5b7349a2; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 25f6b929c7e379cbea7cb8caa67b49b2d1efae17
- Anyone running Linux 5.17

## Description

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

net/mlx5e: Fix HV VHCA stats zero-sized buffer allocation

mlx5e\_hv\_vhca\_stats\_create() is called from mlx5e\_nic\_enable(),
before mlx5e\_open(). At that point priv-\>stats\_nch is still zero,
because it is only ever incremented in mlx5e\_channel\_stats\_alloc(),
which is reached only from mlx5e\_open\_channel().

mlx5e\_hv\_vhca\_stats\_buf\_size() therefore returns 0, and
kvzalloc(0, GFP\_KERNEL) returns ZERO\_SIZE\_PTR ((void \*)16) rather
than NULL. The "if (!buf)" guard does not catch this, and
mlx5e\_hv\_vhca\_stats\_create() completes "successfully" with
priv-\>stats\_agent.buf set to ZERO\_SIZE\_PTR.

Once channels are opened (priv-\>stats\_nch \> 0) and the hypervisor
enables stats reporting, mlx5e\_hv\_vhca\_stats\_work() recomputes
buf\_len using the new non-zero stats\_nch and calls
memset(buf, 0, buf\_len) on ZERO\_SIZE\_PTR, faulting at address 0x10.

Allocate the buffer based on priv-\>max\_nch, which is set in
mlx5e\_priv\_init() and is the upper bound on stats\_nch:

  - Add a separate helper mlx5e\_hv\_vhca\_stats\_buf\_max\_size() that
    returns sizeof(per\_ring\_stats) \* max(max\_nch, stats\_nch), and
    use it for the kvzalloc() in mlx5e\_hv\_vhca\_stats\_create().
  - Keep mlx5e\_hv\_vhca\_stats\_buf\_size() (which returns based on
    stats\_nch) for the worker's active payload size, so the wire
    format (block-\>rings = stats\_nch) and the amount of data filled
    by mlx5e\_hv\_vhca\_fill\_stats() are unchanged.

The max(max\_nch, stats\_nch) guard handles the rare case where
mlx5e\_attach\_netdev() recomputes max\_nch downward across a
detach/resume cycle while priv-\>stats\_nch persists (mlx5e\_detach\_netdev
does not call mlx5e\_priv\_cleanup, so stats\_nch is only reset when
the netdev is destroyed). Without the guard, the worker could compute
buf\_len from stats\_nch and overrun the smaller buffer allocated based
on the reduced max\_nch.

Allocating a non-zero buffer also makes the kvzalloc() failure path in
mlx5e\_hv\_vhca\_stats\_create() reachable for the first time: it returns
early without (re)creating the agent. Clear
priv-\>stats\_agent.{agent,buf} in mlx5e\_hv\_vhca\_stats\_destroy() after
freeing them, so that if a later create() bails out on this path, a
subsequent teardown does not double-free the stale agent/buffer left
from a previous enable/disable cycle.

This mirrors the existing mlx5e pattern of preallocating arrays of
size max\_nch (e.g. priv-\>channel\_stats) and lazily populating
entries up to stats\_nch on demand.

## Affected and fixed versions

- Linux: \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 3b3a552cf88e10bb7bda88b29cf1fd8267043d50; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5b927dcec5f1087942bf123a82e64a3f66475f01; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 22c1d5ecccf92c849bdca1556179aafc95794baf; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 420aabb32da4381d8d7cdcaa6a77fad9eaceb0a4; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< abc4c56427f144c96b2827a4db3b90eb5b7349a2; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 25f6b929c7e379cbea7cb8caa67b49b2d1efae17 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-72343.md
Affected: Linux >= fa691d0c9c0812b9045f3a9420862e47b3b92518, < 3b3a552cf88e10bb7bda88b29cf1fd8267043d50; >= fa691d0c9c0812b9045f3a9420862e47b3b92518, < 5b927dcec5f1087942bf123a82e64a3f66475f01; >= fa691d0c9c0812b9045f3a9420862e47b3b92518, < 22c1d5ecccf92c849bdca1556179aafc95794baf; >= fa691d0c9c0812b9045f3a9…
Fixed in: Linux 3b3a552cf88e10bb7bda88b29cf1fd8267043d50, Linux 5b927dcec5f1087942bf123a82e64a3f66475f01, Linux 22c1d5ecccf92c849bdca1556179aafc95794baf, Linux 420aabb32da4381d8d7cdcaa6a77fad9eaceb0a4, Linux 25f6b929c7e379cbea7cb8caa67b49b2d1efae17

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

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

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

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

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

Linux \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 3b3a552cf88e10bb7bda88b29cf1fd8267043d50; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5b927dcec5f1087942bf123a82e64a3f66475f01; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 22c1d5ecccf92c849bdca1556179aafc95794baf; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 420aabb32da4381d8d7cdcaa6a77fad9eaceb0a4; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< abc4c56427f144c96b2827a4db3b90eb5b7349a2; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 25f6b929c7e379cbea7cb8caa67b49b2d1efae17; Linux 5.17.

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

Yes. Fixed in Linux 3b3a552cf88e10bb7bda88b29cf1fd8267043d50, Linux 5b927dcec5f1087942bf123a82e64a3f66475f01, Linux 22c1d5ecccf92c849bdca1556179aafc95794baf, Linux 420aabb32da4381d8d7cdcaa6a77fad9eaceb0a4, Linux 25f6b929c7e379cbea7cb8caa67b49b2d1efae17. Upgrade Linux to 25f6b929c7e379cbea7cb8caa67b49b2d1efae17 or later.

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

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

- other: <https://git.kernel.org/stable/c/3b3a552cf88e10bb7bda88b29cf1fd8267043d50>
- other: <https://git.kernel.org/stable/c/5b927dcec5f1087942bf123a82e64a3f66475f01>
- other: <https://git.kernel.org/stable/c/22c1d5ecccf92c849bdca1556179aafc95794baf>
- other: <https://git.kernel.org/stable/c/420aabb32da4381d8d7cdcaa6a77fad9eaceb0a4>
- other: <https://git.kernel.org/stable/c/abc4c56427f144c96b2827a4db3b90eb5b7349a2>
- other: <https://git.kernel.org/stable/c/25f6b929c7e379cbea7cb8caa67b49b2d1efae17>

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

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