CVE-2022-49258Published Feb 26, 2025 · Feb 26Updated Oct 28
crypto: ccree - Fix use after free in cc_cipher_exit()
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s ccree cipher cleanup uses a key after freeing it. The input does not establish what an attacker could do or whether exploitation requires local access, authentication, or user interaction.
Engineers running the Linux kernel with the ccree crypto driver should check their installations; affected versions were not provided.