{
  "threat_severity" : "Low",
  "public_date" : "2024-02-22T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: bpf: Fix re-attachment branch in bpf_tracing_prog_attach",
    "id" : "2265648",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2265648"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nbpf: Fix re-attachment branch in bpf_tracing_prog_attach\nThe following case can cause a crash due to missing attach_btf:\n1) load rawtp program\n2) load fentry program with rawtp as target_fd\n3) create tracing link for fentry program with target_fd = 0\n4) repeat 3\nIn the end we have:\n- prog->aux->dst_trampoline == NULL\n- tgt_prog == NULL (because we did not provide target_fd to link_create)\n- prog->aux->attach_btf == NULL (the program was loaded with attach_prog_fd=X)\n- the program was loaded for tgt_prog but we have no way to find out which one\nBUG: kernel NULL pointer dereference, address: 0000000000000058\nCall Trace:\n<TASK>\n? __die+0x20/0x70\n? page_fault_oops+0x15b/0x430\n? fixup_exception+0x22/0x330\n? exc_page_fault+0x6f/0x170\n? asm_exc_page_fault+0x22/0x30\n? bpf_tracing_prog_attach+0x279/0x560\n? btf_obj_id+0x5/0x10\nbpf_tracing_prog_attach+0x439/0x560\n__sys_bpf+0x1cf4/0x2de0\n__x64_sys_bpf+0x1c/0x30\ndo_syscall_64+0x41/0xf0\nentry_SYSCALL_64_after_hwframe+0x6e/0x76\nReturn -EINVAL in this situation.", "bpf: Fix re-attachment branch in bpf_tracing_prog_attach\nThe following case can cause a crash due to missing attach_btf:\n1) load rawtp program\n2) load fentry program with rawtp as target_fd\n3) create tracing link for fentry program with target_fd = 0\n4) repeat 3\nIn the end we have:\n- prog->aux->dst_trampoline == NULL\n- tgt_prog == NULL (because we did not provide target_fd to link_create)\n- prog->aux->attach_btf == NULL (the program was loaded with attach_prog_fd=X)\n- the program was loaded for tgt_prog but we have no way to find out which one\nBUG: kernel NULL pointer dereference, address: 0000000000000058\nCall Trace:\n? __die+0x20/0x70\n? page_fault_oops+0x15b/0x430\n? fixup_exception+0x22/0x330\n? exc_page_fault+0x6f/0x170\n? asm_exc_page_fault+0x22/0x30\n? bpf_tracing_prog_attach+0x279/0x560\n? btf_obj_id+0x5/0x10\nbpf_tracing_prog_attach+0x439/0x560\n__sys_bpf+0x1cf4/0x2de0\n__x64_sys_bpf+0x1c/0x30\ndo_syscall_64+0x41/0xf0\nentry_SYSCALL_64_after_hwframe+0x6e/0x76\nReturn -EINVAL in this situation." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-11-12T00:00:00Z",
    "advisory" : "RHSA-2024:9315",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-503.11.1.el9_5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-11-12T00:00:00Z",
    "advisory" : "RHSA-2024:9315",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-503.11.1.el9_5"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-26591\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-26591\nhttps://lore.kernel.org/linux-cve-announce/2024022258-CVE-2024-26591-8b42@gregkh/T/#u" ],
  "name" : "CVE-2024-26591",
  "mitigation" : {
    "value" : "No mitigation is currently available for this vulnerability. Make sure to perform the updates as they become available.",
    "lang" : "en:us"
  },
  "csaw" : false
}