# CVE-2026-23344: crypto: ccp - Fix use-after-free on error path

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-02)
- Published: 2026-03-25T10:27:31.795Z
- Modified: 2026-06-17T10:21:23.473Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: ccp - Fix use-after-free on error path

In the error path of sev_tsm_init_locked(), the code dereferences 't'
after it has been freed with kfree(). The pr_err() statement attempts
to access t->tio_en and t->tio_init_done after the memory has been
released.

Move the pr_err() call before kfree(t) to access the fields while the
memory is still valid.

This issue reported by Smatch static analyser

(As written by CVE List.)

## Affected

- Linux Linux: from 4be423572da1f4c11f45168e3fafda870ddac9f8 before 79a26fe3175b9ed7c0c9541b197cb9786237c0f7; from 4be423572da1f4c11f45168e3fafda870ddac9f8 before 889b0e2721e793eb46cf7d17b965aa3252af3ec8; 6.19 (not affected: before 6.19; from 6.19.7 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.19.1 before 6.19.7; 6.19; 7.0

## References

- <https://git.kernel.org/stable/c/79a26fe3175b9ed7c0c9541b197cb9786237c0f7> (patch)
- <https://git.kernel.org/stable/c/889b0e2721e793eb46cf7d17b965aa3252af3ec8> (patch)

## Sources

- CVE List: [CVE-2026-23344](https://www.cve.org/CVERecord?id=CVE-2026-23344), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23344](https://nvd.nist.gov/vuln/detail/CVE-2026-23344), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23344 · Whole record: https://cve.day/CVE-2026-23344.json · Rebuilt by cve.day 2026-11-25T22:59:16.682Z
