CVE-2026-99040 json
KEYS: Fix add_key() race with keyring restriction
published 19d ago modified 12d ago also EUVD-2026-108835
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 8%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
KEYS: Fix add_key() race with keyring restriction
__key_create_or_update() snapshots keyring->restrict_link before taking the destination keyring's semaphore. keyring_restrict() installs a restriction while holding that semaphore.
This allows a writer to observe no restriction, wait for the keyring owner to install a reject-all restriction and return successfully, and then link a key using the stale NULL snapshot. The writer only needs write permission on the destination keyring.
Move the restrict_link read after __key_link_lock() and __key_link_begin(). The read and the subsequent restriction check are then serialized with restriction installation by keyring->sem.
The race was reproduced on v7.2.8 in 19 executions where restriction installation returned before the link completed. All 19 linked the key despite the reject-all restriction. With this change, 312 executions reached the same ordering and every add_key() call failed with -EPERM.
The issue was found by manual concurrency analysis assisted by AI-based analysis and independently verified with a QEMU reproducer and kernel instrumentation.
Patch / fix
- Linux Linux 7.3
- linux Debian 13 6.12.113-1
- linux Debian 14 7.2.11-1
debian advisories DEBIAN-CVE-2026-99040
- linux Ubuntu 26.10 7.3.0-10.10
- linux-aws Ubuntu 26.10 7.3.0-1004.4
- linux-gcp Ubuntu 26.10 7.3.0-1004.4
- linux-raspi Ubuntu 26.10 7.3.0-1004.4
- linux-riscv Ubuntu 26.10 7.3.0-10.10.1
- linux-oracle Ubuntu 26.10 7.3.0-1004.4
- linux-realtime Ubuntu 26.10 7.3.0-10.10.1
ubuntu advisories UBUNTU-CVE-2026-99040
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel Azure Linux 3.0 6.6.161.1-1
azure linux advisories AZL-110915
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- git.kernel.org/stable/c/24806fc9bca28fa1433bf938d1424dcb45d80e50 commit
- git.kernel.org/stable/c/9a5c2700336878465a630804a2d21864f22eca9c commit
- git.kernel.org/stable/c/b3e404550dc2b7f3d4bb64b1da8005a1fa9a798d commit
- git.kernel.org/stable/c/305f1828b871dd46bf41addeb6f11d2c162dcb25 commit
- git.kernel.org/stable/c/f99399b48e3edd6851fac34cd329bab9f1f33baf commit
- git.kernel.org/stable/c/11516a0c402a6c1fa52254aa70d8d65fb921e59e commit
- git.kernel.org/stable/c/da0b595d8e6e2dd798f6e34e09dc51a13b888514 commit
- git.kernel.org/stable/c/dd3ea3fcba7c75493760cdbccd35f029597e8d5e commit
Is CVE-2026-99040 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-99040 updated cvss 2.5
kernel: KEYS: Fix add_key() race with keyring restriction
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernel Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9affected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.19% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-11).
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/24806fc9bca28fa1433bf938d1424dcb45d80e50
- git.kernel.org /stable/c/9a5c2700336878465a630804a2d21864f22eca9c
- git.kernel.org /stable/c/b3e404550dc2b7f3d4bb64b1da8005a1fa9a798d
- git.kernel.org /stable/c/305f1828b871dd46bf41addeb6f11d2c162dcb25
- git.kernel.org /stable/c/f99399b48e3edd6851fac34cd329bab9f1f33baf
- git.kernel.org /stable/c/11516a0c402a6c1fa52254aa70d8d65fb921e59e
- git.kernel.org /stable/c/da0b595d8e6e2dd798f6e34e09dc51a13b888514
- git.kernel.org /stable/c/dd3ea3fcba7c75493760cdbccd35f029597e8d5e
Sources
- CVE List CVE-2026-99040
- NVD CVE-2026-99040
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.