CVE-2025-68792

Source
https://cve.org/CVERecord?id=CVE-2025-68792
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68792.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-68792
Downstream
Related
Published
2026-01-13T15:29:04.226Z
Modified
2026-05-15T04:14:12.413193109Z
Summary
tpm2-sessions: Fix out of range indexing in name_size
Details

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

tpm2-sessions: Fix out of range indexing in name_size

'namesize' does not have any range checks, and it just directly indexes with TPMALG_ID, which could lead into memory corruption at worst.

Address the issue by only processing known values and returning -EINVAL for unrecognized values.

Make also 'tpmbufappendname' and 'tpmbuffillhmac_session' fallible so that errors are detected before causing any spurious TPM traffic.

End also the authorization session on failure in both of the functions, as the session state would be then by definition corrupted.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68792.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.12.66
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68792.json"