{"id":"CVE-2026-139600","aliases":["CVE-2026-139600"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: mac80211: Fix a race when expiring a mesh path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: Fix a race when expiring a mesh path\n\nMy static analyzer identified a potential issue in 'net/mac80211/mesh_pathtbl.c':\nmpath_expired() reads mpath->flags and mpath->exp_time without holding\nmpath->state_lock, while mesh_path_fix_nexthop() and the other writers update\nboth fields under that lock.  In mpath_lookup() and\n__mesh_path_lookup_by_idx() the unlocked check is followed by taking the lock\nand clearing MESH_PATH_ACTIVE, so the check and the update are not atomic:\n\nCPU0 (mpath_lookup)                    CPU1 (mesh_path_fix_nexthop)\n  mpath_expired() reads the stale\n  flags/exp_time and returns true\n                                        spin_lock_bh(&mpath->state_lock)\n                                        mpath->exp_time = 0;\n                                        mpath->flags = FIXED|SN_VALID;\n                                        mesh_path_activate(mpath);\n                                        spin_unlock_bh(&mpath->state_lock)\n  spin_lock_bh(&mpath->state_lock)\n  mpath->flags &= ~MESH_PATH_ACTIVE;\n  spin_unlock_bh(&mpath->state_lock)\n\nA path which mesh_path_fix_nexthop() has just set up as MESH_PATH_FIXED and\nMESH_PATH_ACTIVE then has MESH_PATH_ACTIVE cleared again, and forwarding to\nthat destination silently stops.\n\nTake mpath->state_lock before evaluating mpath_expired() so that the check and\nthe clearing of MESH_PATH_ACTIVE are atomic with respect to the writers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: Fix a race when expiring a mesh path\n\nMy static analyzer identified a potential issue in 'net/mac80211/mesh_pathtbl.c':\nmpath_expired() reads mpath->flags and mpath->exp_time without holding\nmpath->state_lock, while mesh_path_fix_nexthop() and the other writers update\nboth fields under that lock.  In mpath_lookup() and\n__mesh_path_lookup_by_idx() the unlocked check is followed by taking the lock\nand clearing MESH_PATH_ACTIVE, so the check and the update are not atomic:\n\nCPU0 (mpath_lookup)                    CPU1 (mesh_path_fix_nexthop)\n  mpath_expired() reads the stale\n  flags/exp_time and returns true\n                                        spin_lock_bh(&mpath->state_lock)\n                                        mpath->exp_time = 0;\n                                        mpath->flags = FIXED|SN_VALID;\n                                        mesh_path_activate(mpath);\n                                        spin_unlock_bh(&mpath->state_lock)\n  spin_lock_bh(&mpath->state_lock)\n  mpath->flags &= ~MESH_PATH_ACTIVE;\n  spin_unlock_bh(&mpath->state_lock)\n\nA path which mesh_path_fix_nexthop() has just set up as MESH_PATH_FIXED and\nMESH_PATH_ACTIVE then has MESH_PATH_ACTIVE cleared again, and forwarding to\nthat destination silently stops.\n\nTake mpath->state_lock before evaluating mpath_expired() so that the check and\nthe clearing of MESH_PATH_ACTIVE are atomic with respect to the writers.","source":"cvelist"}],"published":"2026-11-30T13:36:15.097Z","modified":"2026-11-30T14:19:42.067Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"0976c10c75e37689eb775e4543d400bee77edb74","status":"affected"},{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"1eeba134ef1b04b338211e940b1717db0f39272a","status":"affected"},{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"f3f40dccd545ddf220dc7b38056224fc104a2d94","status":"affected"},{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"1a0d8644ce2d6ca90f3501c5c61835577e54eb20","status":"affected"},{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"aebf730851d951b1e8d128ceef4d965406088915","status":"affected"},{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6","status":"affected"},{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"97d85f1e43648cc8a259bd4babf58ca903a7c2cf","status":"affected"},{"type":"git","introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","fixed":"6571b6a24cc37c650a1815b1c320e30db5de466f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0976c10c75e37689eb775e4543d400bee77edb74","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1eeba134ef1b04b338211e940b1717db0f39272a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3f40dccd545ddf220dc7b38056224fc104a2d94","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a0d8644ce2d6ca90f3501c5c61835577e54eb20","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aebf730851d951b1e8d128ceef4d965406088915","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/97d85f1e43648cc8a259bd4babf58ca903a7c2cf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6571b6a24cc37c650a1815b1c320e30db5de466f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139600","url":"https://www.cve.org/CVERecord?id=CVE-2026-139600","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:15.097Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139600","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139600","licence":"Public domain","modified":"2026-11-30T14:19:42.067Z"}],"updatedAt":"2026-11-30T14:33:08.617Z","epss":{"score":0.0022,"percentile":0.13278,"date":"2026-12-01T12:00:22.000Z"}}