{"id":"CVE-2026-143098","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:41.280","lastModified":"2026-12-03T10:17:41.280","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: eventlog: check the payload size before reading tag events\n\nThe EVENT_TAG branch of get_event_name() casts the event payload to\nstruct tcpa_pc_event and reads from it:\n\n\tpc_event = (struct tcpa_pc_event *)event_entry;\n\n\tswitch (do_endian_conversion(pc_event->event_id)) {\n\t...\n\t\tfor (i = 0; i < 20; i++)\n\t\t\td_len += sprintf(&data[2*i], \"%02x\",\n\t\t\t\t\tpc_event->event_data[i]);\n\nThe log iterators only verify that the event header plus the declared\nevent_size stays within the log buffer; they do not require the\npayload of an EVENT_TAG entry to be large enough for the fields the\nbranch reads. A truncated entry makes the branch read up to 20 bytes\nof event_data[] past the end of the entry, and, for the last entry in\nthe log, past the end of the buffer itself.\n\nThe legacy PC Client spec defines the EV_EVENT_TAG payload as a\nTCPA_PC_EVENT - event_id, event_size and event-type-specific data -\nso a conformant entry carries the 8-byte header and the hash-type\nids carry a full digest. The log itself, however, is an ACPI table\nthe firmware leaves in memory: the TPM never measures the log, so\nthe kernel cannot tell a conformant log from a corrupted one. The\niterators already work on that assumption - they stop once the\ndeclared event_size runs past the buffer end - and the readers\nshould apply the same rule to what they take off the payload.\n\nSkip entries whose payload cannot even hold the event id, and skip\nthe 20-byte digest dump when the payload cannot hold the full\ntcpa_pc_event header plus the digest, so the branch never reads\nbeyond the entry it is formatting."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/char/tpm/eventlog/tpm1.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","lessThan":"8cfb77fd2303baf3fefba25a4340f934b63e2ff8","versionType":"git","status":"affected"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","lessThan":"edd50f6d489394d9136b49885c9e9da678e5841d","versionType":"git","status":"affected"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","lessThan":"4511db5dc463c3d955e9c795ea67e8635177ed0f","versionType":"git","status":"affected"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","lessThan":"53958ee9043b05f9460b17f8a063cc70fe08be57","versionType":"git","status":"affected"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","lessThan":"0bc5d911512abfe6e074d987e2644ce623049520","versionType":"git","status":"affected"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","lessThan":"0a385f668ba77d29ae167c1668fd452418ebc9d6","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/char/tpm/eventlog/tpm1.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.16","status":"affected"},{"version":"0","lessThan":"2.6.16","versionType":"semver","status":"unaffected"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0a385f668ba77d29ae167c1668fd452418ebc9d6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/0bc5d911512abfe6e074d987e2644ce623049520","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4511db5dc463c3d955e9c795ea67e8635177ed0f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/53958ee9043b05f9460b17f8a063cc70fe08be57","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8cfb77fd2303baf3fefba25a4340f934b63e2ff8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/edd50f6d489394d9136b49885c9e9da678e5841d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}