Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-45020

HIGH 7.8EPSS 20%

bpf: Fix a kernel verifier crash in stacksafe()

Mitigation

  • Upgrade Linux to 6.6.48 or later.

Who should check

  • Anyone running Linux >= ab470fefce2837e66b771c60858118d50bb5bb10, < 7cad3174cc79519bf5f6c4441780264416822c08; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < bed2eb964c70b780fb55925892a74f26cb590b25; >= 6.6.15, < 6.6.48
  • Anyone running Linux 6.7

Vulnerability facts

Affected
Linux >= ab470fefce2837e66b771c60858118d50bb5bb10, < 7cad3174cc79519bf5f6c4441780264416822c08; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < bed2eb964c70b780fb55925892a74f26cb590b25; >= 6.6.15, < 6.6.48; Linux 6.7
Fixed in
Linux 7cad3174cc79519bf5f6c4441780264416822c08, Linux 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b, Linux 6.6.48
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
CWE
CWE-787
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix a kernel verifier crash in stacksafe() Daniel Hodges reported a kernel verifier crash when playing with sched-ext. Further investigation shows that the crash is due to invalid memory access in stacksafe(). More specifically, it is the following code: if (exact != NOT_EXACT && old->stack[spi].slot_type[i % BPF_REG_SIZE] != cur->stack[spi].slot_type[i % BPF_REG_SIZE]) return false; The 'i' iterates old->allocated_stack. If cur->allocated_stack < old->allocated_stack the out-of-bound access will happen. To fix the issue add 'i >= cur->allocated_stack' check such that if the condition is true, stacksafe() should fail. Otherwise, cur->stack[spi].slot_type[i % BPF_REG_SIZE] memory access is legal.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= ab470fefce2837e66b771c60858118d50bb5bb10, < 7cad3174cc79519bf5f6c4441780264416822c08; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < bed2eb964c70b780fb55925892a74f26cb590b25; >= 6.6.15, < 6.6.48—cvelist
Linux6.7—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-45020. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-45020.md
Affected: Linux >= ab470fefce2837e66b771c60858118d50bb5bb10, < 7cad3174cc79519bf5f6c4441780264416822c08; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < bed2eb964c70b780fb55925892a74f26cb590b25; >= 6.6.15, < 6.6.48; Linux…
Fixed in: Linux 7cad3174cc79519bf5f6c4441780264416822c08, Linux 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b, Linux 6.6.48

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-45020 being exploited?

There is no confirmed exploitation: CVE-2024-45020 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-45020?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-45020?

Linux >= ab470fefce2837e66b771c60858118d50bb5bb10, < 7cad3174cc79519bf5f6c4441780264416822c08; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < bed2eb964c70b780fb55925892a74f26cb590b25; >= 6.6.15, < 6.6.48; Linux 6.7.

Is there a fix for CVE-2024-45020?

Yes. Fixed in Linux 7cad3174cc79519bf5f6c4441780264416822c08, Linux 6e3987ac310c74bb4dd6a2fa8e46702fe505fb2b, Linux 6.6.48. Upgrade Linux to 6.6.48 or later.

How do I check if I'm affected by CVE-2024-45020?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors