# CVE-2026-72341: net/mlx5e: Fix publication race for priv-\>channel\_stats\[\]

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-08-15T05:55:47.764Z
- **Modified:** 2026-10-30T13:19:50.050Z

## Who should check

- Anyone running Linux \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< df122c593735aa5e1c97457767aa10ed8fa972e0; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 268869794170af37727816ad02051808adb9c9c3; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< acd34d24342a28794e706ce8191ca6c3114a38ae; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5c7e3755abf663f033de24f917b77685e9543045; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 815515ec68f527ca755cb1e2c1ff9148f6b3ea56; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5a799714e8ca0bce9ea40694f49914cf1adbbaa9
- Anyone running Linux 5.17

## Description

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

net/mlx5e: Fix publication race for priv-\>channel\_stats\[\]

mlx5e\_channel\_stats\_alloc() publishes a new entry to
priv-\>channel\_stats\[\] and then increments priv-\>stats\_nch as a
publication token, but neither store carries any memory barrier:

	priv-\>channel\_stats\[ix\] = kvzalloc\_node(...);
	if (!priv-\>channel\_stats\[ix\])
		return -ENOMEM;
	priv-\>stats\_nch++;

Concurrent readers compute the loop bound from priv-\>stats\_nch and
then dereference priv-\>channel\_stats\[i\] using plain accesses, e.g.

	for (i = 0; i \< priv-\>stats\_nch; i++) {
		struct mlx5e\_channel\_stats \*cs = priv-\>channel\_stats\[i\];
		... cs-\>rq.packets ...
	}

On weakly-ordered architectures (ARM, PowerPC, RISC-V) the writes to
channel\_stats\[ix\] and stats\_nch may become visible to other CPUs out
of program order. A reader can observe stats\_nch == N while still
seeing channel\_stats\[N-1\] == NULL, leading to a NULL pointer
dereference in the channel\_stats loop.

This has been observed in production on BlueField-3 DPUs (arm64),
where ovs-vswitchd queries netdev statistics over netlink during NIC
bringup, racing mlx5e\_open\_channel() -\> mlx5e\_channel\_stats\_alloc()
on another CPU:

  Unable to handle kernel NULL pointer dereference at virtual address 0x840
  Hardware name: BlueField-3 DPU
  pc : mlx5e\_fold\_sw\_stats64+0x30/0x180 \[mlx5\_core\]
  Call trace:
   mlx5e\_fold\_sw\_stats64+0x30/0x180 \[mlx5\_core\]
   dev\_get\_stats+0x50/0xc0
   ovs\_vport\_get\_stats+0x38/0xac \[openvswitch\]
   ovs\_vport\_cmd\_fill\_info+0x194/0x290 \[openvswitch\]
   ovs\_vport\_cmd\_get+0xbc/0x10c \[openvswitch\]
   genl\_family\_rcv\_msg\_doit+0xd0/0x160
   genl\_rcv\_msg+0xec/0x1f0
   netlink\_rcv\_skb+0x64/0x130
   genl\_rcv+0x40/0x60
   netlink\_unicast+0x2fc/0x370
   netlink\_sendmsg+0x1dc/0x454
   ...
   \_\_arm64\_sys\_sendmsg+0x2c/0x40

Add mlx5e\_stats\_nch\_write() and mlx5e\_stats\_nch\_read() helpers in en.h
that wrap the smp\_store\_release()/smp\_load\_acquire() pair on stats\_nch.
The release/acquire pair establishes the contract:

  stats\_nch == N  =\>  channel\_stats\[0..N-1\] are visible and non-NULL.

Publish the stats\_nch increment via mlx5e\_stats\_nch\_write() in the
writer (mlx5e\_channel\_stats\_alloc()), and read stats\_nch via
mlx5e\_stats\_nch\_read() in all readers: mlx5e RX/TX queue stats,
mlx5e\_get\_base\_stats(), ethtool channels stats, IPoIB stats, the
sw\_stats fold and the HV VHCA stats agent.

## Affected and fixed versions

- Linux: \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< df122c593735aa5e1c97457767aa10ed8fa972e0; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 268869794170af37727816ad02051808adb9c9c3; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< acd34d24342a28794e706ce8191ca6c3114a38ae; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5c7e3755abf663f033de24f917b77685e9543045; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 815515ec68f527ca755cb1e2c1ff9148f6b3ea56; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5a799714e8ca0bce9ea40694f49914cf1adbbaa9 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-72341.md
Affected: Linux >= fa691d0c9c0812b9045f3a9420862e47b3b92518, < df122c593735aa5e1c97457767aa10ed8fa972e0; >= fa691d0c9c0812b9045f3a9420862e47b3b92518, < 268869794170af37727816ad02051808adb9c9c3; >= fa691d0c9c0812b9045f3a9420862e47b3b92518, < acd34d24342a28794e706ce8191ca6c3114a38ae; >= fa691d0c9c0812b9045f3a9…
Fixed in: Linux 268869794170af37727816ad02051808adb9c9c3, Linux 5c7e3755abf663f033de24f917b77685e9543045, Linux 815515ec68f527ca755cb1e2c1ff9148f6b3ea56, Linux 5a799714e8ca0bce9ea40694f49914cf1adbbaa9

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< df122c593735aa5e1c97457767aa10ed8fa972e0; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 268869794170af37727816ad02051808adb9c9c3; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< acd34d24342a28794e706ce8191ca6c3114a38ae; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5c7e3755abf663f033de24f917b77685e9543045; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 815515ec68f527ca755cb1e2c1ff9148f6b3ea56; \>= fa691d0c9c0812b9045f3a9420862e47b3b92518, \< 5a799714e8ca0bce9ea40694f49914cf1adbbaa9; Linux 5.17.

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

Yes. Fixed in Linux 268869794170af37727816ad02051808adb9c9c3, Linux 5c7e3755abf663f033de24f917b77685e9543045, Linux 815515ec68f527ca755cb1e2c1ff9148f6b3ea56, Linux 5a799714e8ca0bce9ea40694f49914cf1adbbaa9. Upgrade Linux to 5a799714e8ca0bce9ea40694f49914cf1adbbaa9 or later.

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

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/df122c593735aa5e1c97457767aa10ed8fa972e0>
- other: <https://git.kernel.org/stable/c/268869794170af37727816ad02051808adb9c9c3>
- other: <https://git.kernel.org/stable/c/acd34d24342a28794e706ce8191ca6c3114a38ae>
- other: <https://git.kernel.org/stable/c/5c7e3755abf663f033de24f917b77685e9543045>
- other: <https://git.kernel.org/stable/c/815515ec68f527ca755cb1e2c1ff9148f6b3ea56>
- other: <https://git.kernel.org/stable/c/5a799714e8ca0bce9ea40694f49914cf1adbbaa9>

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

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