Описание
In the Linux kernel, the following vulnerability has been resolved:
net/sched: drr: clamp quantum in change class
drr_change_class() rejects explicit quantum==0 but falls back to
psched_mtu() with no floor. With a crafted size table qdisc_pkt_len
reaches ~2 GiB, so quantum=1 (or a zero psched_mtu on a headerless
device) makes the deficit-refill loop spin under the qdisc lock.
Add clamp_t(u32, quantum, 256, 1<<20) after the zero reject and on the
fallback path. The explicit-zero reject is preserved.
Conditions to recreate the bug:
CONFIG_NET_SCH_DRR=y. Requires CAP_NET_ADMIN (namespace-local via
unshare -Urn suffices).
tc qdisc add dev dummy0 root drr
tc class add dev dummy0 parent 1: classid 1:1 drr quantum 1
A flaw was found in the Linux kernel's Deficit Round Robin (DRR) network packet scheduler. This vulnerability allows a local user with network administration privileges to cause a Denial of Service (DoS) by configuring a traffic class with an unconstrained low quantum value. When processed with large packet lengths, this issue causes the deficit refill mechanism to loop excessively while holding a lock, leading to a system lockup.
Отчет
A low impact denial of service flaw was found in the Linux kernel's Deficit Round Robin (DRR) network packet scheduler (net/sched/sch_drr.c). When creating or changing a DRR class, drr_change_class() rejects an explicit quantum of 0 but falls back to psched_mtu() without enforcing a minimum value. A local user with CAP_NET_ADMIN privileges in a network namespace, which an unprivileged local user can obtain through unprivileged user namespaces when they are enabled, can configure a traffic class with a very small quantum value. Combined with large packet lengths, for example from a crafted size table, this makes the deficit refill loop iterate excessively while holding the qdisc lock, consuming the CPU and causing a system lockup. This issue affects the kernel and kernel-rt packages in Red Hat Enterprise Linux 7 (Extended Lifecycle Support) and Red Hat Enterprise Linux 8, as well as the Red Hat Enterprise Linux 8 based CoreOS image shipped with OpenShift Container Platform 4.12. Red Hat Enterprise Linux 9 and 10, Red Hat In-Vehicle OS, and OpenShift Container Platform releases based on RHEL CoreOS 9 are not affected because the vulnerable code is not present in those versions. Exploitation requires local access with network administration privileges and the impact is limited to availability, with no effect on confidentiality or integrity; for this reason Red Hat rates the impact of this flaw as Low, although the CVSS 3.1 base score is 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, Moderate). A fix for the affected Red Hat Enterprise Linux 7 and 8 based offerings is deferred given the low severity of the flaw and the privilege level required to trigger it; the residual risk is that a local user who holds CAP_NET_ADMIN in a network namespace can hang the affected system.
Меры по смягчению последствий
Exploitation requires the ability to configure queueing disciplines, which is limited to users holding CAP_NET_ADMIN in a network namespace. To prevent unprivileged local users from acquiring namespace-local CAP_NET_ADMIN through unprivileged user namespaces, user namespace creation can be disabled by setting the sysctl user.max_user_namespaces to 0 (for example with 'sysctl -w user.max_user_namespaces=0', persisted in /etc/sysctl.d/). Note that this can affect functionality that relies on user namespaces, such as containers, and it does not prevent the issue from being triggered by users who already hold CAP_NET_ADMIN on the host or in an existing network namespace.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | ||
| 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 | Not affected | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Fix deferred | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Not affected |
Показывать по
Дополнительная информация
Статус:
EPSS
5.5 Medium
CVSS3
Связанные уязвимости
In the Linux kernel, the following vulnerability has been resolved: net/sched: drr: clamp quantum in change class drr_change_class() rejects explicit quantum==0 but falls back to psched_mtu() with no floor. With a crafted size table qdisc_pkt_len reaches ~2 GiB, so quantum=1 (or a zero psched_mtu on a headerless device) makes the deficit-refill loop spin under the qdisc lock. Add clamp_t(u32, quantum, 256, 1<<20) after the zero reject and on the fallback path. The explicit-zero reject is preserved. Conditions to recreate the bug: CONFIG_NET_SCH_DRR=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices). tc qdisc add dev dummy0 root drr tc class add dev dummy0 parent 1: classid 1:1 drr quantum 1
In the Linux kernel, the following vulnerability has been resolved: net/sched: drr: clamp quantum in change class drr_change_class() rejects explicit quantum==0 but falls back to psched_mtu() with no floor. With a crafted size table qdisc_pkt_len reaches ~2 GiB, so quantum=1 (or a zero psched_mtu on a headerless device) makes the deficit-refill loop spin under the qdisc lock. Add clamp_t(u32, quantum, 256, 1<<20) after the zero reject and on the fallback path. The explicit-zero reject is preserved. Conditions to recreate the bug: CONFIG_NET_SCH_DRR=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices). tc qdisc add dev dummy0 root drr tc class add dev dummy0 parent 1: classid 1:1 drr quantum 1
In the Linux kernel, the following vulnerability has been resolved: n ...
In the Linux kernel, the following vulnerability has been resolved: net/sched: drr: clamp quantum in change class drr_change_class() rejects explicit quantum==0 but falls back to psched_mtu() with no floor. With a crafted size table qdisc_pkt_len reaches ~2 GiB, so quantum=1 (or a zero psched_mtu on a headerless device) makes the deficit-refill loop spin under the qdisc lock. Add clamp_t(u32, quantum, 256, 1<<20) after the zero reject and on the fallback path. The explicit-zero reject is preserved. Conditions to recreate the bug: CONFIG_NET_SCH_DRR=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices). tc qdisc add dev dummy0 root drr tc class add dev dummy0 parent 1: classid 1:1 drr quantum 1
EPSS
5.5 Medium
CVSS3