{"id":"RUSTSEC-2026-0484","aliases":["CVE-2026-20765","GHSA-56j3-r4r2-x3x6"],"title":"Inverted bitmap validation in `invalidate_l2_cached_ept`","titleSource":"OSV","descriptionSource":"OSV","description":"`tdx_guest::tdcall::invalidate_l2_cached_ept()` takes a bitmap that selects the\nL2 VMs whose cached EPT translations should be invalidated. Bits 1 through 3\nselect L2 VMs 1 through 3, and all other bits are reserved. The input check\nwas inverted:\n\n    if l2_vm_idx_bitmap & !0b1110 == 0 {\n        return Err(TdCallError::TdxOperandInvalid);\n    }\n\n`l2_vm_idx_bitmap & !0b1110` isolates the bits that are not allowed. A result\nof zero means the bitmap is valid, and the function returned an error in that\ncase. Every valid bitmap, such as `0b0010` or `0b1110`, was therefore rejected\nwith `TdxOperandInvalid`. Bitmaps with reserved bits set, such as `0b0001` or\n`0b1_0000`, were forwarded to the TDX module.\n\nIntel describes the issue as an incorrect comparison and classifies it as\nescalation of privilege, with a CVSS 4.0 base score of 4.6, in\nINTEL-SA-01462.\n\nThe flaw was corrected in commit\n[`311d33b`](https://github.com/intel/confidential-computing.tdx.tdx-guest/commit/311d33b18a5bef5dc67c9b0c86587dd00c77027e),\nreleased in 0.3.1. The function now rejects an empty bitmap and any bit\noutside `0b1110`.\n\nReported by [Borys Tsyrulnikov](https://borystsyrulnikov.dev).","severity":"medium","score":4.6,"published":"2026-08-11T12:00:00.000Z","modified":"2026-11-11T08:45:02.464Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"tdx-guest","sources":[{"name":"OSV · RUSTSEC-2026-0484","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0484"}],"ranges":[{"events":[{"introduced":"0.1.8"},{"fixed":"0.3.1"}],"type":"SEMVER"}],"versions":[],"fixed":["0.3.1"]}],"sourceAffected":[],"references":["https://crates.io/crates/tdx-guest","https://rustsec.org/advisories/RUSTSEC-2026-0484.html","https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01462.html","https://github.com/intel/confidential-computing.tdx.tdx-guest/commit/311d33b18a5bef5dc67c9b0c86587dd00c77027e","https://borystsyrulnikov.dev/posts/tdx-guest-l2-vm-bugs/"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0484","modified":"2026-11-11T08:45:02.464648743Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0484"}],"assessments":[{"source":"OSV","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":4.6}],"products":[],"remediation":[],"observedAt":"2026-11-12T00:23:53.344Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T22:40:31.031Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-12T13:10:37.779Z","attemptedAt":"2026-11-12T13:10:37.779Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-12T13:10:35.443Z","attemptedAt":"2026-11-12T13:10:35.443Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-12T13:10:35.845Z","attemptedAt":"2026-11-12T13:10:35.845Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-12T13:10:35.395Z","attemptedAt":"2026-11-12T13:10:35.395Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-20765","url":"https://www.first.org/epss/","probability":0.00304,"percentile":0.23409,"date":"2026-11-10","checkedAt":"2026-11-12T13:10:35.395Z"},{"source":"GitHub Advisory Database","id":"GHSA-56j3-r4r2-x3x6","url":"https://github.com/advisories/GHSA-56j3-r4r2-x3x6","modified":"2026-08-18T18:32:50Z","score":4.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","checkedAt":"2026-11-12T13:10:35.443Z"},{"source":"ENISA EUVD","id":"EUVD-2026-56491","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-56491","modified":"Aug 12, 2026, 3:54:40 PM","score":4.6,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","checkedAt":"2026-11-12T13:10:35.845Z"},{"source":"NVD","id":"CVE-2026-20765","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-20765","modified":"2026-08-18T15:48:19.603","score":4.6,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-12T13:10:37.779Z"},{"source":"NVD","id":"CVE-2026-20765","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-20765","modified":"2026-08-18T15:48:19.603","score":4.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","checkedAt":"2026-11-12T13:10:37.779Z"}],"aiSummary":null}