CVE-2026-99040
publishedKEYS: Fix add_key() race with keyring restriction
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 24806fc9bca28fa1433bf938d1424dcb45d80e50 · 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 9a5c2700336878465a630804a2d21864f22eca9c · 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < b3e404550dc2b7f3d4bb64b1da8005a1fa9a798d · 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 305f1828b871dd46bf41addeb6f11d2c162dcb25 · 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < f99399b48e3edd6851fac34cd329bab9f1f33baf · 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 11516a0c402a6c1fa52254aa70d8d65fb921e59e · 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < da0b595d8e6e2dd798f6e34e09dc51a13b888514 · 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < dd3ea3fcba7c75493760cdbccd35f029597e8d5e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.7 (affected) · 0 to < 4.7 (unaffected · semver) · 5.10.273 through 5.10.* (unaffected · semver) · 5.15.224 through 5.15.* (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.12.113 through 6.12.* (unaffected · semver) · 6.18.57 through 6.18.* (unaffected · semver) · 7.2.11 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2026-139 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2026-121 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3335 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1127 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15-cloud-tools-5.15.0-1126 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15-headers-5.15.0-1126 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15-tools-5.15.0-1126 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1122 | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1122 | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-headers-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-headers-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-headers-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-headers-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-headers-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1115 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1115 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-modules-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-involflt-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-involflt-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-oracle-5.15 | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-oracle-5.15-headers-5.15.0-1118 | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-oracle-5.15-tools-5.15.0-1118 | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-tools-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-tools-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-tools-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-tools-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-tools-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | jammy | linux | Advisory build | 5.15.0-204.214 | USN-9167-1 |
| Ubuntu | jammy | linux-aws | Advisory build | 5.15.0-1121.128 | USN-9167-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1069 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1069 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1069 | Advisory build | 6.8.0-1069.74~22.04.1 | USN-9024-1 |
| Ubuntu | jammy | linux-aws-cloud-tools-5.15.0-1121 | Advisory build | 5.15.0-1121.128 | USN-9167-1 |
| Ubuntu | jammy | linux-aws-fips | Advisory build | 5.15.0-1121.128+fips1 | USN-9168-1 |
| Ubuntu | jammy | linux-aws-fips-cloud-tools-5.15.0-1121 | Advisory build | 5.15.0-1121.128+fips1 | USN-9168-1 |
| Ubuntu | jammy | linux-aws-fips-headers-5.15.0-1121 | Advisory build | 5.15.0-1121.128+fips1 | USN-9168-1 |
| Ubuntu | jammy | linux-aws-fips-tools-5.15.0-1121 | Advisory build | 5.15.0-1121.128+fips1 | USN-9168-1 |
| Ubuntu | jammy | linux-aws-headers-5.15.0-1121 | Advisory build | 5.15.0-1121.128 | USN-9167-1 |
| Ubuntu | jammy | linux-aws-tools-5.15.0-1121 | Advisory build | 5.15.0-1121.128 | USN-9167-1 |
| Ubuntu | jammy | linux-azure | Advisory build | 5.15.0-1127.136 | USN-9167-3 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1073 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1073 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1073 | Advisory build | 6.8.0-1073.82~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-cloud-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136 | USN-9167-3 |
| Ubuntu | jammy | linux-azure-fde | Advisory build | 5.15.0-1126.135 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-fde-6.8 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-cloud-tools-6.8.0-1071 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-headers-6.8.0-1071 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-tools-6.8.0-1071 | Advisory build | 6.8.0-1071.78~22.04.1 | USN-9026-1 |
| Ubuntu | jammy | linux-azure-fde-cloud-tools-5.15.0-1126 | Advisory build | 5.15.0-1126.135 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-fde-headers-5.15.0-1126 | Advisory build | 5.15.0-1126.135 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-fde-tools-5.15.0-1126 | Advisory build | 5.15.0-1126.135 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-fips | Advisory build | 5.15.0-1127.136+fips1 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-fips-cloud-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136+fips1 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-fips-headers-5.15.0-1127 | Advisory build | 5.15.0-1127.136+fips1 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-fips-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136+fips1 | USN-9168-4 |
| Ubuntu | jammy | linux-azure-headers-5.15.0-1127 | Advisory build | 5.15.0-1127.136 | USN-9167-3 |
| Ubuntu | jammy | linux-azure-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136 | USN-9167-3 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1072-nvidia-tegra | Advisory build | 5.15.0-1072.74 | USN-9167-2 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1072-nvidia-tegra-rt | Advisory build | 5.15.0-1072.74 | USN-9167-2 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1104-gkeop | Advisory build | 5.15.0-1104.112 | USN-9167-1 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1113-intel-iot-realtime | Advisory build | 5.15.0-1113.117 | USN-9167-2 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1113-kvm | Advisory build | 5.15.0-1113.118 | USN-9168-1 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1114-raspi | Advisory build | 5.15.0-1114.117 | USN-9167-3 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119 | USN-9167-1 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1116-nvidia | Advisory build | 5.15.0-1116.117 | USN-9168-3 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1116-nvidia-lowlatency | Advisory build | 5.15.0-1116.117 | USN-9168-3 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1117-gke | Advisory build | 5.15.0-1117.123 | USN-9167-1 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124 | USN-9167-1 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1120-realtime | Advisory build | 5.15.0-1120.129 | USN-9168-3 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1121-aws | Advisory build | 5.15.0-1121.128 | USN-9167-1 |
| Ubuntu | jammy | linux-buildinfo-5.15.0-1121-aws-64k | Advisory build | 5.15.0-1121.128 | USN-9167-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 24806fc9bca28fa1433bf938d1424dcb45d80e50 (affected · git)5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 9a5c2700336878465a630804a2d21864f22eca9c (affected · git)5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < b3e404550dc2b7f3d4bb64b1da8005a1fa9a798d (affected · git)5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 305f1828b871dd46bf41addeb6f11d2c162dcb25 (affected · git)5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < f99399b48e3edd6851fac34cd329bab9f1f33baf (affected · git)5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < 11516a0c402a6c1fa52254aa70d8d65fb921e59e (affected · git)5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < da0b595d8e6e2dd798f6e34e09dc51a13b888514 (affected · git)5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to < dd3ea3fcba7c75493760cdbccd35f029597e8d5e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.7 (affected)0 to < 4.7 (unaffected · semver)5.10.273 through 5.10.* (unaffected · semver)5.15.224 through 5.15.* (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.12.113 through 6.12.* (unaffected · semver)6.18.57 through 6.18.* (unaffected · semver)7.2.11 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/11516a0c402a6c1fa52254aa70d8d65fb921e59e
- https://git.kernel.org/stable/c/24806fc9bca28fa1433bf938d1424dcb45d80e50
- https://git.kernel.org/stable/c/305f1828b871dd46bf41addeb6f11d2c162dcb25
- https://git.kernel.org/stable/c/9a5c2700336878465a630804a2d21864f22eca9c
- https://git.kernel.org/stable/c/b3e404550dc2b7f3d4bb64b1da8005a1fa9a798d
- https://git.kernel.org/stable/c/da0b595d8e6e2dd798f6e34e09dc51a13b888514
- https://git.kernel.org/stable/c/dd3ea3fcba7c75493760cdbccd35f029597e8d5e
- https://git.kernel.org/stable/c/f99399b48e3edd6851fac34cd329bab9f1f33baf
Provider assertions
1Linux · cna
KEYS: Fix add_key() race with keyring restriction
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 699269ec608e43946b12ab45880515c125aab924b24da30d8660a59f71c40b06
- Ingested
- 30 Oct 2026, 12:49:53 UTC
- Source record
- Official CVE record