Описание
In the Linux kernel, the following vulnerability has been resolved:
bpf: Mark bpf_btf_find_by_name_kind() as sleepable
When bpf_btf_find_by_name_kind() finds a type in module BTF, it
returns a new BTF object fd through __btf_new_fd(). This reaches
anon_inode_getfd(), which can sleep while allocating or expanding the
current task fd table.
The helper prototype does not set might_sleep, so the verifier allows
the helper in non-sleepable contexts such as BPF timer callbacks. The
fd allocation can then sleep in softirq context and install the fd into
the interrupted task.
Mark the helper as sleepable. This preserves calls from the main body
of a sleepable syscall program while rejecting calls from its
non-sleepable regions.
A flaw was found in the Linux kernel's BPF (Berkeley Packet Filter) subsystem. The bpf_btf_find_by_name_kind() helper function was not properly marked as sleepable (capable of pausing execution while waiting for resources), allowing it to be executed in non-sleepable contexts such as timer callbacks. A local user with permissions to load BPF programs can exploit this issue to trigger a sleep operation during an atomic context. This can lead to kernel instability or a system crash, resulting in a Denial of Service (DoS).
Отчет
A low impact denial of service flaw was found in the Linux kernel's BPF subsystem. The bpf_btf_find_by_name_kind() BPF helper was not marked as sleepable even though it can sleep while allocating a new BTF object file descriptor, so the BPF verifier allowed it to be called from non-sleepable contexts such as BPF timer callbacks. In those contexts the file descriptor allocation can sleep in softirq/atomic context. A local user with the permissions required to load BPF programs could use a crafted BPF program to trigger a sleep operation in an atomic context, causing kernel instability or a system crash and resulting in a denial of service. Confidentiality and integrity are not impacted. This issue affects the kernel packages in Red Hat Enterprise Linux 8, 9, and 10 (including kernel-rt), Red Hat In-Vehicle OS, and OpenShift Container Platform 4 and 5 releases based on RHEL CoreOS 9. Red Hat Enterprise Linux 6 and 7 ELS, Red Hat Enterprise Linux 8.4 and 8.6, and OpenShift Container Platform 4.12 (based on RHEL CoreOS 8) are not affected because the vulnerable code is not present in those streams. Because this flaw is rated low impact, exploitation requires local access with BPF program loading privileges, and the consequence is limited to availability, the fix has been deferred and will be addressed in future scheduled kernel updates; the residual risk is that a privileged local user could crash an affected system.
Меры по смягчению последствий
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: bpf: Mark bpf_btf_find_by_name_kind() as sleepable When bpf_btf_find_by_name_kind() finds a type in module BTF, it returns a new BTF object fd through __btf_new_fd(). This reaches anon_inode_getfd(), which can sleep while allocating or expanding the current task fd table. The helper prototype does not set might_sleep, so the verifier allows the helper in non-sleepable contexts such as BPF timer callbacks. The fd allocation can then sleep in softirq context and install the fd into the interrupted task. Mark the helper as sleepable. This preserves calls from the main body of a sleepable syscall program while rejecting calls from its non-sleepable regions.
In the Linux kernel, the following vulnerability has been resolved: bpf: Mark bpf_btf_find_by_name_kind() as sleepable When bpf_btf_find_by_name_kind() finds a type in module BTF, it returns a new BTF object fd through __btf_new_fd(). This reaches anon_inode_getfd(), which can sleep while allocating or expanding the current task fd table. The helper prototype does not set might_sleep, so the verifier allows the helper in non-sleepable contexts such as BPF timer callbacks. The fd allocation can then sleep in softirq context and install the fd into the interrupted task. Mark the helper as sleepable. This preserves calls from the main body of a sleepable syscall program while rejecting calls from its non-sleepable regions.
In the Linux kernel, the following vulnerability has been resolved: b ...
In the Linux kernel, the following vulnerability has been resolved: bpf: Mark bpf_btf_find_by_name_kind() as sleepable When bpf_btf_find_by_name_kind() finds a type in module BTF, it returns a new BTF object fd through __btf_new_fd(). This reaches anon_inode_getfd(), which can sleep while allocating or expanding the current task fd table. The helper prototype does not set might_sleep, so the verifier allows the helper in non-sleepable contexts such as BPF timer callbacks. The fd allocation can then sleep in softirq context and install the fd into the interrupted task. Mark the helper as sleepable. This preserves calls from the main body of a sleepable syscall program while rejecting calls from its non-sleepable regions.
EPSS
5.5 Medium
CVSS3