7.8high
arch/mips/net/bpfjit.c in the Linux kernel before 5.4.10 can generate undesirable machine code when transforming unprivileged cBPF programs…
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.58% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| linux linux_kernel | from 3.16 before 4.14.251, from 4.15 before 4.19.211, from 4.20 before 5.4.153, from 5.5 before 5.10.71, from 5.11 before 5.14.10 | NVD |
| netapp cloud_backup | Not specified | NVD |
| netapp h410c_firmware | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h300e_firmware | Not specified | NVD |
| netapp h500e_firmware | Not specified | NVD |
| netapp h700e_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| debian debian_linux | 9.0, 10.0 | NVD |
All scores
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.2high CVSS:2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
What each source says
CVE List
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.
NVD (es)
arch/mips/net/bpf_jit.c en el kernel de Linux anterior a la versión 5.4.10 puede generar código máquina no deseado al transformar programas cBPF sin privilegios, permitiendo la ejecución de código arbitrario dentro del contexto del kernel. Esto ocurre porque las ramas condicionales pueden superar el límite de 128 KB de la arquitectura MIPS
References
| http://www.openwall.com/lists/oss-security/2021/09/15/5 | mailing-list, patch, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20211008-0003/ | third-party-advisory | |
| https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=37cb28ec7d3a36a5bace7063a3dba633ab110f8b | exploit, mailing-list, patch, vendor-advisory | |
| https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.14.10 | mailing-list, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html | mailing-list, third-party-advisory | |
| https://www.debian.org/security/2022/dsa-5096 | third-party-advisory, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-38300 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-38300 changed 2026-06-17 | Public domain |