CVE-2021-3444
Linux kernel bpf verifier incorrect mod32 truncation
Check your servers for CVE-2021-3444
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-3444 affects kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.61%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.8% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-681 Incorrect Conversion between Numeric Types
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| kernel |
affected from trunk, before 5.12-rc1 affected from 5.11, before 5.11.2 affected from 5.10, before 5.10.19 affected from 5.4, before 5.4.101
|
Is my server affected?
Find the installed version of kernel and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i kernel
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-3444 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-3444RHEL, Rocky, Alma, Fedora
rpm -q kernel
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-3444Alpine
apk list --installed | grep -i kernelWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-3444
trivy image --scanners vuln IMAGE | grep CVE-2021-3444
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://security.netapp.com/advisory/ntap-20210416-0006/ security.netapp.com
Other references
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809 git.kernel.org
- https://www.openwall.com/lists/oss-security/2021/03/23/2 openwall.com
- [oss-security] 20210323 [CVE-2021-3444] Linux kernel bpf verifier incorrect mod32 truncation openwall.com · mailing list
- http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html packetstormsecurity.com
- [debian-lts-announce] 20211015 [SECURITY] [DLA 2785-1] linux-4.19 security update lists.debian.org · mailing list
- http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html packetstormsecurity.com
Source: the record CVE-2021-3444 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse