{"id":"CVE-2022-49258","aliases":["CVE-2022-49258"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: ccree - Fix use after free in cc_cipher_exit()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccree - Fix use after free in cc_cipher_exit()\n\nkfree_sensitive(ctx_p->user.key) will free the ctx_p->user.key. But\nctx_p->user.key is still used in the next line, which will lead to a\nuse after free.\n\nWe can call kfree_sensitive() after dev_dbg() to avoid the uaf.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccree - Fix use after free in cc_cipher_exit()\n\nkfree_sensitive(ctx_p->user.key) will free the ctx_p->user.key. But\nctx_p->user.key is still used in the next line, which will lead to a\nuse after free.\n\nWe can call kfree_sensitive() after dev_dbg() to avoid the uaf.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: crypto: ccree - Se corrige el uso después de liberación en cc_cipher_exit() kfree_sensitive(ctx_p-&amp;gtuser.key) liberará ctx_p-&amp;gtuser.key. Pero ctx_p-&amp;gtuser.key aún se usa en la siguiente línea, lo que provocará un uso después de liberación. Podemos llamar a kfree_sensitive() después de dev_dbg() para evitar el uaf.","source":"nvd"}],"published":"2025-02-26T01:56:11.561Z","modified":"2026-06-17T05:17:31.780Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"63ee04c8b491ee148489347e7da9fbfd982ca2bb","fixed":"c93017c8d5ebf55a4e453ac7c84cc84cf92ab570","status":"affected"},{"type":"git","introduced":"63ee04c8b491ee148489347e7da9fbfd982ca2bb","fixed":"335bf1fc74f775a8255257aa3e33763f2257b676","status":"affected"},{"type":"git","introduced":"63ee04c8b491ee148489347e7da9fbfd982ca2bb","fixed":"25c358efee5153dfd240d4e0d3169d5bebe9cacd","status":"affected"},{"type":"git","introduced":"63ee04c8b491ee148489347e7da9fbfd982ca2bb","fixed":"cffb5382bd8d3cf21b874ab5b84bf7618932286b","status":"affected"},{"type":"git","introduced":"63ee04c8b491ee148489347e7da9fbfd982ca2bb","fixed":"3d950c34074ed74d2713c3856ba01264523289e6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"5.10.110","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.17","fixed":"5.10.110"},{"status":"affected","introduced":"5.11","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c93017c8d5ebf55a4e453ac7c84cc84cf92ab570","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/335bf1fc74f775a8255257aa3e33763f2257b676","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25c358efee5153dfd240d4e0d3169d5bebe9cacd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cffb5382bd8d3cf21b874ab5b84bf7618932286b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d950c34074ed74d2713c3856ba01264523289e6","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-27T17:58:54.341Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49258","url":"https://www.cve.org/CVERecord?id=CVE-2022-49258","licence":"CVE Terms of Use","modified":"2026-05-11T18:56:13.768Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49258","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49258","licence":"Public domain","modified":"2026-06-17T05:17:31.780Z"}],"updatedAt":"2026-11-25T22:58:20.332Z","epss":{"score":0.00268,"percentile":0.20156,"date":"2026-12-02T12:00:21.000Z"}}