{
  "cveId": "CVE-2021-46951",
  "url": "https://patchblox.com/security/cve/CVE-2021-46951",
  "summary": "CVE-2021-46951 is fixed in linux on 1 platform, first by DEBIAN-CVE-2021-46951, released February 27, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  tpm: efi: Use local variable for calculating fin...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  tpm: efi: Use local variable for calculating final log size  When tpm_read_log_efi is called multiple times, which happens when one loads and unloads a TPM2 driver multiple times, then the global variable efi_tpm_final_log_size will at some point become a negative number due to the subtraction of final_events_preboot_size occurring each time. Use a local variable to avoid this integer underflow.  The following issue is now resolved:  Mar  8 15:35:12 hibinst kernel: Hardware name: QEMU Standard PC (Q35 \u002B ICH9, 2009), BIOS 0.0.0 02/06/2015 Mar  8 15:35:12 hibinst kernel: Workqueue: tpm-vtpm vtpm_proxy_work [tpm_vtpm_proxy] Mar  8 15:35:12 hibinst kernel: RIP: 0010:__memcpy\u002B0x12/0x20 Mar  8 15:35:12 hibinst kernel: Code: 00 b8 01 00 00 00 85 d2 74 0a c7 05 44 7b ef 00 0f 00 00 00 c3 cc cc cc 66 66 90 66 90 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 \u003Cf3\u003E 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4 Mar  8 15:35:12 hibinst kernel: RSP: 0018:ffff9ac4c0fcfde0 EFLAGS: 00010206 Mar  8 15:35:12 hibinst kernel: RAX: ffff88f878cefed5 RBX: ffff88f878ce9000 RCX: 1ffffffffffffe0f Mar  8 15:35:12 hibinst kernel: RDX: 0000000000000003 RSI: ffff9ac4c003bff9 RDI: ffff88f878cf0e4d Mar  8 15:35:12 hibinst kernel: RBP: ffff9ac4c003b000 R08: 0000000000001000 R09: 000000007e9d6073 Mar  8 15:35:12 hibinst kernel: R10: ffff9ac4c003b000 R11: ffff88f879ad3500 R12: 0000000000000ed5 Mar  8 15:35:12 hibinst kernel: R13: ffff88f878ce9760 R14: 0000000000000002 R15: ffff88f77de7f018 Mar  8 15:35:12 hibinst kernel: FS:  0000000000000000(0000) GS:ffff88f87bd00000(0000) knlGS:0000000000000000 Mar  8 15:35:12 hibinst kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Mar  8 15:35:12 hibinst kernel: CR2: ffff9ac4c003c000 CR3: 00000001785a6004 CR4: 0000000000060ee0 Mar  8 15:35:12 hibinst kernel: Call Trace: Mar  8 15:35:12 hibinst kernel: tpm_read_log_efi\u002B0x152/0x1a7 Mar  8 15:35:12 hibinst kernel: tpm_bios_log_setup\u002B0xc8/0x1c0 Mar  8 15:35:12 hibinst kernel: tpm_chip_register\u002B0x8f/0x260 Mar  8 15:35:12 hibinst kernel: vtpm_proxy_work\u002B0x16/0x60 [tpm_vtpm_proxy] Mar  8 15:35:12 hibinst kernel: process_one_work\u002B0x1b4/0x370 Mar  8 15:35:12 hibinst kernel: worker_thread\u002B0x53/0x3e0 Mar  8 15:35:12 hibinst kernel: ? process_one_work\u002B0x370/0x370",
  "published": "2024-02-27T19:04:06Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00235,
  "epssPercentile": 0.14569,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-46951",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-46951",
      "released": "2024-02-27T19:04:06Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-46951",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-46951",
      "released": "2024-02-27T19:04:06Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-46951",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-46951",
      "released": "2024-02-27T19:04:06Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T19:38:12Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}