CVE-2022-49258

crypto: ccree - Fix use after free in cc_cipher_exit()

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
17.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00268 · 17.9th percentile
Published
2025-02-26T01:56Z
EPSS history
Timeline
  • 26 FEB 01:56Z
    crypto: ccree - Fix use after free in cc_cipher_exit()
    cvelistv5