cve.bz

CVE-2022-23222 NULL Pointer Dereference

7.8 highExploit referenceEPSS 2.0%Fix available

High (7.8). EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
kernel/bpf/verifier.c in the Linux kernel through 5.15.14 allows local users to gain privileges because of the availability of pointer arithmetic via certain *_OR_NULL pointer types.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23222 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23222?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23222?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23222 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 5.8.0 before 5.15.37
linux:linux_kernelfrom 5.16 before 5.16.11
debian:debian_linux11.0
fedoraproject:fedora34
fedoraproject:fedora35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.92-1DSA-5050-1
Debian12, 13, 14linux5.15.15-1DEBIAN-CVE-2022-23222
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-23222
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2022-23222
Ubuntu20.04:LTSlinux-aws-5.135.13.0-1019.21~20.04.1UBUNTU-CVE-2022-23222 USN-5337-1
Ubuntu20.04:LTSlinux-azure-5.135.13.0-1021.24~20.04.1UBUNTU-CVE-2022-23222 USN-5368-1
Ubuntu20.04:LTSlinux-gcp-5.135.13.0-1021.25~20.04.1UBUNTU-CVE-2022-23222 USN-5337-1
Ubuntu20.04:LTSlinux-hwe-5.135.13.0-37.42~20.04.1UBUNTU-CVE-2022-23222 USN-5337-1
Ubuntu20.04:LTSlinux-intel-5.135.13.0-1010.10UBUNTU-CVE-2022-23222 USN-5362-1
Ubuntu20.04:LTSlinux-oem-5.145.14.0-1022.24UBUNTU-CVE-2022-23222 USN-5278-1
Ubuntu20.04:LTSlinux-oracle-5.135.13.0-1025.30~20.04.1UBUNTU-CVE-2022-23222 USN-5368-1
Ubuntu20.04:LTSlinux-riscv, linux-raspi2, linux-aws-5.8 and 14 moreno fix listedUBUNTU-CVE-2022-23222
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.el8_10RHSA-2024:3138
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.el8_10RHSA-2024:3138
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.rt7.342.el8_10RHSA-2024:2950
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.rt7.342.el8_10RHSA-2024:2950
Red Hatrhel_eus:8.6::baseosperf, kernel, bpftool and 30 more0:4.18.0-372.91.1.el8_6RHSA-2024:0724
Red Hatrhel_eus:8.6::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-372.91.1.el8_6RHSA-2024:0724
Red Hatrhel_eus:8.8::baseosperf, kernel, bpftool and 30 more0:4.18.0-477.81.1.el8_8RHSA-2024:10262
Red Hatrhel_eus:8.8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-477.81.1.el8_8RHSA-2024:10262
Red Hatrhev_hypervisor:4.4::el8perf, kernel-devel, perf-debuginfo and 6 more0:4.18.0-372.91.1.el8_6RHSA-2024:0724
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Module for Legacy 15 SP4 and 1 morekernel-default5.14.21-150400.24.11.1SUSE-SU-2022:2520-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.80.2SUSE-SU-2024:3483-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_11-150400.9.5.3SUSE-SU-2022:2520-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_191-150500.11.3.2SUSE-SU-2024:3483-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5kernel-default-base5.14.21-150500.55.80.2.150500.6.35.6SUSE-SU-2024:3483-1
SUSELinux Enterprise Module for Basesystem 15 SP4kernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150400.24.11.1SUSE-SU-2022:2520-1
SUSELinux Enterprise Module for Basesystem 15 SP4kernel-default-base5.14.21-150400.24.11.1.150400.24.3.6SUSE-SU-2022:2520-1
SUSELinux Enterprise Module for Basesystem 15 SP5kernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150500.55.80.2SUSE-SU-2024:3483-1
SUSELinux Enterprise Module for Development Tools 15 SP4kernel-docs, kernel-syms, kernel-source and 1 more5.14.21-150400.24.11.1SUSE-SU-2022:2520-1
SUSELinux Enterprise Module for Development Tools 15 SP5kernel-docs, kernel-source5.14.21-150500.55.80.2SUSE-SU-2024:3483-1
SUSELinux Enterprise Module for Development Tools 15 SP5kernel-syms, kernel-obs-build5.14.21-150500.55.80.1SUSE-SU-2024:3483-1
SUSELinux Enterprise Module for Public Cloud 15 SP4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.7.1SUSE-SU-2022:2615-1
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.11.1SUSE-SU-2022:2520-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.7.1SUSE-SU-2022:2615-1
openSUSELeap 15.4kernel-default-base5.14.21-150400.24.11.1.150400.24.3.6SUSE-SU-2022:2520-1
openSUSELeap 15.5dtb-aarch64, kernel-syms, kernel-obs-qa and 1 more5.14.21-150500.55.80.1SUSE-SU-2024:3483-1
openSUSELeap 15.5kernel-64kb, kernel-docs, kernel-debug and 4 more5.14.21-150500.55.80.2SUSE-SU-2024:3483-1
openSUSELeap 15.5, Leap Micro 5.5kernel-default-base5.14.21-150500.55.80.2.150500.6.35.6SUSE-SU-2024:3483-1
openSUSELeap Micro 5.5kernel-default5.14.21-150500.55.80.2SUSE-SU-2024:3483-1
AlmaLinux8kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more4.18.0-553.rt7.342.el8_10ALSA-2024:2950
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.el8_10ALSA-2024:3138
Rocky Linux8kernel0:4.18.0-553.123.1.el8_10.cloud.0.1RXSA-2024:3138
Rocky Linux8kernel0:4.18.0-553.el8_10RLSA-2024:3138
Rocky Linux8kernel-rt0:4.18.0-553.rt7.342.el8_10RLSA-2024:2950
Azure Linux2kernel5.15.18.1-1AZL-7534

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged_bpf_disabled sysctl.

This would require a privileged user with CAP_SYS_ADMIN or root to be able to abuse this flaw reducing its attack space.

For the Red Hat Enterprise Linux 7 the eBPF for unprivileged users is always disabled.

For the Red Hat Enterprise Linux 8 to confirm the current state, inspect the sysctl with the command:

~~~

# cat /proc/sys/kernel/unprivileged_bpf_disabled

~~~

The setting of 1 would mean that unprivileged users can not use eBPF, mitigating the flaw.

A kernel update will be required to mitigate the flaw for the root or users with CAP_SYS_ADMIN capabilities.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.rt7.342.el8_10Fixed 2024-05-22RHSA-2024:2950
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.el8_10Fixed 2024-05-22RHSA-2024:3138
Red Hat Enterprise Linux 8.6 Extended Update Supportkernel-0:4.18.0-372.91.1.el8_6Fixed 2024-02-07RHSA-2024:0724
Red Hat Enterprise Linux 8.8 Extended Update Supportkernel-0:4.18.0-477.81.1.el8_8Fixed 2024-11-26RHSA-2024:10262
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8kernel-0:4.18.0-372.91.1.el8_6Fixed 2024-02-07RHSA-2024:0724
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernelWill not fix
Red Hat Enterprise Linux 9kernel-rtWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-23222.

References

Check your stackJSON