CVE-2024-35903
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-35903 is a vulnerability in the Linux kernel's x86/bpf subsystem, discovered and disclosed in May 2024. The issue specifically relates to incorrect IP (Instruction Pointer) calculations after emitting call depth accounting in the BPF JIT compiler for x86 architecture (Kernel Git).

Technical details

The vulnerability stems from a bug in the x86/bpf JIT compiler where the IP passed to emit_patch function fails to calculate the correct offset for the CALL instruction when x86_call_depth_emit_accounting emits code. This incorrect calculation causes the system to skip some instructions, potentially leading to a system crash. The issue has been assigned a CVSS v3.1 base score of 5.5 (MEDIUM) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause the system to crash due to skipped instructions in the BPF JIT compiler, resulting in a denial of service condition (Kernel Git).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel by adjusting the IP calculation in the emit_rsb_call function. The fix involves properly accounting for the code emitted by x86_call_depth_emit_accounting when calculating the CALL instruction offset (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management