Skip to main content
← All vulnerabilities
CVE-2021-3444

Linux kernel bpf verifier incorrect mod32 truncation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.12-rc1, 5.11.2, 5.10.19, 5.4.101
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux kernel

    From trunk · fixed in 5.12-rc1; From 5.11 · fixed in 5.11.2; From 5.10 · fixed in 5.10.19; From 5.4 · fixed in 5.4.101

References 7

git.kernel.org

openwall.com

packetstormsecurity.com

security.netapp.com

lists.debian.org