Lucene search

K
cvelistLinuxCVELIST:CVE-2024-42067
HistoryJul 29, 2024 - 3:52 p.m.

CVE-2024-42067 bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()

2024-07-2915:52:31
Linux
www.cve.org
4
linux kernel
vulnerability
bpf_jit_binary_lock_ro
set_memory_rox
memory unprotected
cve
error

EPSS

0

Percentile

5.0%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/arm/net/bpf_jit_32.c",
      "arch/loongarch/net/bpf_jit.c",
      "arch/mips/net/bpf_jit_comp.c",
      "arch/parisc/net/bpf_jit_core.c",
      "arch/s390/net/bpf_jit_comp.c",
      "arch/sparc/net/bpf_jit_comp_64.c",
      "arch/x86/net/bpf_jit_comp32.c",
      "include/linux/filter.h"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "08f6c05feb1d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "9fef36cad60d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "044da7ae7afd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "e60adf513275",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/arm/net/bpf_jit_32.c",
      "arch/loongarch/net/bpf_jit.c",
      "arch/mips/net/bpf_jit_comp.c",
      "arch/parisc/net/bpf_jit_core.c",
      "arch/s390/net/bpf_jit_comp.c",
      "arch/sparc/net/bpf_jit_comp_64.c",
      "arch/x86/net/bpf_jit_comp32.c",
      "include/linux/filter.h"
    ],
    "versions": [
      {
        "version": "6.6.37",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.38",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.8",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.0%