CVE-2026-90393: bpf: Fix potential UAF in bpf_netns_link_update_prog

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix potential UAF in bpfnetnslinkupdateprog

In bpfnetnslinkupdateprog, the checks for oldprog and prog type are currently performed locklessly before acquiring netnsbpfmutex. This creates a race condition that can lead to a UAF issue.

If two threads concurrently execute BPFLINKUPDATE on the same netns link, the following execution path can trigger a UAF:

CPU0 CPU1 bpfnetnslinkupdateprog if (oldprog && oldprog != link->prog) return -EPERM; bpfnetnslinkupdateprog if (oldprog && oldprog != link->prog) ... oldprog = xchg(&link->prog, newprog); bpfprogput(oldprog); if (newprog->type != link->prog->type) <-- trigger UAF

Fix this by moving the oldprog and prog->type checks inside the netnsbpfmutex critical section. Meanwhile, use guard() to simplify lock management and avoid all the goto jumping.

Event History

Sep 17, 2026
CVE Published
via MITRE·04:09 PM
Data Sourced
via MITRE·04:09 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this race condition?

Systems are exposed when two threads can concurrently execute BPF_LINK_UPDATE against the same network-namespace BPF link. The affected path is specifically the network-namespace link program update operation.

2

What condition is required to trigger the use-after-free?

Two concurrent updates must target the same netns link. One update can replace and release the existing program while the other thread performs the program-type check using the stale link->prog reference.

3

What does the fix change?

The fix moves the old-program validation and program-type checks into the netns_bpf_mutex critical section. This serializes those checks with program replacement and release operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203