Vulnerability record
tpm: eventlog: check the payload size before reading tag events
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…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources