CVE-2026-139600

wifi: mac80211: Fix a race when expiring a mesh path

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

wifi: mac80211: Fix a race when expiring a mesh path

My static analyzer identified a potential issue in 'net/mac80211/mesh_pathtbl.c':
mpath_expired() reads mpath->flags and mpath->exp_time without holding
mpath->state_lock, while mesh_path_fix_nexthop() and the other writers update
both fields under that lock. In mpath_lookup() and
__mesh_path_lookup_by_idx() the unlocked check is followed by taking the lock
and clearing MESH_PATH_ACTIVE, so the check and the update are not atomic:

CPU0 (mpath_lookup) CPU1 (mesh_path_fix_nexthop)
mpath_expired() reads the stale
flags/exp_time and returns true
spin_lock_bh(&mpath->state_lock)
mpath->exp_time = 0;
mpath->flags = FIXED|SN_VALID;
mesh_path_activate(mpath);
spin_unlock_bh(&mpath->state_lock)
spin_lock_bh(&mpath->state_lock)
mpath->flags &= ~MESH_PATH_ACTIVE;
spin_unlock_bh(&mpath->state_lock)

A path which mesh_path_fix_nexthop() has just set up as MESH_PATH_FIXED and
MESH_PATH_ACTIVE then has MESH_PATH_ACTIVE cleared again, and forwarding to
that destination silently stops.

Take mpath->state_lock before evaluating mpath_expired() so that the check and
the clearing of MESH_PATH_ACTIVE are atomic with respect to the writers.

Analysis

AI-generated

Technical impact

The flaw is a race condition in the Linux mac80211 mesh path table logic. The path expiry routine reads the path’s flags and expiration time without holding the state lock, whereas writers acquire that lock to update those fields. If a reader runs concurrently with a writer, the reader can observe a stale state and subsequently clear the ACTIVE flag after the writer has just set it, causing forwarding to the destination to silently stop. No code execution is possible, but the result is a loss of connectivity for the affected mesh link.

Affected Systems

All Linux kernel releases that include the mac80211 stack and incorporate the pre‑patch code are vulnerable. The vendor is Linux:Linux, and no specific version range is provided, so every pre‑patch kernel must be considered at risk.

Risk and Exploitability

The CVSS score is not supplied and the EPSS metric is unavailable, so the quantified exploitation likelihood cannot be determined. The bug can be triggered by concurrent activity on the mesh network; thus an adversary who can generate traffic or otherwise cause re‑entrancy in the driver could exploit the race and deny service. The flaw is not listed in CISA’s KEV catalog, and no public exploitation campaigns have been reported.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the committed fix (for example, by applying the patch identified by 0976c10c75e37689eb775e4543d400bee77edb74 from the official kernel repository).
  • If a kernel update cannot be applied immediately, disable mesh networking or block mesh traffic on the affected devices to prevent the race condition from affecting connectivity.
  • For custom builds or embedded firmware that uses the mac80211 stack, rebuild the kernel with the updated source and verify that mesh path management behaves correctly after the patch.

Generated by OpenCVE AI on December 1, 2026 at 00:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: Fix a race when expiring a mesh path My static analyzer identified a potential issue in 'net/mac80211/mesh_pathtbl.c': mpath_expired() reads mpath->flags and mpath->exp_time without holding mpath->state_lock, while mesh_path_fix_nexthop() and the other writers update both fields under that lock. In mpath_lookup() and __mesh_path_lookup_by_idx() the unlocked check is followed by taking the lock and clearing MESH_PATH_ACTIVE, so the check and the update are not atomic: CPU0 (mpath_lookup) CPU1 (mesh_path_fix_nexthop) mpath_expired() reads the stale flags/exp_time and returns true spin_lock_bh(&mpath->state_lock) mpath->exp_time = 0; mpath->flags = FIXED|SN_VALID; mesh_path_activate(mpath); spin_unlock_bh(&mpath->state_lock) spin_lock_bh(&mpath->state_lock) mpath->flags &= ~MESH_PATH_ACTIVE; spin_unlock_bh(&mpath->state_lock) A path which mesh_path_fix_nexthop() has just set up as MESH_PATH_FIXED and MESH_PATH_ACTIVE then has MESH_PATH_ACTIVE cleared again, and forwarding to that destination silently stops. Take mpath->state_lock before evaluating mpath_expired() so that the check and the clearing of MESH_PATH_ACTIVE are atomic with respect to the writers.
Title wifi: mac80211: Fix a race when expiring a mesh path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM