CVE-2024-42067

Executive Summary

CVE-2024-42067 exposes a flaw in the Linux kernel’s BPF JIT subsystem where a failed set_memory_rox() call can leave JIT‑compiled code pages writable, bypassing the intended read‑only protection. The oversight allows an attacker to modify or inject code into the JIT binary, potentially enabling privilege escalation or arbitrary code execution on affected systems. The patch now checks the return value of set_memory_rox() and aborts the JIT lock if the operation fails, restoring proper memory protection.


Authoritative CVE Metadata

  • CVSS Base Score: 7.8 (HIGH)
  • Last Modified: 21-10-26

Original Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()

set_memory_rox() can fail, leaving memory unprotected.

Check return and bail out when bpf_jit_binary_lock_ro() returns an error.