Описание
In the Linux kernel, the following vulnerability has been resolved:
net: usb: pegasus: don't rely on id table pointer arithmetic
The current code is broken when dynamic ID is involved; in such cases
usb_device_id parameter of probe lives on the heap and the pointer
arithmetic will get an index that is wildly out of bound. Instead of
keeping a side table for additional information, use driver_info field of
the usb_device_id.
The dynamic ID parsing code needs to be updated for this; convert it to
just write to the reserved entry for dynamic ID and remove the weird loop.
A flaw was found in the Linux kernel's Pegasus USB Ethernet driver. This vulnerability can lead to a Denial of Service (DoS) through a system crash. When dynamic device identifiers are configured, the driver improperly uses pointer calculations on heap memory instead of referencing its static device table. A local user can trigger an out-of-bounds memory read during device probing, resulting in system instability.
Отчет
A denial-of-service flaw of moderate impact was found in the Pegasus USB Ethernet adapter driver (drivers/net/usb/pegasus.c) in the Linux kernel as shipped with Red Hat Enterprise Linux, RHEL Real Time, RHEL for Edge/IVOS, and OpenShift RHEL CoreOS. When dynamic USB device identifiers are configured for the driver, the probe routine derives an entry index by performing pointer arithmetic on the heap-allocated usb_device_id structure instead of using the driver's static device-ID table. The resulting index can be wildly out of bounds, causing an out-of-bounds memory read during device probing. A local user who can trigger probing of a device matching a configured dynamic ID can use this flaw to crash the kernel and cause a denial of service; confidentiality and integrity are not affected (Red Hat CVSS 3.1 score 5.5, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H). The currently affected Red Hat products and streams (RHEL 7, 8, 9, and 10, including Real Time, Edge, and IVOS variants, and OpenShift RHEL CoreOS 4.12 through 5.1) are recorded as affected with the fix deferred; the RHEL 6 ELS stream is out of support scope. Because the issue is reachable only through local access on systems where dynamic device IDs are configured for this driver and the impact is limited to availability, the residual risk of the deferred fix is a local kernel crash and resulting system instability on such configurations.
Меры по смягчению последствий
The flaw is only triggered when dynamic device IDs are configured for the pegasus driver. Avoid adding dynamic USB device IDs for this driver (for example, do not use the new_id interface of the pegasus driver), so that device probing uses only the driver's static device-ID table. If Pegasus-based USB Ethernet adapters are not required on the system, the vulnerable code path can also be avoided by not loading the pegasus kernel module (for example, by blacklisting it).
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | ||
| Red Hat Enterprise Linux 7 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Fix deferred | ||
| 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 | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Fix deferred |
Показывать по
Дополнительная информация
Статус:
5.5 Medium
CVSS3
Связанные уязвимости
In the Linux kernel, the following vulnerability has been resolved: net: usb: pegasus: don't rely on id table pointer arithmetic The current code is broken when dynamic ID is involved; in such cases usb_device_id parameter of probe lives on the heap and the pointer arithmetic will get an index that is wildly out of bound. Instead of keeping a side table for additional information, use driver_info field of the usb_device_id. The dynamic ID parsing code needs to be updated for this; convert it to just write to the reserved entry for dynamic ID and remove the weird loop.
In the Linux kernel, the following vulnerability has been resolved: net: usb: pegasus: don't rely on id table pointer arithmetic The current code is broken when dynamic ID is involved; in such cases usb_device_id parameter of probe lives on the heap and the pointer arithmetic will get an index that is wildly out of bound. Instead of keeping a side table for additional information, use driver_info field of the usb_device_id. The dynamic ID parsing code needs to be updated for this; convert it to just write to the reserved entry for dynamic ID and remove the weird loop.
net: usb: pegasus: don't rely on id table pointer arithmetic
In the Linux kernel, the following vulnerability has been resolved: n ...
In the Linux kernel, the following vulnerability has been resolved: net: usb: pegasus: don't rely on id table pointer arithmetic The current code is broken when dynamic ID is involved; in such cases usb_device_id parameter of probe lives on the heap and the pointer arithmetic will get an index that is wildly out of bound. Instead of keeping a side table for additional information, use driver_info field of the usb_device_id. The dynamic ID parsing code needs to be updated for this; convert it to just write to the reserved entry for dynamic ID and remove the weird loop.
5.5 Medium
CVSS3