enter_l2_vcpu passes the wrong RCX operand to TDG.VP.ENTER
tdx_guest::tdcall::enter_l2_vcpu() invokes the TDG.VP.ENTER TDCALL. RCX must carry the L2 VM index in bits 53:52 and the invalidation control value (InvdTranslations, 0 to 3) in bits 1:0. The function computed that value as (l2_vm_idx << 52) | (invd_translations as u64), but then passed the raw l2_vm_idx in RCX instead.
Recorded fixes — tdx-guest: 0.3.1. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 0.1.8 before 0.3.1Semantic versions | 0.3.1 |
Version evidence: OSV · RUSTSEC-2026-0485
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0.1.8"
},
{
"fixed": "0.3.1"
}
],
"type": "SEMVER"
}
],
"versions": []
}