{"affected":[{"defaultStatus":"unaffected","product":"Linux","source":"CNA: Linux","vendor":"Linux","versions":[{"lessThan":"707607db2193591b68c0e70f814133472c185b1e","status":"affected","version":"900575aa33a3eaaef802b31de187a85c4a4b4bd0","versionType":"git"},{"lessThan":"9a9e69155b2091b8297afaf1533b8d68a3096841","status":"affected","version":"900575aa33a3eaaef802b31de187a85c4a4b4bd0","versionType":"git"},{"lessThan":"1c52ef00e391144334f10995985c2f256d4be982","status":"affected","version":"900575aa33a3eaaef802b31de187a85c4a4b4bd0","versionType":"git"},{"lessThan":"a1d0f6cbb962af29586e3e65a4bced1a5e39221f","status":"affected","version":"900575aa33a3eaaef802b31de187a85c4a4b4bd0","versionType":"git"},{"lessThan":"60a25ef8dacb3566b1a8c4de00572a498e2a3bf9","status":"affected","version":"900575aa33a3eaaef802b31de187a85c4a4b4bd0","versionType":"git"},{"status":"affected","version":"363cc6efdbb54bb06cd5034a69b41aae974a736f","versionType":"git"},{"lessThan":"5.8","status":"affected","version":"5.7.7","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","source":"CNA: Linux","vendor":"Linux","versions":[{"status":"affected","version":"5.8"},{"lessThan":"5.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.114","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.24","versionType":"semver"},{"lessThanOrEqual":"6.19.*","status":"unaffected","version":"6.19.14","versionType":"semver"},{"lessThanOrEqual":"7.0.*","status":"unaffected","version":"7.0.1","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.1","versionType":"original_commit_for_fix"}]}],"cveId":"CVE-2026-31579","cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwireguard: device: use exit_rtnl callback instead of manual rtnl_lock in pre_exit\n\nwg_netns_pre_exit() manually acquires rtnl_lock() inside the\npernet .pre_exit callback.  This causes a hung task when another\nthread holds rtnl_mutex - the cleanup_net workqueue (or the\nsetup_net failure rollback path) blocks indefinitely in\nwg_netns_pre_exit() waiting to acquire the lock.\n\nConvert to .exit_rtnl, introduced in commit 7a60d91c690b (\"net:\nAdd ->exit_rtnl() hook to struct pernet_operations.\"), where the\nframework already holds RTNL and batches all callbacks under a\nsingle rtnl_lock()/rtnl_unlock() pair, eliminating the contention\nwindow.\n\nThe rcu_assign_pointer(wg->creating_net, NULL) is safe to move\nfrom .pre_exit to .exit_rtnl (which runs after synchronize_rcu())\nbecause all RCU readers of creating_net either use maybe_get_net()\n- which returns NULL for a dying namespace with zero refcount - or\naccess net->user_ns which remains valid throughout the entire\nops_undo_list sequence.\n\n[ Jason: added __net_exit and __read_mostly annotations that were missing. ]","epss":{"date":"2026-11-05","percentile":0.04647,"score":0.00155},"exploits":[],"kev":null,"metrics":[],"modifiedAt":1793915109029,"publishedAt":1777041730208,"references":[{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/707607db2193591b68c0e70f814133472c185b1e"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/9a9e69155b2091b8297afaf1533b8d68a3096841"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/1c52ef00e391144334f10995985c2f256d4be982"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/a1d0f6cbb962af29586e3e65a4bced1a5e39221f"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/60a25ef8dacb3566b1a8c4de00572a498e2a3bf9"}],"remediation":[],"revision":"0be24405226efb0de9890be354e5b6353dfc33e348ae445c0a6ab12813a10f7c","sources":[{"modifiedAt":1793915109029,"name":"CNA: Linux","retrievedAt":1793917105417,"url":"https://www.cve.org/CVERecord?id=CVE-2026-31579"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1793917132022,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31579"}],"ssvc":{"assessedAt":1793914780854,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"wireguard: device: use exit_rtnl callback instead of manual rtnl_lock in pre_exit","updatedAt":1793917132022}