Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2024-53099

Опубликовано: 25 нояб. 2024
Источник: redhat
CVSS3: 6

Описание

In the Linux kernel, the following vulnerability has been resolved: bpf: Check validity of link->type in bpf_link_show_fdinfo() If a newly-added link type doesn't invoke BPF_LINK_TYPE(), accessing bpf_link_type_strs[link->type] may result in an out-of-bounds access. To spot such missed invocations early in the future, checking the validity of link->type in bpf_link_show_fdinfo() and emitting a warning when such invocations are missed.

A flaw was found in the Linux kernel's BPF (Berkeley Packet Filter) subsystem. A missing validation check on link types in the link file descriptor information handler can result in an out-of-bounds read. A local user could exploit this vulnerability to trigger a kernel crash, resulting in a Denial of Service (DoS), or potentially disclose sensitive kernel memory.

Отчет

The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged_bpf_disabled sysctl. This would require a privileged user with CAP_SYS_ADMIN or root to be able to abuse this flaw reducing its attack space. For the Red Hat Enterprise Linux 8 to confirm the current state, inspect the sysctl with the command:

# cat /proc/sys/kernel/unprivileged_bpf_disabled

The setting of 1 would mean that unprivileged users can not use eBPF, mitigating the flaw.

Меры по смягчению последствий

Disable unprivileged access to the eBPF subsystem via sysctl:

  1. Apply the setting immediately:

sysctl -w kernel.unprivileged_bpf_disabled=1

  1. To persist this setting across system reboots, write the configuration to /etc/sysctl.d/:

echo "kernel.unprivileged_bpf_disabled = 1" > /etc/sysctl.d/50-unprivileged_bpf.conf

sysctl --system

Caveats: This setting prevents processes without CAP_SYS_ADMIN or CAP_BPF capabilities from utilizing eBPF features. Unprivileged eBPF is already disabled by default on supported versions of Red Hat Enterprise Linux. This mitigation does not restrict privileged processes or root users. Applying the sysctl takes effect immediately without requiring a system reboot.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 8kernelWill not fix
Red Hat Enterprise Linux 8kernel-rtWill not fix
Red Hat Enterprise Linux 9kernelWill not fix

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-125
https://bugzilla.redhat.com/show_bug.cgi?id=2328788kernel: bpf: Check validity of link->type in bpf_link_show_fdinfo()

6 Medium

CVSS3

Связанные уязвимости

CVSS3: 7.1
ubuntu
почти 2 года назад

In the Linux kernel, the following vulnerability has been resolved: bpf: Check validity of link->type in bpf_link_show_fdinfo() If a newly-added link type doesn't invoke BPF_LINK_TYPE(), accessing bpf_link_type_strs[link->type] may result in an out-of-bounds access. To spot such missed invocations early in the future, checking the validity of link->type in bpf_link_show_fdinfo() and emitting a warning when such invocations are missed.

CVSS3: 7.1
nvd
почти 2 года назад

In the Linux kernel, the following vulnerability has been resolved: bpf: Check validity of link->type in bpf_link_show_fdinfo() If a newly-added link type doesn't invoke BPF_LINK_TYPE(), accessing bpf_link_type_strs[link->type] may result in an out-of-bounds access. To spot such missed invocations early in the future, checking the validity of link->type in bpf_link_show_fdinfo() and emitting a warning when such invocations are missed.

CVSS3: 7.1
msrc
9 месяцев назад

bpf: Check validity of link->type in bpf_link_show_fdinfo()

CVSS3: 7.1
debian
почти 2 года назад

In the Linux kernel, the following vulnerability has been resolved: b ...

CVSS3: 7.1
github
почти 2 года назад

In the Linux kernel, the following vulnerability has been resolved: bpf: Check validity of link->type in bpf_link_show_fdinfo() If a newly-added link type doesn't invoke BPF_LINK_TYPE(), accessing bpf_link_type_strs[link->type] may result in an out-of-bounds access. To spot such missed invocations early in the future, checking the validity of link->type in bpf_link_show_fdinfo() and emitting a warning when such invocations are missed.

6 Medium

CVSS3

Уязвимость CVE-2024-53099 в Red Hat CVE — exploitDog