{"id":"CVE-2026-139493","summary":"wifi: mt76: fix wcid-\u003epktid corruption in mt76_wcid_cleanup()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: fix wcid-\u003epktid corruption in mt76_wcid_cleanup()\n\nmt76_wcid_cleanup() releases dev-\u003estatus_lock before calling\nidr_destroy(&wcid-\u003epktid) to tear down the pktid idr. Meanwhile,\nmt76_tx_status_skb_add() from tx.c can concurrently insert into\nthat same idr during tx completion handling:\n\n\tspin_lock_bh(&dev-\u003estatus_lock);\n\n\tpid = idr_alloc(&wcid-\u003epktid, skb, MT_PACKET_ID_FIRST,\n\t\t\tMT_PACKET_ID_MASK, GFP_ATOMIC);\n\nSince idr_destroy() runs outside the lock, it can execute concurrently\nwith idr_alloc() on the same idr, corrupting its internal data\nstructures. Because idr nodes are freed through the generic slab\nallocator, this corruption can resurface later as an unrelated-looking\ncrash anywhere in the kernel that happens to reuse the same freed\nmemory.\n\nFix this by calling idr_destroy() before releasing dev-\u003estatus_lock,\nso that the table teardown and any concurrent insertion are mutually\nexclusive.","modified":"2026-11-30T15:02:28.830770187Z","published":"2026-11-30T13:35:15.699Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139493.json"},"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/158c1145fe7ddd82914011a00de7cc3262616b16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e5917e0ee83756868b9c0747c91e5ad0ee2177e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4fb0a25ac84d15d20588d110faf9511e78626da8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/881063c29779c737b0249748a9ea9453d233a353"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139493.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139493"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bd1e3e7b693c17a04e7d2bd9119daa482b7c7720"},{"fixed":"881063c29779c737b0249748a9ea9453d233a353"},{"fixed":"4fb0a25ac84d15d20588d110faf9511e78626da8"},{"fixed":"4e5917e0ee83756868b9c0747c91e5ad0ee2177e"},{"fixed":"f2bdff69bd8dc8b85a5d79f41f37fc9b95b66943"},{"fixed":"158c1145fe7ddd82914011a00de7cc3262616b16"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139493.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.16.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-139493.json"}}],"schema_version":"1.9.2"}