CVE-2026-89766
pidfd: hold exec_update_lock around namespace ioctl
Check your servers for CVE-2026-89766
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89766 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.23% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, before bac2f1913a216677c2c220d7bb352dd0330065ca affected from 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, before cf24ce48d60225fdbee68ed2058763a1fd172ff3 affected from 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, before e89318aa8629969e86548b05e7c19283af3f0efb affected from 5b08bd408534bfb3a7cf5778da5b27d4e4fffe12, before 9688a46802939da28f00cb40e8129615d5d4af39
Other versions: unaffected
|
| Linux |
affected 6.11 unaffected before 6.11 unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.51 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89766 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89766
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-89766
trivy image --scanners vuln IMAGE | grep CVE-2026-89766
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/bac2f1913a216677c2c220d7bb352dd0330065ca git.kernel.org
- https://git.kernel.org/stable/c/cf24ce48d60225fdbee68ed2058763a1fd172ff3 git.kernel.org
- https://git.kernel.org/stable/c/e89318aa8629969e86548b05e7c19283af3f0efb git.kernel.org
- https://git.kernel.org/stable/c/9688a46802939da28f00cb40e8129615d5d4af39 git.kernel.org
Source: the record CVE-2026-89766 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse