CVE-2024-45020
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| sles | affected | | |
| debian | bookworm | fixed | 0 |
| debian | bullseye | fixed | 0 |
| debian | forky | fixed | 6.10.7-1 |
| debian | sid | fixed | 6.10.7-1 |
| debian | trixie | fixed | 6.10.7-1 |
| almalinux | 9 | fixed | rv-5.14.0-503.19.1.el9_5.aarch64.rpm |
References
- https://access.redhat.com/errata/RHSA-2024:11486
- https://www.suse.com/security/cve/CVE-2024-45020.html
- https://security-tracker.debian.org/tracker/CVE-2024-45020
- https://bugzilla.redhat.com/2280462
- https://bugzilla.redhat.com/2293429
- https://bugzilla.redhat.com/2311717
- https://bugzilla.redhat.com/2312085
- https://bugzilla.redhat.com/2320254
- https://bugzilla.redhat.com/2320517
- https://bugzilla.redhat.com/2323904
- https://bugzilla.redhat.com/2323930
- https://bugzilla.redhat.com/2323937
- https://bugzilla.redhat.com/2323944
- https://bugzilla.redhat.com/2323955
- https://bugzilla.redhat.com/2324315
- https://bugzilla.redhat.com/2324332
- https://bugzilla.redhat.com/2324612
- https://bugzilla.redhat.com/2324867
- https://bugzilla.redhat.com/2324868
- https://bugzilla.redhat.com/2324892
- https://errata.almalinux.org/9/ALSA-2024-11486.html
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.