x86/tdx: Fix off-by-one in port I/O handling
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: x86/tdx: Fix off-by-one in port I/O handling handle_in() and handle_out() in arch/x86/coco/tdx/tdx.c use: u64 mask = GENMASK(BITS_PER_BYTE * size, 0); GENMASK(h, l) includes bit h. For size=1 (INB), this produces GENMASK(8, 0) = 0x1FF (9 bits) instead of GENMASK(7, 0) = 0xFF (8 bits). The mask is one bit too wide for all I/O sizes. Fix the mask calculation.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 03149948832a078f759022ed5b92e722d8d23c26 · fixed in c6875423ad849ac234ab9812eb72f37ff8a490b4; From 03149948832a078f759022ed5b92e722d8d23c26 · fixed in 220011fe95fc78b2bc2d7d43893bc73957a5c811; From 03149948832a078f759022ed5b92e722d8d23c26 · fixed in 222b7005e4519f633b4cd666226256abbab46a1a; From 03149948832a078f759022ed5b92e722d8d23c26 · fixed in c4a22154870813d10aa0b4c734a574c726f9d4b0; From 03149948832a078f759022ed5b92e722d8d23c26 · fixed in bb45f705c4440dd3c689328319b88dd28770bbb8; From 03149948832a078f759022ed5b92e722d8d23c26 · fixed in 0f63e656b1c679d32ac595de29d10c03efca6a25
- Linux Linux
5.19
- KernelLinux
From 5.19.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.109; From 6.13.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4