Skip to content
OpenAdvisories
Unscored CVE-2021-38300 EUVD-2021-24755GHSA-7f3j-x5jc-j32w

arch/mips/net/bpf_jit.c in the Linux kernel before 5.4.10 can generate undesirable machine code when transforming unprivileged cBPF program…

Published Sep 20, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

arch/mips/net/bpf_jit.c in the Linux kernel before 5.4.10 can generate undesirable machine code when transforming unprivileged cBPF programs, allowing execution of arbitrary code within the kernel context. This occurs because conditional branches can exceed the 128 KB limit of the MIPS architecture.

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.14.6-1 —
Debian 13 linux 5.14.6-1 —
Debian 12 linux 5.14.6-1 —
Debian 10 linux 4.19.232-1 DSA-5096-1
Debian 9 linux-4.19 4.19.232-1~deb9u1 DLA-2941-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-realtime +1 No fix yet —
Ubuntu 20.04 LTS linux-hwe-5.13 5.13.0-23.23~20.04.2 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1069.73+fips2 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1073.76+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1038.44 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1067.71~20.04.1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2059.61 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2041.45 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1075.84 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2024.26 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips No fix yet —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 kernel-livepatch-4.14.252-195.481 1.0-0.amzn2 ALAS2-2021-1719
Amazon Linux 2 perf +8 4.14.252-195.481.amzn2 ALAS2-2021-1719

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.10.78.1-1 —

Advisories 4

References