net/mlx5e: Fix HV VHCA stats agent registration race
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix HV VHCA stats agent registration race mlx5e_hv_vhca_stats_create() registers the stats agent through mlx5_hv_vhca_agent_create(). The helper publishes the agent in hv_vhca->agents[type] under agents_lock and immediately schedules an asynchronous control invalidation on the HV VHCA workqueue before returning to mlx5e. The asynchronous invalidation invokes the control agent's invalidate callback, which reads the hypervisor control block and forwards the command to mlx5e_hv_vhca_stats_control(). That callback may either: - call cancel_delayed_work_sync(&priv->stats_agent.work), or - call queue_delayed_work(priv->wq, &sagent->work, sagent->delay). However, the delayed_work and priv->stats_agent.agent are only initialized after mlx5_hv_vhca_agent_create() returns to mlx5e: agent = mlx5_hv_vhca_agent_create(...); /* publish + invalidate */ ... priv->stats_agent.agent = agent; /* too late */ INIT_DELAYED_WORK(&priv->stats_agent.work, ...); /* too late */ If the asynchronous control path runs before the two assignments above, it can: - Operate on an uninitialized delayed_work whose timer.function is NULL. queue_delayed_work() calls add_timer() unconditionally, so when the timer expires the timer softirq invokes a NULL function pointer. - Re-initialize the timer later through INIT_DELAYED_WORK() while the timer is already enqueued in the timer wheel, corrupting the hlist (entry.pprev cleared while the p
CVE-2026-72342
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-72342
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "cef35af34d6dc3792333075115c7deb7062b6e18",
"lessThan": "b0fd6d3bb06182f19f3b59a53f57b5098b99048a",
"versionType": "git"
},
{
"status": "affected",
"version": "cef35af34d6dc3792333075115c7deb7062b6e18",
"lessThan": "24c77044cdfcf5b8b2e9f3b620d8b9aa392d9add",
"versionType": "git"
},
{
"status": "affected",
"version": "cef35af34d6dc3792333075115c7deb7062b6e18",
"lessThan": "e8fc3304cb67fb1d7d11ff9ef9abd5fb64e7e1d5",
"versionType": "git"
},
{
"status": "affected",
"version": "cef35af34d6dc3792333075115c7deb7062b6e18",
"lessThan": "60fddda7207d81fea71463abd403f0b10f74f2e1",
"versionType": "git"
},
{
"status": "affected",
"version": "cef35af34d6dc3792333075115c7deb7062b6e18",
"lessThan": "f5677797b094c3ec5fb350eb8ea7710b88a3d018",
"versionType": "git"
},
{
"status": "affected",
"version": "cef35af34d6dc3792333075115c7deb7062b6e18",
"lessThan": "89b25b5f46f488ea3b29b3444864c76944c9075b",
"versionType": "git"
}
],
"programFiles": [
"drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c",
"drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c",
"drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.4"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.4",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.1.178",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.145",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.97",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.40",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.5",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c",
"drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c",
"drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-72342
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #33029 · Revision 1
- Added to Heist Feed
- Publisher date