crypto: ccree - Fix use after free in cc_cipher_exit()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.110, 5.15.33, 5.16.19, 5.17.2
- CVEs
- CVE-2022-49258
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 14:26 UTC · Revision 1
Source evidence
crypto: ccree - Fix use after free in cc_cipher_exit()
core-osv · Original sourcePublished 26 Feb 2025, 01:56 UTC
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.
osv:CVE-2022-49258
Kernel
Fixed versions: 5.10.110, 5.15.33, 5.16.19, 5.17.2
Complete source record
{
"id": "58ccb92cf901cde88cf94de9a9ccd756364eb566f1235d51c3314923d5017520",
"url": "https://osv.dev/vulnerability/CVE-2022-49258",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "crypto: ccree - Fix use after free in cc_cipher_exit()",
"summary": "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.",
"evidence": "osv:CVE-2022-49258",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.110",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.33",
"evidence": "/affected/1/ranges"
},
{
"value": "5.16.19",
"evidence": "/affected/1/ranges"
},
{
"value": "5.17.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-49258",
"aliases": [
"CVE-2022-49258"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "63ee04c8b491ee148489347e7da9fbfd982ca2bb"
},
{
"fixed": "c93017c8d5ebf55a4e453ac7c84cc84cf92ab570"
},
{
"fixed": "335bf1fc74f775a8255257aa3e33763f2257b676"
},
{
"fixed": "25c358efee5153dfd240d4e0d3169d5bebe9cacd"
},
{
"fixed": "cffb5382bd8d3cf21b874ab5b84bf7618932286b"
},
{
"fixed": "3d950c34074ed74d2713c3856ba01264523289e6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49258.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.17.0"
},
{
"fixed": "5.10.110"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.33"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.16.19"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.17.0"
},
{
"fixed": "5.17.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49258.json"
}
}
],
"modified": "2026-10-28T02:30:51.113999245Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/25c358efee5153dfd240d4e0d3169d5bebe9cacd",
"https://git.kernel.org/stable/c/335bf1fc74f775a8255257aa3e33763f2257b676",
"https://git.kernel.org/stable/c/3d950c34074ed74d2713c3856ba01264523289e6",
"https://git.kernel.org/stable/c/c93017c8d5ebf55a4e453ac7c84cc84cf92ab570",
"https://git.kernel.org/stable/c/cffb5382bd8d3cf21b874ab5b84bf7618932286b",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49258.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49258",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49258.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49258",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 519621,
"published_at": "2025-02-26T01:56:11.561+00:00"
}