Vulnerability · Published Mar 26, 2024 · Assigned by Linux

CVE-2023-52621bpf: Check rcu_read_lock_trace_held() before calling bpf map helpers

High 7.8

In plain English

A high-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 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.2%top 84.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: bpf: Check rcu_read_lock_trace_held() before calling bpf map helpers These three bpf_map_{lookup,update,delete}_elem() helpers are also available for sleepable bpf program, so add the corresponding lock assertion for sleepable bpf program, otherwise the following warning will be reported when a sleepable bpf program manipulates bpf map under interpreter mode (aka bpf_jit_enable=0): WARNING: CPU: 3 PID: 4985 at kernel/bpf/helpers.c:40 ...... CPU: 3 PID: 4985 Comm: test_progs Not tainted 6.6.0+ #2 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) ...... RIP: 0010:bpf_map_lookup_elem+0x54/0x60 ...... Call Trace: <TASK> ? __warn+0xa5/0x240 ? bpf_map_lookup_elem+0x54/0x60 ? report_bug+0x1ba/0x1f0 ? handle_bug+0x40/0x80 ? exc_invalid_op+0x18/0x50 ? asm_exc_invalid_op+0x1b/0x20 ? __pfx_bpf_map_lookup_elem+0x10/0x10 ? rcu_lockdep_current_cpu_online+0x65/0xb0 ? rcu_is_watching+0x23/0x50 ? bpf_map_lookup_elem+0x54/0x60 ? __pfx_bpf_map_lookup_elem+0x10/0x10 ___bpf_prog_run+0x513/0x3b70 __bpf_prog_run32+0x9d/0xd0 ? __bpf_prog_enter_sleepable_recur+0xad/0x120 ? __bpf_prog_enter_sleepable_recur+0x3e/0x120 bpf_trampoline_6442580665+0x4d/0x1000 __x64_sys_getpgid+0x5/0x30 ? do_syscall_64+0x36/0xb0 entry_SYSCALL_64_after_hwframe+0x6e/0x76 </TASK>

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux6.1.82-1DEBIAN-CVE-2023-52621
Debian:13linux6.7.7-1DEBIAN-CVE-2023-52621
Debian:14linux6.7.7-1DEBIAN-CVE-2023-52621
Ubuntu:22.04:LTSlinux5.15.0-127.137UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux5.15.0-127.137USN-7166-1
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-aws5.15.0-1073.79USN-7166-2
Ubuntu:22.04:LTSlinux-aws5.15.0-1073.79UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-azure5.15.0-1078.87UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-azure5.15.0-1078.87USN-7186-2
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1078.87.1UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-gcp5.15.0-1072.80UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-gcp5.15.0-1072.80USN-7166-1
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-gke5.15.0-1070.76USN-7166-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1070.76UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1056.63USN-7166-1
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1056.63UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-41.41~22.04.2UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-ibm5.15.0-1066.69UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-ibm5.15.0-1066.69USN-7166-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1071.77UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1071.77USN-7186-1
Ubuntu:22.04:LTSlinux-kvm5.15.0-1070.75USN-7166-1
Ubuntu:22.04:LTSlinux-kvm5.15.0-1070.75UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-127.137USN-7166-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-127.137UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1068.69USN-7166-1
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1068.69UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1032.32UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1020.20UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-oracle5.15.0-1071.77USN-7166-1
Ubuntu:22.04:LTSlinux-oracle5.15.0-1071.77UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-raspi5.15.0-1066.69USN-7166-1
Ubuntu:22.04:LTSlinux-raspi5.15.0-1066.69UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-riscv-6.56.5.0-40.40.1~22.04.1UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1015.16~22.04.1UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1039.43UBUNTU-CVE-2023-52621
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1039.43USN-7166-4

Affected products (as reported)

VendorProductVersions
Linux Linux 1e6c62a8821557720a9b2ea9617359b264f2f67c – before 82f2df94dac1aa9b879e74d1f82ba1b631bdc6121e6c62a8821557720a9b2ea9617359b264f2f67c – before 3516f93cc63d956e1b290ae4b7bf2586074535a01e6c62a8821557720a9b2ea9617359b264f2f67c – before d6d6fe4bb105595118f12abeed4a7bdd450853f31e6c62a8821557720a9b2ea9617359b264f2f67c – before 483cb92334cd7f1d5387dccc0ab5d595d27a669d1e6c62a8821557720a9b2ea9617359b264f2f67c – before c7f1b6146f4a46d727c0d046284c28b6882c63041e6c62a8821557720a9b2ea9617359b264f2f67c – before 169410eba271afc9f0fb476d996795aa26770c6d
Linux Linux 5.10

References