CVE-2026-89766
pidfd: hold exec_update_lock around namespace ioctl
Reported by linux · Published September 11, 2026
In the Linux kernel, the following vulnerability has been resolved: pidfd: hold exec_update_lock around namespace ioctl The PIDFD_GET_*_NAMESPACE ioctls in pidfd_ioctl() perform a filesystem credentials ptrace access check before handing out a namespace file descriptor. The accompanying comment states that the code "mirrors nsfs behavior", but, unlike the corresponding procfs paths, it does so without holding the target task's exec_update_lock. proc_ns_get_link() and proc_ns_readlink() both take exec_update_lock for reading around the ptrace check and the namespace lookup, so that the credentials used for the access decision match those of the task when its namespace is read. Without it, a caller can pass the check against the target's old credentials and then read the namespace after the target has execve()'d a setuid binary and committed new credentials -- accessing namespace information it should have been denied. Hold exec_update_lock for reading around the ptrace check and the namespace lookup so that pidfd truly mirrors nsfs behavior, as the comment already claims. open_namespace() itself runs outside the lock: once a namespace reference is obtained it carries its own refcount and is opened with the caller's own credentials, so a concurrent execve() on the target can no longer affect the outcome.
EPSS 0.19% · 8.8th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool6.18 | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| microvm-kernel6.18 | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| kernel-livepatch-6.12.113-138.209 | Amazon Linux | 1:1.0-0.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12 |
| Linux | Linux | 6.11, 0, 6.12.112 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.113-138.209 | 0 |
| linux | linux_kernel | 6.11, 6.11, 6.11 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | perf6.12 | 0 |
…and 7 more
Timeline
- Sep 11, 2026 CVE Published
- Sep 12, 2026 EPSS Score (14 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-89766
vulnetix vdb fixes CVE-2026-89766
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89766/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart