CVE-2026-99040

Not scored yetLast modified Oct 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < 24806fc9bca28fa1433bf938d1424dcb45d80e50; >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < 9a5c2700336878465a630804a2d21864f22eca9c; >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < b3e404550dc2b7f3d4bb64b1da8005a1fa9a798d; >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < 305f1828b871dd46bf41addeb6f11d2c162dcb25; >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < f99399b48e3edd6851fac34cd329bab9f1f33baf; >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < 11516a0c402a6c1fa52254aa70d8d65fb921e59e; >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < da0b595d8e6e2dd798f6e34e09dc51a13b888514; >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c, < dd3ea3fcba7c75493760cdbccd35f029597e8d5e
LinuxLinux4.7

References

Timeline

Published
Oct 23, 2026
Last modified
Oct 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-99041In the Linux kernel, the following vulnerability has been resolved: ip6_gre: remove obsolete ERSPAN PMTU update A tc tunnel_key action canCVE-2026-990428.4In the Linux kernel, the following vulnerability has been resolved: io_uring/net: populate CONNECT filter fields for 24-byte sockaddr_in6 CVE-2026-99043In the Linux kernel, the following vulnerability has been resolved: ice: fix metadata_dst refcount handling on representor teardown ice_esCVE-2026-99044In the Linux kernel, the following vulnerability has been resolved: ice: fix use-after-free in dynamic port cleanup ice_dealloc_dynamic_poCVE-2026-99045In the Linux kernel, the following vulnerability has been resolved: ibmveth: h_free logical LAN on open-fail after register ibmveth_open()CVE-2026-990467.5In the Linux kernel, the following vulnerability has been resolved: gve: fix XSK buffer leak on error descriptor When the error bit is setCVE-2026-99047In the Linux kernel, the following vulnerability has been resolved: gve: fix XSK buffer leak when rings are stopped GVE does not free XSK CVE-2026-99048In the Linux kernel, the following vulnerability has been resolved: gve: fix napi_disable deadlock when attempting to disable XSK pools WhCVE-2026-99049In the Linux kernel, the following vulnerability has been resolved: gpio: xilinx: fix runtime PM leak on request error path pm_runtime_getCVE-2026-99058.3Use after free in Accessibility in Google Chrome on Windows prior to 148.0.7778.216 allowed a remote attacker who had compromised the renderCVE-2026-990507.8In the Linux kernel, the following vulnerability has been resolved: gpio: mpsse: fix race when arming the IRQ poll worker gpio_mpsse_irq_eCVE-2026-990517.8In the Linux kernel, the following vulnerability has been resolved: fsverity: RCU-delay the freeing of struct fsverity_info __fsverity_get
CVE-2026-99040: Unscored | Vulnix