CVE-2024-42072: Linux kernel · bpf: Fix may_goto with negative offset.
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 24 Nov 2026, 19:31 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinux-raspi-realtimepkg:deb/ubuntu/linux-raspi-realtime?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-allwinner-5.19pkg:deb/ubuntu/linux-allwinner-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-5.19pkg:deb/ubuntu/linux-aws-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.2pkg:deb/ubuntu/linux-aws-6.2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.5pkg:deb/ubuntu/linux-aws-6.5?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-azure-5.19pkg:deb/ubuntu/linux-azure-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix for this vulnerability is available in the updated Linux kernel versions listed as affected. Users and administrators should apply the official kernel updates that address this issue to ensure the BPF verifier correctly handles may_goto instructions with negative offsets and infinite loop detection. No additional mitigations are specified beyond applying the patch.
Description
CVE-2024-42072 is a high-severity vulnerability in the Linux kernel's BPF verifier related to incorrect handling of the may_goto instruction with negative offsets. The flaw involves improper patching of negative offsets and incorrect pruning of program exploration when detecting infinite loops, potentially allowing malicious BPF programs to bypass verification. This issue affects multiple specific Linux kernel versions and has been resolved by correcting the verifier logic.
References
- ubuntu.com/security/CVE-2024-42072 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-42072 (opens in a new tab)
- git.kernel.org/linus/2b2efe1937ca9f8815884bd4dcd5b32733025103 (opens in a new tab)
- git.kernel.org/stable/c/175827e04f4be53f3dfb57edf12d0d49b18fd939 (opens in a new tab)
- git.kernel.org/stable/c/2b2efe1937ca9f8815884bd4dcd5b32733025103 (opens in a new tab)