Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-38564
HistoryJun 19, 2024 - 1:35 p.m.

CVE-2024-38564 bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE

2024-06-1913:35:32
Linux
github.com
bpf
linux kernel
cgroup_skb
attach type enforcement
cve-2024-38564

7.2 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE

bpf_prog_attach uses attach_type_to_prog_type to enforce proper
attach type for BPF_PROG_TYPE_CGROUP_SKB. link_create uses
bpf_prog_get and relies on bpf_prog_attach_check_attach_type
to properly verify prog_type <> attach_type association.

Add missing attach_type enforcement for the link_create case.
Otherwise, it’s currently possible to attach cgroup_skb prog
types to other cgroup hooks.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "af6eea57437a",
        "lessThan": "6675c541f540",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af6eea57437a",
        "lessThan": "67929e973f5a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af6eea57437a",
        "lessThan": "b34bbc766510",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "af6eea57437a",
        "lessThan": "543576ec15b1",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/bpf/syscall.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.7",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "6.6.33",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.12",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9.3",
        "versionType": "custom",
        "lessThanOrEqual": "6.9.*"
      },
      {
        "status": "unaffected",
        "version": "6.10-rc1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/bpf/syscall.c"
    ],
    "defaultStatus": "affected"
  }
]

7.2 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

Related for VULNRICHMENT:CVE-2024-38564