tpm: eventlog: check the payload size before reading tag events
Summary
| CVE | CVE-2026-143098 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 10:17:41 UTC |
| Updated | 2026-12-03 10:17:41 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: tpm: eventlog: check the payload size before reading tag events The EVENT_TAG branch of get_event_name() casts the event payload to struct tcpa_pc_event and reads from it: pc_event = (struct tcpa_pc_event *)event_entry; switch (do_endian_conversion(pc_event->event_id)) { ... for (i = 0; i < 20; i++) d_len += sprintf(&data[2*i], "%02x", pc_event->event_data[i]); The log iterators only verify that the event header plus the declared event_size stays within the log buffer; they do not require the payload of an EVENT_TAG entry to be large enough for the fields the branch reads. A truncated entry makes the branch read up to 20 bytes of event_data[] past the end of the entry, and, for the last entry in the log, past the end of the buffer itself. The legacy PC Client spec defines the EV_EVENT_TAG payload as a TCPA_PC_EVENT - event_id, event_size and event-type-specific data - so a conformant entry carries the 8-byte header and the hash-type ids carry a full digest. The log itself, however, is an ACPI table the firmware leaves in memory: the TPM never measures the log, so the kernel cannot tell a conformant log from a corrupted one. The iterators already work on that assumption - they stop once the declared event_size runs past the buffer end - and the readers should apply the same rule to what they take off the payload. Skip entries whose payload cannot even hold the event id, and skip the 20-byte digest dump when the payload cannot hold the full tcpa_pc_event header plus the digest, so the branch never reads beyond the entry it is formatting. |
Risk And Classification
EPSS: 0.002150000 probability, percentile 0.126010000 (date 2026-12-03)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 55a82ab3181be039c6440d3f2f69260ad6fe2988 8cfb77fd2303baf3fefba25a4340f934b63e2ff8 git | Not specified |
| CNA | Linux | Linux | affected 55a82ab3181be039c6440d3f2f69260ad6fe2988 edd50f6d489394d9136b49885c9e9da678e5841d git | Not specified |
| CNA | Linux | Linux | affected 55a82ab3181be039c6440d3f2f69260ad6fe2988 4511db5dc463c3d955e9c795ea67e8635177ed0f git | Not specified |
| CNA | Linux | Linux | affected 55a82ab3181be039c6440d3f2f69260ad6fe2988 53958ee9043b05f9460b17f8a063cc70fe08be57 git | Not specified |
| CNA | Linux | Linux | affected 55a82ab3181be039c6440d3f2f69260ad6fe2988 0bc5d911512abfe6e074d987e2644ce623049520 git | Not specified |
| CNA | Linux | Linux | affected 55a82ab3181be039c6440d3f2f69260ad6fe2988 0a385f668ba77d29ae167c1668fd452418ebc9d6 git | Not specified |
| CNA | Linux | Linux | affected 2.6.16 | Not specified |
| CNA | Linux | Linux | unaffected 2.6.16 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.276 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.227 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.120 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.66 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3.7 7.3.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.4-rc3 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/0a385f668ba77d29ae167c1668fd452418ebc9d6 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/8cfb77fd2303baf3fefba25a4340f934b63e2ff8 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/4511db5dc463c3d955e9c795ea67e8635177ed0f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/0bc5d911512abfe6e074d987e2644ce623049520 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/53958ee9043b05f9460b17f8a063cc70fe08be57 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/edd50f6d489394d9136b49885c9e9da678e5841d | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.