{"id":"CVE-2026-139600","summary":"wifi: mac80211: Fix a race when expiring a mesh path","details":"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-\u003eflags and mpath-\u003eexp_time without holding\nmpath-\u003estate_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-\u003estate_lock)\n                                        mpath-\u003eexp_time = 0;\n                                        mpath-\u003eflags = FIXED|SN_VALID;\n                                        mesh_path_activate(mpath);\n                                        spin_unlock_bh(&mpath-\u003estate_lock)\n  spin_lock_bh(&mpath-\u003estate_lock)\n  mpath-\u003eflags &= ~MESH_PATH_ACTIVE;\n  spin_unlock_bh(&mpath-\u003estate_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-\u003estate_lock before evaluating mpath_expired() so that the check and\nthe clearing of MESH_PATH_ACTIVE are atomic with respect to the writers.","modified":"2026-11-30T15:02:29.544904954Z","published":"2026-11-30T13:36:15.097Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139600.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0976c10c75e37689eb775e4543d400bee77edb74"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1a0d8644ce2d6ca90f3501c5c61835577e54eb20"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1eeba134ef1b04b338211e940b1717db0f39272a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6571b6a24cc37c650a1815b1c320e30db5de466f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/97d85f1e43648cc8a259bd4babf58ca903a7c2cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aebf730851d951b1e8d128ceef4d965406088915"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3f40dccd545ddf220dc7b38056224fc104a2d94"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139600.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139600"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"60854fd94573f0d3b80b55b40cf0140a0430f3ab"},{"fixed":"0976c10c75e37689eb775e4543d400bee77edb74"},{"fixed":"1eeba134ef1b04b338211e940b1717db0f39272a"},{"fixed":"f3f40dccd545ddf220dc7b38056224fc104a2d94"},{"fixed":"1a0d8644ce2d6ca90f3501c5c61835577e54eb20"},{"fixed":"aebf730851d951b1e8d128ceef4d965406088915"},{"fixed":"8f96f1ba445d1e81519e025cc4e2d3b1a9f992e6"},{"fixed":"97d85f1e43648cc8a259bd4babf58ca903a7c2cf"},{"fixed":"6571b6a24cc37c650a1815b1c320e30db5de466f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139600.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.7.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139600.json"}}],"schema_version":"1.9.2"}