Shellfeed logo Shellfeed

CVE-2026-89751 · UNKNOWN

Summary: x86/tdx: Fix off-by-one in port I/O handling

Details

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.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [03149948832a078f759022ed5b92e722d8d23c26 – c6875423ad849ac234ab9812eb72f37ff8a490b4]
  • Linux Kernel [5.19.0 – 6.1.188] [6.2.0 – 6.6.157] [6.7.0 – 6.12.109] [6.13.0 – 6.18.50] [6.19.0 – 7.2.4]

References