VDB

CVE-2026-89766

CVE-2026-89766 PUBLISHED

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.

PackageEcosystemFixed in
bpftool6.18Amazon Linux1:6.18.51-120.162.amzn2023
kernel6.12-headersAmazon Linux1:6.12.113-138.209.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.113-138.209.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.51-120.162.amzn2023
python3-perf6.12Amazon Linux1:6.12.113-138.209.amzn2023
kernel-livepatch-6.12.113-138.209Amazon Linux1:1.0-0.amzn2023

Risk scores

EPSS Score
0.19%
8.8th percentile

Affected products

VendorProductVersions
LinuxLinux5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12
LinuxLinux6.11, 0, 6.12.112
amazon:2023bpftool6.180
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-tools-devel0
amazon:2023microvm-kernel6.180
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.113-138.2090
linuxlinux_kernel6.11, 6.11, 6.11
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023perf6.180
amazon:2023kernel6.120
amazon:2023kernel6.12-tools0
amazon:2023bpftool6.120
amazon:2023python3-perf6.180
amazon:2023perf6.120

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›