7.8high
Linux kernel bpf verifier incorrect mod32 truncation
- Severity
- 7.8high CVSS:3.1 by canonical
- Exploit likelihood
- 0.61% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
Description
The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution. This issue was addressed in the upstream kernel in commit 9b00f1b78809 ("bpf: Fix truncation handling for mod32 dst reg wrt zero") and in Linux stable kernels 5.11.2, 5.10.19, and 5.4.101.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux kernel | from trunk before 5.12-rc1, from 5.11 before 5.11.2, from 5.10 before 5.10.19, from 5.4 before 5.4.101 | CVE List |
| linux linux_kernel | before 5.4.101, from 5.5.0 before 5.10.19, from 5.11 before 5.11.2 | NVD |
| debian debian_linux | 9.0 | NVD |
| canonical ubuntu_linux | 14.04, 16.04, 18.04, 20.04 | NVD |
All scores
| canonical | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| 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 | 4.6medium CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution. This issue was addressed in the upstream kernel in commit 9b00f1b78809 ("bpf: Fix truncation handling for mod32 dst reg wrt zero") and in Linux stable kernels 5.11.2, 5.10.19, and 5.4.101.
NVD (es)
El comprobador bpf en el kernel de Linux no manejó apropiadamente el truncamiento del registro de destino mod32 cuando se sabía que el registro de origen era 0. Un atacante local con la habilidad de cargar programas bpf podría usar esta ganancia para lecturas fuera de límites en la memoria del kernel que conllevan a una divulgación de información (memoria del kernel) y, posiblemente, escrituras fuera de límites que podrían conllevar a una ejecución de código. Este problema se solucionó en el kernel ascendente en el commit 9b00f1b78809 ("bpf: Fix truncation handling for mod32 dst reg wrt zero") y en los kernels estables de Linux versiones 5.11.2, 5.10.19 y 5.4.101
References
| https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809 | mailing-list, patch, vendor-advisory | |
| https://www.openwall.com/lists/oss-security/2021/03/23/2 | mailing-list, third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2021/03/23/2 | mailing-list, third-party-advisory | |
| http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html | third-party-advisory, vdb-entry | |
| https://security.netapp.com/advisory/ntap-20210416-0006/ | third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html | mailing-list, third-party-advisory | |
| http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html | third-party-advisory, vdb-entry | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3444 changed 2024-09-16 | CVE Terms of Use |
| NVD | CVE-2021-3444 changed 2026-06-17 | Public domain |