CVE-2025-21893 Details
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.
A use-after-free vulnerability has been identified in the Linux kernel's key management system. The issue arises in the key_put() function, which improperly accesses a key after its reference count has dropped to zero, allowing the garbage collector to destroy it. This violation occurs because the function attempts to expedite quota reclamation by modifying garbage collection work, but inadvertently interacts with the key post-deletion, which is not permitted. The vulnerability has been addressed by introducing a flag to signal that a key is ready for garbage collection, rather than relying on the key's reference count.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 31, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/6afe2ea2daec156bd94ad2c5a6f4f4c48240dcd3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/75845c6c1a64483e9985302793dbf0dfa5f71e32 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f6a3cf833188e897c97028cd7b926e3f2cb1a8c0 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.10, < 6.12.21 >= 6.13, < 6.13.9 6.14 rc1 6.14 rc2 6.14 rc3 6.14 rc4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 8, 2025 | Initial Analysis | [email protected] |
| Mar 31, 2025 | CVE Modified | CISA-ADP |
| Mar 31, 2025 | New CVE Received | kernel.org |