Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-42072

published high CVSS 3.1 · 7.8

bpf: Fix may_goto with negative offset.

Published
29 Jul 2024, 15:52:35 UTC
Updated
05 Aug 2026, 11:35:30 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux011832b97b311bb9e3c27945bc0d1089a14209c9 to < 175827e04f4be53f3dfb57edf12d0d49b18fd939 · 011832b97b311bb9e3c27945bc0d1089a14209c9 to < 2b2efe1937ca9f8815884bd4dcd5b32733025103 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.9.8 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix may_goto with negative offset. Zac's syzbot crafted a bpf prog that exposed two bugs in may_goto. The 1st bug is the way may_goto is patched. When offset is negative it should be patched differently. The 2nd bug is in the verifier: when current state may_goto_depth is equal to visited state may_goto_depth it means there is an actual infinite loop. It's not correct to prune exploration of the program at this point. Note, that this check doesn't limit the program to only one may_goto insn, since 2nd and any further may_goto will increment may_goto_depth only in the queued state pushed for future exploration. The current state will have may_goto_depth == 0 regardless of number of may_goto insns and the verifier has to explore the program until bpf_exit.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached through the bpf(BPF_PROG_LOAD) syscall, which requires local access to the machine; the mis-patched program is then run by attaching it to the attacker's own socket. No network-facing service parses the malicious input. AC:L - The attacker fully authors the BPF program and chooses the negative may_goto offset, so the 3-instruction control-flow skew is deterministic and reproducible on every load — no race, timing window, or unpredictable memory layout is involved. PR:L - may_goto carries no capability check in the verifier, and an unprivileged local user can load a BPF_PROG_TYPE_SOCKET_FILTER program whenever kernel.unprivileged_bpf_disabled is 0, or via a delegated BPF token / container-granted CAP_BPF (syscall.c:2753). Basic local user access is sufficient. UI:N - The attacker loads and attaches the program entirely on their own; execution is triggered by their own socket traffic with no action by any other user or administrator. S:U - The corruption occurs in kernel memory of the same host and results in a conventional local privilege escalation; no VM, IOMMU, or other security-authority boundary is crossed. C:H - The verified-vs-executed control-flow divergence lets the attacker skip the bounds/mask instructions guarding a load, turning it into a read from an attacker-chosen address — an arbitrary kernel memory read primitive that discloses arbitrary kernel data. I:H - The same primitive applied to a store gives an arbitrary kernel memory write with attacker-controlled address and value, a full verifier bypass that enables control-flow hijacking and privilege escalation. A:H - With off == -3 the patched JEQ becomes a self-jump, producing an unbreakable in-kernel loop (hard lockup / RCU stall), and the broken is_state_visited() check independently lets genuinely infinite loops pass verification; corrupted memory accesses also readily panic the kernel.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 011832b97b311bb9e3c27945bc0d1089a14209c9 to < 175827e04f4be53f3dfb57edf12d0d49b18fd939 (affected · git)011832b97b311bb9e3c27945bc0d1089a14209c9 to < 2b2efe1937ca9f8815884bd4dcd5b32733025103 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.9 (affected)0 to < 6.9 (unaffected · semver)6.9.8 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

3

Linux · cna

bpf: Fix may_goto with negative offset.

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
ae4e0c1277a1dea6bc551c8d842894d29ea3eb95454e7c277b9afbc687fb7658
Ingested
23 Sep 2026, 08:26:31 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected