Skip to main content

Linux Kernel CVE-2026-72343

| EUVDEUVD-2026-59242 HIGH
2026-08-15 Linux GHSA-4xw9-57x7-f4g8
8.4
CVSS 3.1 · Vendor: Linux
Share

Severity by source

Vendor (Linux) PRIMARY
8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
5.7 MEDIUM

Requires Hyper-V guest with mlx5e NIC and host-enabled VHCA stats (AC:H); primary impact is kernel crash (A:H); no demonstrated confidentiality breach.

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE
6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat
5.5 MEDIUM
qualitative

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Generated
Aug 17, 2026 - 08:36 vuln.today
CVSS changed
Aug 17, 2026 - 06:22 NVD
8.4 (HIGH)
Patch available
Aug 15, 2026 - 07:20 EUVD
CVE Published
Aug 15, 2026 - 05:55 cve.org
HIGH 8.4
CVE Published
Aug 15, 2026 - 05:55 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

AnalysisAI

Memory corruption in the Linux kernel mlx5e driver's Hyper-V VHCA statistics subsystem causes a kernel fault when running as a Hyper-V guest with a Mellanox/NVIDIA ConnectX NIC. The driver initializes the stats buffer with a zero-size allocation that returns ZERO_SIZE_PTR (0x10) instead of NULL, bypasses the NULL guard, and stores the sentinel pointer; once channels open and the hypervisor enables stats reporting, a subsequent memset on address 0x10 faults the kernel. No public exploit identified at time of analysis; EPSS is 0.21% (12th percentile), reflecting minimal real-world exploitation likelihood despite the high official CVSS score.

Technical ContextAI

The affected code is in the net/mlx5e driver (Mellanox/NVIDIA ConnectX NIC) within the Hyper-V Virtual Channel Accelerator (HV VHCA) statistics subsystem, present since Linux 5.17 (commit fa691d0c9c08). The root cause is an ordering problem: mlx5e_hv_vhca_stats_create() is invoked from mlx5e_nic_enable() before mlx5e_open() runs, so priv->stats_nch is still 0. mlx5e_hv_vhca_stats_buf_size() returns sizeof(per_ring_stats) * 0 = 0, and the Linux kernel's kvzalloc(0, GFP_KERNEL) returns the special ZERO_SIZE_PTR constant (0x10) - not NULL - on success for zero-size requests, which is documented behavior. The standard 'if (!buf)' guard does not fire on 0x10, so the function completes with priv->stats_agent.buf = ZERO_SIZE_PTR. This is fundamentally a CWE-131 (Incorrect Calculation of Buffer Size) issue compounded by the Linux kernel's kvzalloc(0) convention. The fix bases the allocation on priv->max_nch (set in mlx5e_priv_init()) rather than the still-zero stats_nch, using max(max_nch, stats_nch) to cover a secondary edge case where max_nch is reduced across a detach/resume cycle while stats_nch persists. The CPE is cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*.

RemediationAI

Upgrade to a patched Linux kernel stable release: 6.1.178 or later (commit 3b3a552cf88e10bb7bda88b29cf1fd8267043d50 at https://git.kernel.org/stable/c/3b3a552cf88e10bb7bda88b29cf1fd8267043d50), 6.6.145 or later (commit 5b927dcec5f1 at https://git.kernel.org/stable/c/5b927dcec5f1087942bf123a82e64a3f66475f01), 6.12.97 or later (commit abc4c56427f1 at https://git.kernel.org/stable/c/abc4c56427f144c96b2827a4db3b90eb5b7349a2), 6.18.40 or later (commit 420aabb32da4 at https://git.kernel.org/stable/c/420aabb32da4381d8d7cdcaa6a77fad9eaceb0a4), or 7.1.5/7.2-rc3 (commits 22c1d5ecccf9 and 25f6b929c7e3). Where an immediate kernel upgrade is not feasible, disabling the mlx5e driver module via 'rmmod mlx5_en' or adding it to the kernel module blacklist prevents exposure entirely, at the cost of losing network connectivity on the affected NIC - plan accordingly. Alternatively, disabling VHCA stats collection from the Hyper-V host side (a hypervisor-level configuration) prevents the worker from triggering the faulty memset, but this requires host administrative access and the exact configuration mechanism depends on the Hyper-V version in use. No known side effects exist for the upstream kernel patch itself.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

Share

CVE-2026-72343 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy