CVE-2026-23344

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

State
Published
Severity
Not scored
Published
Mar 25, 2026
Updated
May 11, 2026
Reserved
Jan 13, 2026

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4be423572da1f4c11f45168e3fafda870ddac9f8 to before 79a26fe3175b9ed7c0c9541b197cb9786237c0f7Affected
  • 4be423572da1f4c11f45168e3fafda870ddac9f8 to before 889b0e2721e793eb46cf7d17b965aa3252af3ec8Affected
LinuxLinux
  • 6.19Affected
  • before 6.19Not affected
  • 6.19.7 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.