Skip to content
OpenAdvisories

Description

The eBPF RINGBUF bpf_ringbuf_reserve() function in the Linux kernel did not check that the allocated size was smaller than the ringbuf size, allowing an attacker to perform out-of-bounds writes within the kernel and therefore, arbitrary code execution. This issue was fixed via commit 4b81ccebaeee ("bpf, ringbuf: Deny reserve of buffers larger than ringbuf") (v5.13-rc4) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced via 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it") (v5.8-rc1).

Affected products

VendorProductAffectedFixed
Linux Linux kernel trunk – < v5.13-rc4, linux-5.12.y – < v5.12.4, linux-5.11.y – < v5.11.21, linux-5.10.y – < v5.10.37, v5.8 – < 5.8* v5.13-rc4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.10.38-1 —
Debian 13 linux 5.10.38-1 —
Debian 12 linux 5.10.38-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS linux-hwe-5.8 5.8.0-53.60~20.04.1 USN-4949-1
Ubuntu 20.04 LTS linux-oem-5.10 5.10.0-1026.27 USN-4948-1
Ubuntu 20.04 LTS linux-raspi2 No fix yet —
Ubuntu 20.04 LTS linux-riscv-5.8 5.8.0-25.27~20.04.1 —
Ubuntu 18.04 LTS linux-gcp +11 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-348.rt7.130.el8 RHSA-2021:4140
RHEL 8 perf +26 4.18.0-348.el8 RHSA-2021:4356

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 kernel-tools-libs-devel 4.18.0-348.el8 ALSA-2021:4356
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +5 5.3.18-59.5.2 SUSE-SU-2021:1977-1
SLES 15 SP3 kernel-azure +2 5.3.18-38.3.1 SUSE-SU-2021:1975-1
SLES 15 SP3 kernel-default-base 5.3.18-59.5.2.18.2.2 SUSE-SU-2021:1977-1
SLES 15 SP3 kernel-syms +1 5.3.18-59.5.1 SUSE-SU-2021:1977-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Live Patching 15 SP3 kernel-default 5.3.18-59.5.2 SUSE-SU-2021:1977-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_0 2-3.1 SUSE-SU-2021:2198-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_1 1-7.5.1 SUSE-SU-2021:1977-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed kernel-source 5.14.6-1.4 openSUSE-SU-2024:13704-1, openSUSE-SU-2024:10728-1
openSUSE Leap 15.3 kernel-64kb +7 5.3.18-59.5.2 openSUSE-SU-2021:1977-1
openSUSE Leap 15.3 kernel-azure +2 5.3.18-38.3.1 openSUSE-SU-2021:1975-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-59.5.2.18.2.2 openSUSE-SU-2021:1977-1
openSUSE Leap 15.3 kernel-syms +2 5.3.18-59.5.1 openSUSE-SU-2021:1977-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-348.el8 ELSA-2021-4356

Advisories 13

References