{"id":"CVE-2026-90393","aliases":["CVE-2026-90393"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Fix potential UAF in bpf_netns_link_update_prog","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix potential UAF in bpf_netns_link_update_prog\n\nIn bpf_netns_link_update_prog, the checks for old_prog and prog type\nare currently performed locklessly before acquiring netns_bpf_mutex.\nThis creates a race condition that can lead to a UAF issue.\n\nIf two threads concurrently execute BPF_LINK_UPDATE on the same netns\nlink, the following execution path can trigger a UAF:\n\nCPU0                                          CPU1\nbpf_netns_link_update_prog\n  if (old_prog && old_prog != link->prog)\n    return -EPERM;\n                                              bpf_netns_link_update_prog\n                                                if (old_prog && old_prog != link->prog)\n                                                ...\n                                                old_prog = xchg(&link->prog, new_prog);\n                                                bpf_prog_put(old_prog);\n  if (new_prog->type != link->prog->type) <-- trigger UAF\n\nFix this by moving the old_prog and prog->type checks inside the\nnetns_bpf_mutex critical section. Meanwhile, use guard() to simplify\nlock management and avoid all the goto jumping.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix potential UAF in bpf_netns_link_update_prog\n\nIn bpf_netns_link_update_prog, the checks for old_prog and prog type\nare currently performed locklessly before acquiring netns_bpf_mutex.\nThis creates a race condition that can lead to a UAF issue.\n\nIf two threads concurrently execute BPF_LINK_UPDATE on the same netns\nlink, the following execution path can trigger a UAF:\n\nCPU0                                          CPU1\nbpf_netns_link_update_prog\n  if (old_prog && old_prog != link->prog)\n    return -EPERM;\n                                              bpf_netns_link_update_prog\n                                                if (old_prog && old_prog != link->prog)\n                                                ...\n                                                old_prog = xchg(&link->prog, new_prog);\n                                                bpf_prog_put(old_prog);\n  if (new_prog->type != link->prog->type) <-- trigger UAF\n\nFix this by moving the old_prog and prog->type checks inside the\nnetns_bpf_mutex critical section. Meanwhile, use guard() to simplify\nlock management and avoid all the goto jumping.","source":"cvelist"}],"published":"2026-09-17T16:09:26.388Z","modified":"2026-10-19T09:19:33.373Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"d462b5481d77ce7df8a5ff89a699386f00c9214d","status":"affected"},{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"bdddf3e1493ee973619c154a57071ce67f78598b","status":"affected"},{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"79a66fd997d4eecf17302d613194879eb32e0986","status":"affected"},{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"f4ce6803df4095777191d800bebc50219b615ca0","status":"affected"},{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"277168cb9d153ce8e9c3f9275670e32ae61b41d6","status":"affected"},{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"bda86e9f31b9a296b6e64a51c91dc776fc9f613e","status":"affected"},{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"923f559e95b89b33c7e1793b3d8f7f4ec9b2e4b7","status":"affected"},{"type":"git","introduced":"7f045a49fee04b5662cbdeaf0838f9322ae8c63a","fixed":"5c5997836381010fc5907b36bc17d3b19407e933","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/d462b5481d77ce7df8a5ff89a699386f00c9214d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bdddf3e1493ee973619c154a57071ce67f78598b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79a66fd997d4eecf17302d613194879eb32e0986","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4ce6803df4095777191d800bebc50219b615ca0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/277168cb9d153ce8e9c3f9275670e32ae61b41d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bda86e9f31b9a296b6e64a51c91dc776fc9f613e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/923f559e95b89b33c7e1793b3d8f7f4ec9b2e4b7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c5997836381010fc5907b36bc17d3b19407e933","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90393","url":"https://www.cve.org/CVERecord?id=CVE-2026-90393","licence":"CVE Terms of Use","modified":"2026-10-19T09:02:57.658Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90393","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90393","licence":"Public domain","modified":"2026-10-19T09:19:33.373Z"}],"updatedAt":"2026-11-25T22:59:39.403Z","epss":{"score":0.00233,"percentile":0.15165,"date":"2026-12-01T12:00:22.000Z"}}