PT-2026-166953
CVE-2026-143098
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾