# CVE-2021-38300: arch/mips/net/bpfjit.c in the Linux kernel before 5.4.10 can generate undesirable machine code when transforming unprivileged cBPF programs…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-20T05:25:30.000Z
- Modified: 2026-06-17T04:01:49.833Z
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- 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
- netapp cloud_backup: no versions given
- netapp h410c_firmware: no versions given
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h300e_firmware: no versions given
- netapp h500e_firmware: no versions given
- netapp h700e_firmware: no versions given
- netapp h410s_firmware: no versions given
- debian debian_linux: 9.0; 10.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=37cb28ec7d3a36a5bace7063a3dba633ab110f8b> (exploit, mailing-list, patch, vendor-advisory)
- <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://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

- CVE List: [CVE-2021-38300](https://www.cve.org/CVERecord?id=CVE-2021-38300), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-38300](https://nvd.nist.gov/vuln/detail/CVE-2021-38300), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38300 · Whole record: https://cve.day/CVE-2021-38300.json · Rebuilt by cve.day 2026-11-25T22:58:04.043Z
