---
id: CVE-2024-42067
title: >-
  bpf: Take return from set_memory_rox() into account with
  bpf_jit_binary_lock_ro()
summary: >-
  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 whe…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= d48567c9a0d1e605639f8a8705a61bbb55fb4e84 <
    c20d0fa873039bce82d4b1b2ffcda8bb22242790
  - >-
    Linux >= d48567c9a0d1e605639f8a8705a61bbb55fb4e84 <
    044da7ae7afd4ef60806d73654a2e6a79aa4ed7a
  - >-
    Linux >= d48567c9a0d1e605639f8a8705a61bbb55fb4e84 <
    e60adf513275c3a38e5cb67f7fd12387e43a3ff5
  - Linux 6.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-09-10T16:19:56.137791Z'
published: '2024-07-29'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T12:34:57.072Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-42067'
references:
  - url: 'https://git.kernel.org/stable/c/c20d0fa873039bce82d4b1b2ffcda8bb22242790'
  - url: 'https://git.kernel.org/stable/c/044da7ae7afd4ef60806d73654a2e6a79aa4ed7a'
  - url: 'https://git.kernel.org/stable/c/e60adf513275c3a38e5cb67f7fd12387e43a3ff5'
tags:
  - cve.org
epss: 0.00233
epssPercentile: 0.1343
ingestedAt: '2026-10-21T12:48:53.735Z'
---

## Overview

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.

## Affected

- `Linux >= d48567c9a0d1e605639f8a8705a61bbb55fb4e84 < c20d0fa873039bce82d4b1b2ffcda8bb22242790`
- `Linux >= d48567c9a0d1e605639f8a8705a61bbb55fb4e84 < 044da7ae7afd4ef60806d73654a2e6a79aa4ed7a`
- `Linux >= d48567c9a0d1e605639f8a8705a61bbb55fb4e84 < e60adf513275c3a38e5cb67f7fd12387e43a3ff5`
- `Linux 6.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
