# CVE-2026-139600: wifi: mac80211: Fix a race when expiring a mesh path

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:15.097Z
- Modified: 2026-11-30T14:19:42.067Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before 0976c10c75e37689eb775e4543d400bee77edb74; from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before 1eeba134ef1b04b338211e940b1717db0f39272a; from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before f3f40dccd545ddf220dc7b38056224fc104a2d94; from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before 1a0d8644ce2d6ca90f3501c5c61835577e54eb20; from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before aebf730851d951b1e8d128ceef4d965406088915; from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before 8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6; from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before 97d85f1e43648cc8a259bd4babf58ca903a7c2cf; from 60854fd94573f0d3b80b55b40cf0140a0430f3ab before 6571b6a24cc37c650a1815b1c320e30db5de466f; 4.7 (not affected: before 4.7; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/0976c10c75e37689eb775e4543d400bee77edb74>
- <https://git.kernel.org/stable/c/1eeba134ef1b04b338211e940b1717db0f39272a>
- <https://git.kernel.org/stable/c/f3f40dccd545ddf220dc7b38056224fc104a2d94>
- <https://git.kernel.org/stable/c/1a0d8644ce2d6ca90f3501c5c61835577e54eb20>
- <https://git.kernel.org/stable/c/aebf730851d951b1e8d128ceef4d965406088915>
- <https://git.kernel.org/stable/c/8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6>
- <https://git.kernel.org/stable/c/97d85f1e43648cc8a259bd4babf58ca903a7c2cf>
- <https://git.kernel.org/stable/c/6571b6a24cc37c650a1815b1c320e30db5de466f>

## Sources

- CVE List: [CVE-2026-139600](https://www.cve.org/CVERecord?id=CVE-2026-139600), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139600](https://nvd.nist.gov/vuln/detail/CVE-2026-139600), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139600 · Whole record: https://cve.day/CVE-2026-139600.json · Rebuilt by cve.day 2026-11-30T14:33:08.617Z
