# CVE-2022-49258: crypto: ccree - Fix use after free in cc_cipher_exit()

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-02)
- Published: 2025-02-26T01:56:11.561Z
- Modified: 2026-06-17T05:17:31.780Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 63ee04c8b491ee148489347e7da9fbfd982ca2bb before c93017c8d5ebf55a4e453ac7c84cc84cf92ab570; from 63ee04c8b491ee148489347e7da9fbfd982ca2bb before 335bf1fc74f775a8255257aa3e33763f2257b676; from 63ee04c8b491ee148489347e7da9fbfd982ca2bb before 25c358efee5153dfd240d4e0d3169d5bebe9cacd; from 63ee04c8b491ee148489347e7da9fbfd982ca2bb before cffb5382bd8d3cf21b874ab5b84bf7618932286b; from 63ee04c8b491ee148489347e7da9fbfd982ca2bb before 3d950c34074ed74d2713c3856ba01264523289e6; 4.17 (not affected: before 4.17; from 5.10.110 up to 5.10.*; from 5.15.33 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 4.17 before 5.10.110; from 5.11 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## References

- <https://git.kernel.org/stable/c/c93017c8d5ebf55a4e453ac7c84cc84cf92ab570> (patch)
- <https://git.kernel.org/stable/c/335bf1fc74f775a8255257aa3e33763f2257b676> (patch)
- <https://git.kernel.org/stable/c/25c358efee5153dfd240d4e0d3169d5bebe9cacd> (patch)
- <https://git.kernel.org/stable/c/cffb5382bd8d3cf21b874ab5b84bf7618932286b> (patch)
- <https://git.kernel.org/stable/c/3d950c34074ed74d2713c3856ba01264523289e6> (patch)

## Sources

- CVE List: [CVE-2022-49258](https://www.cve.org/CVERecord?id=CVE-2022-49258), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49258](https://nvd.nist.gov/vuln/detail/CVE-2022-49258), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49258 · Whole record: https://cve.day/CVE-2022-49258.json · Rebuilt by cve.day 2026-11-25T22:58:20.332Z
