{"id":"CVE-2026-139600","state":"PUBLISHED","title":"wifi: mac80211: Fix a race when expiring a mesh path","description":"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.","publishedAt":"2026-11-30T13:36:15.097Z","updatedAt":"2026-11-30T13:36:15.097Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"0976c10c75e37689eb775e4543d400bee77edb74","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"1eeba134ef1b04b338211e940b1717db0f39272a","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"f3f40dccd545ddf220dc7b38056224fc104a2d94","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"1a0d8644ce2d6ca90f3501c5c61835577e54eb20","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"aebf730851d951b1e8d128ceef4d965406088915","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"97d85f1e43648cc8a259bd4babf58ca903a7c2cf","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"6571b6a24cc37c650a1815b1c320e30db5de466f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mesh_pathtbl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.7","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mesh_pathtbl.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139600.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139600","state":"PUBLISHED","datePublished":"2026-11-30T13:36:15.097Z","dateUpdated":"2026-11-30T13:36:15.097Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.942Z"},"containers":{"cna":{"title":"wifi: mac80211: Fix a race when expiring a mesh path","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"0976c10c75e37689eb775e4543d400bee77edb74","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"1eeba134ef1b04b338211e940b1717db0f39272a","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"f3f40dccd545ddf220dc7b38056224fc104a2d94","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"1a0d8644ce2d6ca90f3501c5c61835577e54eb20","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"aebf730851d951b1e8d128ceef4d965406088915","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"97d85f1e43648cc8a259bd4babf58ca903a7c2cf","versionType":"git"},{"version":"60854fd94573f0d3b80b55b40cf0140a0430f3ab","status":"affected","lessThan":"6571b6a24cc37c650a1815b1c320e30db5de466f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mesh_pathtbl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.7","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mesh_pathtbl.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0976c10c75e37689eb775e4543d400bee77edb74"},{"url":"https://git.kernel.org/stable/c/1eeba134ef1b04b338211e940b1717db0f39272a"},{"url":"https://git.kernel.org/stable/c/f3f40dccd545ddf220dc7b38056224fc104a2d94"},{"url":"https://git.kernel.org/stable/c/1a0d8644ce2d6ca90f3501c5c61835577e54eb20"},{"url":"https://git.kernel.org/stable/c/aebf730851d951b1e8d128ceef4d965406088915"},{"url":"https://git.kernel.org/stable/c/8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6"},{"url":"https://git.kernel.org/stable/c/97d85f1e43648cc8a259bd4babf58ca903a7c2cf"},{"url":"https://git.kernel.org/stable/c/6571b6a24cc37c650a1815b1c320e30db5de466f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:15.097Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.7","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}