CVE-2022-49258

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

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 01:56 AM UTC
Updated: June 17, 2026 at 05:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.17 ≤ v < 5.10.1104.17 ≤ v < 5.15.334.17 ≤ v < 5.16.194.17 ≤ v < 5.17.24.17 ≤ v < 5.185.11 ≤ v < 5.15.335.16 ≤ v < 5.16.195.17 ≤ v < 5.17.24.1763ee04c8b491ee148489347e7da9fbfd982ca2bb
Vendor states this is fixed in 25c358efee5153dfd240d4e0d3169d5bebe9cacd (fixed)
Vendor states this is fixed in 335bf1fc74f775a8255257aa3e33763f2257b676 (fixed)
Vendor states this is fixed in 3d950c34074ed74d2713c3856ba01264523289e6 (fixed)
Vendor states this is fixed in c93017c8d5ebf55a4e453ac7c84cc84cf92ab570 (fixed)
Vendor states this is fixed in cffb5382bd8d3cf21b874ab5b84bf7618932286b (fixed)
Vendor states this is fixed in 4.17 (unaffected)
Vendor states this is fixed in 5.10.110 (unaffected)
Vendor states this is fixed in 5.15.33 (unaffected)
Vendor states this is fixed in 5.16.19 (unaffected)
Vendor states this is fixed in 5.17.2 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/25c358efee5153dfd240d4e0d3169d5bebe9cacd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/335bf1fc74f775a8255257aa3e33763f2257b676
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3d950c34074ed74d2713c3856ba01264523289e6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c93017c8d5ebf55a4e453ac7c84cc84cf92ab570
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cffb5382bd8d3cf21b874ab5b84bf7618932286b

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card