CWE
125
Advisory Published
CVE Published
Updated

CVE-2022-2905

First published: Fri Aug 26 2022(Updated: )

A bug in the x86 BPF JIT compiler. A bpf_tail_call with a key larger than the max_entries of the map can cause an out-of-bound access when the x86 JIT compiler tries to index bpf_array-&gt;ptr using the invalid key. References: <a href="https://www.openwall.com/lists/oss-security/2022/08/26/1">https://www.openwall.com/lists/oss-security/2022/08/26/1</a> <a href="https://lore.kernel.org/bpf/984b37f9fdf7ac36831d2137415a4a915744c1b6.1661462653.git.daniel@iogearbox.net/">https://lore.kernel.org/bpf/984b37f9fdf7ac36831d2137415a4a915744c1b6.1661462653.git.daniel@iogearbox.net/</a>

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Linux Linux kernel<6.0
Linux Linux kernel=6.0-rc1
Linux Linux kernel=6.0-rc2
Linux Linux kernel=6.0-rc3
Redhat Enterprise Linux=8.0
Debian Debian Linux=10.0
redhat/Linux kernel<6.0
6.0
ubuntu/linux<5.15.0-53.59
5.15.0-53.59
ubuntu/linux<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-aws<5.15.0-1023.27
5.15.0-1023.27
ubuntu/linux-aws<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-aws-5.0<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-aws-5.15<5.15.0-1023.27~20.04.1
5.15.0-1023.27~20.04.1
ubuntu/linux-aws-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-aws-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-aws-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-aws-fips<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-aws-hwe<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure<5.15.0-1023.29
5.15.0-1023.29
ubuntu/linux-azure<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-4.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-5.15<5.15.0-1023.29~20.04.1
5.15.0-1023.29~20.04.1
ubuntu/linux-azure-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-edge<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-fde<5.15.0-1024.30.1
5.15.0-1024.30.1
ubuntu/linux-azure-fde<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-fde-5.15<5.15.0-1029.36~20.04.1.1
5.15.0-1029.36~20.04.1.1
ubuntu/linux-azure-fde-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-azure-fips<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-bluefield<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-dell300x<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-fips<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gcp<5.15.0-1022.29
5.15.0-1022.29
ubuntu/linux-gcp<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gcp-4.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gcp-5.15<5.15.0-1022.29~20.04.1
5.15.0-1022.29~20.04.1
ubuntu/linux-gcp-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gcp-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gcp-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gcp-fips<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gke<5.15.0-1020.25
5.15.0-1020.25
ubuntu/linux-gke<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gke-4.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gke-5.0<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gke-5.15<5.15.0-1020.25~20.04.1
5.15.0-1020.25~20.04.1
ubuntu/linux-gke-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gke-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gkeop<5.15.0-1008.12
5.15.0-1008.12
ubuntu/linux-gkeop<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gkeop-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-gkeop-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-hwe<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-hwe-5.15<5.15.0-53.59~20.04.1
5.15.0-53.59~20.04.1
ubuntu/linux-hwe-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-hwe-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-hwe-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-hwe-edge<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-ibm<5.15.0-1018.21
5.15.0-1018.21
ubuntu/linux-ibm<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-ibm-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-ibm-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-intel<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-intel-5.13<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-intel-iotg<5.15.0-1018.23
5.15.0-1018.23
ubuntu/linux-intel-iotg<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-intel-iotg-5.15<5.15.0-1018.23~20.04.1
5.15.0-1018.23~20.04.1
ubuntu/linux-intel-iotg-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-iot<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-kvm<5.15.0-1021.26
5.15.0-1021.26
ubuntu/linux-kvm<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-laptop<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-lowlatency<5.15.0-53.59
5.15.0-53.59
ubuntu/linux-lowlatency<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-53.59~20.04.1
5.15.0-53.59~20.04.1
ubuntu/linux-lowlatency-hwe-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-lowlatency-hwe-5.19<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-lowlatency-hwe-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-lts-xenial<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-nvidia<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-nvidia-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-5.10<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-5.14<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-5.17<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-5.6<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-6.0<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-6.1<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-6.8<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oem-osp1<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oracle<5.15.0-1022.28
5.15.0-1022.28
ubuntu/linux-oracle<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oracle-5.0<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oracle-5.13<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oracle-5.15<5.15.0-1022.28~20.04.1
5.15.0-1022.28~20.04.1
ubuntu/linux-oracle-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oracle-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-oracle-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-raspi<5.15.0-1018.20
5.15.0-1018.20
ubuntu/linux-raspi<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-raspi-5.4<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-raspi2<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-riscv<5.15.0-1023.27
5.15.0-1023.27
ubuntu/linux-riscv<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-riscv-5.15<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-riscv-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-snapdragon<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-starfive<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-starfive-6.5<6.0~<5.15.64
6.0~
5.15.64
ubuntu/linux-xilinx-zynqmp<6.0~<5.15.64
6.0~
5.15.64
debian/linux
5.10.218-1
5.10.221-1
6.1.94-1
6.1.99-1
6.9.10-1
6.9.12-1

Remedy

Ensure the kernel.unprivileged_bpf_disabled sysctl is set to 2 (the default) or 1.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203