Описание
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.
A flaw was found in the Linux kernel's x86/tdx component. An off-by-one error in the handle_in() and handle_out() functions, specifically in the GENMASK calculation for port I/O operations, causes the mask to be one bit too wide. This incorrect handling of I/O sizes could potentially lead to unintended data access or modification during port I/O operations, which may result in information disclosure or data corruption.
Отчет
A moderate severity flaw was found in the Linux kernel's x86/tdx (Intel Trust Domain Extensions) guest port I/O handling. The handle_in() and handle_out() functions in arch/x86/coco/tdx/tdx.c computed the port I/O size mask as GENMASK(BITS_PER_BYTE * size, 0), which is one bit wider than intended (for example, 0x1FF instead of 0xFF for 1-byte I/O), so port I/O operations handled by the TDX guest support code could read or write one bit of data beyond the intended I/O size. Red Hat assessed this flaw as Moderate severity with a CVSS 3.1 score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H): exploitation requires local access, and the established impact is to system availability, such as a kernel panic or system instability. Although the upstream description mentions potential information disclosure or data corruption, the current Red Hat assessment does not establish confidentiality or integrity impact. The vulnerable code is present in Red Hat Enterprise Linux 8 and later kernel streams and in OpenShift Container Platform releases that ship the RHEL CoreOS 9 kernel, while Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, and earlier Red Hat Enterprise Linux 8 minor streams are not affected because the vulnerable code is not present in those kernels. The fix is deferred for the affected streams because this Moderate-severity flaw has a CVSS score below 7.0 and Red Hat does not file trackers for kernel flaws at this severity; the fix will be delivered through a future scheduled kernel update, and the residual risk is limited to local availability impact on systems where the TDX guest port I/O code path is reachable.
Меры по смягчению последствий
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Not affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Fix deferred |
Показывать по
Дополнительная информация
Статус:
EPSS
5.5 Medium
CVSS3
Связанные уязвимости
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.
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.
In the Linux kernel, the following vulnerability has been resolved: x ...
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.
Уязвимость ядра операционной системы Linux, связанная с ошибкой единичного смещения, позволяющая нарушителю вызвать отказ в обслуживании
EPSS
5.5 Medium
CVSS3