Vulnerability · Published Feb 22, 2024 · Assigned by Linux
CVE-2024-26591bpf: Fix re-attachment branch in bpf_tracing_prog_attach
Medium 5.5
In plain English
A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix re-attachment branch in bpf_tracing_prog_attach The following case can cause a crash due to missing attach_btf: 1) load rawtp program 2) load fentry program with rawtp as target_fd 3) create tracing link for fentry program with target_fd = 0 4) repeat 3 In the end we have: - prog->aux->dst_trampoline == NULL - tgt_prog == NULL (because we did not provide target_fd to link_create) - prog->aux->attach_btf == NULL (the program was loaded with attach_prog_fd=X) - the program was loaded for tgt_prog but we have no way to find out which one BUG: kernel NULL pointer dereference, address: 0000000000000058 Call Trace: <TASK> ? __die+0x20/0x70 ? page_fault_oops+0x15b/0x430 ? fixup_exception+0x22/0x330 ? exc_page_fault+0x6f/0x170 ? asm_exc_page_fault+0x22/0x30 ? bpf_tracing_prog_attach+0x279/0x560 ? btf_obj_id+0x5/0x10 bpf_tracing_prog_attach+0x439/0x560 __sys_bpf+0x1cf4/0x2de0 __x64_sys_bpf+0x1c/0x30 do_syscall_64+0x41/0xf0 entry_SYSCALL_64_after_hwframe+0x6e/0x76 Return -EINVAL in this situation.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.76-1 | DEBIAN-CVE-2024-26591 |
| Debian:13 | linux | 6.6.15-1 | DEBIAN-CVE-2024-26591 |
| Debian:14 | linux | 6.6.15-1 | DEBIAN-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux | 5.15.0-102.112 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-102.112 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1057.63 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1057.63 | USN-6725-2 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1018.18~22.04.1 | USN-6743-1 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1018.18~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1060.69 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1060.69 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1019.20~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1019.20~22.04.1 | USN-6743-3 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1060.69.1 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1060.69.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1055.63 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1055.63 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1018.18~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1018.18~22.04.1 | USN-6743-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1054.59 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1054.59 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1040.46 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1040.46 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | 6.5.0-28.29~22.04.1 | USN-6743-1 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | 6.5.0-28.29~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1050.53 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1050.53 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1052.58 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1052.58 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1054.59 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1054.59 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-102.112 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-102.112 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-28.29.1~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-28.29.1~22.04.1 | USN-6743-2 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1048.48 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1048.48 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1015.15 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1015.15 | USN-6743-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1025.25 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1012.12 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | 6.1.0-1035.35 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1020.21 | USN-6743-1 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1020.21 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1055.61 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1055.61 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1021.21~22.04.1 | USN-6743-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1021.21~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1050.53 | USN-6725-1 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1050.53 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | 6.5.0-28.29.1~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1012.13~22.04.1 | UBUNTU-CVE-2024-26591 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1012.13~22.04.1 | USN-6743-1 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1030.34 | UBUNTU-CVE-2024-26591 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f3a95075549e0e5c36db922caf86847db7a35403 – before a7b98aa10f895e2569403896f2d19b73b6c95653f3a95075549e0e5c36db922caf86847db7a35403 – before 6cc9c0af0aa06f781fa515a1734b1a4239dfd2c0f3a95075549e0e5c36db922caf86847db7a35403 – before 8c8bcd45e9b10eef12321f08d2e5be33d615509cf3a95075549e0e5c36db922caf86847db7a35403 – before 50ae82f080cf87e84828f066c31723b781d68f5bf3a95075549e0e5c36db922caf86847db7a35403 – before 715d82ba636cb3629a6e18a33bb9dbe53f9936ee |
| Linux | Linux | 5.13 |
References
- https://git.kernel.org/stable/c/a7b98aa10f895e2569403896f2d19b73b6c95653
- https://git.kernel.org/stable/c/6cc9c0af0aa06f781fa515a1734b1a4239dfd2c0
- https://git.kernel.org/stable/c/8c8bcd45e9b10eef12321f08d2e5be33d615509c
- https://git.kernel.org/stable/c/50ae82f080cf87e84828f066c31723b781d68f5b
- https://git.kernel.org/stable/c/715d82ba636cb3629a6e18a33bb9dbe53f9936ee