CVE-2022-49258 Details
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: ccree - Fix use after free in cc_cipher_exit() kfree_sensitive(ctx_p->user.key) will free the ctx_p->user.key. But ctx_p->user.key is still used in the next line, which will lead to a use after free. We can call kfree_sensitive() after dev_dbg() to avoid the uaf.
A use-after-free vulnerability has been identified in the Linux kernel's crypto subsystem, specifically within the ccree component. The issue arises in the cc_cipher_exit() function, where the kfree_sensitive() call frees the user key of the context. However, this key is still referenced in the following line, leading to a use-after-free condition. The vulnerability can be addressed by rearranging the code to call kfree_sensitive() after logging the debug message, thereby preventing the use-after-free scenario.
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 Feb 27, 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/25c358efee5153dfd240d4e0d3169d5bebe9cacd | kernel.org | Patch |
| https://git.kernel.org/stable/c/335bf1fc74f775a8255257aa3e33763f2257b676 | kernel.org | Patch |
| https://git.kernel.org/stable/c/3d950c34074ed74d2713c3856ba01264523289e6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c93017c8d5ebf55a4e453ac7c84cc84cf92ab570 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cffb5382bd8d3cf21b874ab5b84bf7618932286b | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.17, < 5.10.110 >= 5.11, < 5.15.33 >= 5.16, < 5.16.19 >= 5.17, < 5.17.2 |
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 |
| Mar 25, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |