{"id":"CVE-2026-143098","state":"PUBLISHED","title":"tpm: eventlog: check the payload size before reading tag events","description":"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.","publishedAt":"2026-12-03T09:19:17.951Z","updatedAt":"2026-12-03T09:19:17.951Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"8cfb77fd2303baf3fefba25a4340f934b63e2ff8","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"edd50f6d489394d9136b49885c9e9da678e5841d","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"4511db5dc463c3d955e9c795ea67e8635177ed0f","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"53958ee9043b05f9460b17f8a063cc70fe08be57","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"0bc5d911512abfe6e074d987e2644ce623049520","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"0a385f668ba77d29ae167c1668fd452418ebc9d6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/eventlog/tpm1.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.16","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/eventlog/tpm1.c"]}],"references":["https://git.kernel.org/stable/c/8cfb77fd2303baf3fefba25a4340f934b63e2ff8","https://git.kernel.org/stable/c/edd50f6d489394d9136b49885c9e9da678e5841d","https://git.kernel.org/stable/c/4511db5dc463c3d955e9c795ea67e8635177ed0f","https://git.kernel.org/stable/c/53958ee9043b05f9460b17f8a063cc70fe08be57","https://git.kernel.org/stable/c/0bc5d911512abfe6e074d987e2644ce623049520","https://git.kernel.org/stable/c/0a385f668ba77d29ae167c1668fd452418ebc9d6"],"weaknesses":[],"ingestedAt":"2026-12-03T09:28:04.553Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143098.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143098","state":"PUBLISHED","datePublished":"2026-12-03T09:19:17.951Z","dateUpdated":"2026-12-03T09:19:17.951Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.348Z"},"containers":{"cna":{"title":"tpm: eventlog: check the payload size before reading tag events","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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"8cfb77fd2303baf3fefba25a4340f934b63e2ff8","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"edd50f6d489394d9136b49885c9e9da678e5841d","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"4511db5dc463c3d955e9c795ea67e8635177ed0f","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"53958ee9043b05f9460b17f8a063cc70fe08be57","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"0bc5d911512abfe6e074d987e2644ce623049520","versionType":"git"},{"version":"55a82ab3181be039c6440d3f2f69260ad6fe2988","status":"affected","lessThan":"0a385f668ba77d29ae167c1668fd452418ebc9d6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/eventlog/tpm1.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.16","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/eventlog/tpm1.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8cfb77fd2303baf3fefba25a4340f934b63e2ff8"},{"url":"https://git.kernel.org/stable/c/edd50f6d489394d9136b49885c9e9da678e5841d"},{"url":"https://git.kernel.org/stable/c/4511db5dc463c3d955e9c795ea67e8635177ed0f"},{"url":"https://git.kernel.org/stable/c/53958ee9043b05f9460b17f8a063cc70fe08be57"},{"url":"https://git.kernel.org/stable/c/0bc5d911512abfe6e074d987e2644ce623049520"},{"url":"https://git.kernel.org/stable/c/0a385f668ba77d29ae167c1668fd452418ebc9d6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:17.951Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}