CVE-2025-21893
published high CVSS 3.1 · 7.8keys: Fix UAF in key_put()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9578e327b2b4935a25d49e3891b8fcca9b6c10c6 to < 6afe2ea2daec156bd94ad2c5a6f4f4c48240dcd3 · 9578e327b2b4935a25d49e3891b8fcca9b6c10c6 to < f6a3cf833188e897c97028cd7b926e3f2cb1a8c0 · 9578e327b2b4935a25d49e3891b8fcca9b6c10c6 to < 75845c6c1a64483e9985302793dbf0dfa5f71e32 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.21 through 6.12.* (unaffected · semver) · 6.13.9 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-935 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-toolsaarch64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-toolsx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-tools-libsaarch64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-tools-libsx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-tools-libs-develaarch64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-tools-libs-develx86_64 | Advisory build | 0:6.12.0-55.19.1.0.1.el10_0 | ELSA-2025-9079 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
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 UAF in key_put() Once a key's reference count has been reduced to 0, the garbage collector thread may destroy it at any time and so key_put() is not allowed to touch the key after that point. The most key_put() is normally allowed to do is to touch key_gc_work as that's a static global variable. However, in an effort to speed up the reclamation of quota, this is now done in key_put() once the key's usage is reduced to 0 - but now the code is looking at the key after the deadline, which is forbidden. Fix this by using a flag to indicate that a key can be gc'd now rather than looking at the key's refcount in the garbage collector.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The keyrings code is reached only through local syscalls (add_key, request_key, keyctl); there is no network-facing path to key_put(). AC:L - It is a race, but the attacker controls both sides — invoking key_put() by dropping references while driving GC via key churn/expiry — and the operation is freely repeatable until the window is won (syzbot reproduced it). PR:L - Any unprivileged local user can create and drop keys via the keyrings syscalls; no capabilities or root are required. UI:N - The race is triggered entirely by the attacker's own syscalls with no victim action needed. S:U - The vulnerability and its impact are contained within the kernel's own security authority with no crossing of a boundary such as VM/IOMMU. C:H - The UAF dereferences a freed key and its freed key_user pointer, allowing attacker-controlled reallocated contents to be read — arbitrary-read class disclosure. I:H - key_put() writes into the freed object (spinlock ops and qnkeys/qnbytes decrements through key->user), giving a heap-sprayable write primitive over reclaimed memory. A:H - A use-after-free reliably causes kernel oops/panic and slab corruption when the race is won.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9578e327b2b4935a25d49e3891b8fcca9b6c10c6 to < 6afe2ea2daec156bd94ad2c5a6f4f4c48240dcd3 (affected · git)9578e327b2b4935a25d49e3891b8fcca9b6c10c6 to < f6a3cf833188e897c97028cd7b926e3f2cb1a8c0 (affected · git)9578e327b2b4935a25d49e3891b8fcca9b6c10c6 to < 75845c6c1a64483e9985302793dbf0dfa5f71e32 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.21 through 6.12.* (unaffected · semver)6.13.9 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
3Provider assertions
2Linux · cna
keys: Fix UAF in key_put()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e58a5590c7097c85f6c8c0cb48d1b67491dad28fc7694df8117941a067160e17
- Ingested
- 23 Sep 2026, 08:39:46 UTC
- Source record
- Official CVE record