CVE-2022-1586 Memory corruption in pcre2
An out-of-bounds read in PCRE2's JIT compiler allows attackers to cause denial of service or disclose sensitive memory contents via crafted regex patterns.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-1586?
CVE-2022-1586 is a critical memory corruption vulnerability in Debian Debian Linux, published on 16 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT.
Weakness: CWE-125
Which versions are affected by CVE-2022-1586?
It affects 13 products.
Linux distribution packages (40)
pcre2 AlmaLinux:8 | All versions | 10.32-3.el8_6 |
pcre2-devel AlmaLinux:8 | All versions | 10.32-3.el8_6 |
pcre2-tools AlmaLinux:8 | All versions | 10.32-3.el8_6 |
pcre2-utf16 AlmaLinux:8 | All versions | 10.32-3.el8_6 |
pcre2-utf32 AlmaLinux:8 | All versions | 10.32-3.el8_6 |
pcre2 Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-tools-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-utf16 Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-utf16-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-utf32 Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-utf32-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:10.32-3.el8_6 |
pcre2-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:10.32-3.el8_6 |
pcre2-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:10.32-3.el8_6 |
pcre2-tools Red Hat:enterprise_linux:8::crb | All versions | 0:10.32-3.el8_6 |
pcre2-tools-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:10.32-3.el8_6 |
pcre2-utf16-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:10.32-3.el8_6 |
pcre2-utf32-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:10.32-3.el8_6 |
pcre2 Rocky Linux:8 | All versions | 0:10.32-3.el8_6 |
pcre SUSE:Enterprise Storage 6 | All versions | 8.45-150000.20.13.1 |
pcre2 SUSE:Enterprise Storage 6 | All versions | 10.31-150000.3.7.1 |
pcre SUSE:Enterprise Storage 7 | All versions | 8.45-150000.20.13.1 |
pcre2 SUSE:Enterprise Storage 7 | All versions | 10.31-150000.3.7.1 |
pcre SUSE:HPE Helion OpenStack 8 | All versions | 8.45-8.12.1 |
pcre2 SUSE:HPE Helion OpenStack 8 | All versions | 10.34-1.7.1 |
pcre SUSE:Linux Enterprise High Availability Extension 12 SP3 | All versions | 8.45-8.12.1 |
pcre SUSE:Linux Enterprise High Availability Extension 12 SP4 | All versions | 8.45-8.12.1 |
pcre SUSE:Linux Enterprise High Availability Extension 12 SP5 | All versions | 8.45-8.12.1 |
pcre SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 8.45-150000.20.13.1 |
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 10.31-150000.3.7.1 |
pcre SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 8.45-150000.20.13.1 |
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 10.31-150000.3.7.1 |
pcre SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 8.45-150000.20.13.1 |
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 10.31-150000.3.7.1 |
pcre SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 8.45-150000.20.13.1 |
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 10.31-150000.3.7.1 |
pcre SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 8.45-150000.20.13.1 |
pcre2 SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 10.31-150000.3.7.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Netapp Active Iq Unified Manager, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware and 7 more.
How do I fix CVE-2022-1586?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-1586 being exploited?
There is no known exploitation of CVE-2022-1586 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2022-1586, ALSA-2022:5809, CLEANSTART-2024-KR97455, DEBIAN-CVE-2022-1586, GHSA-f3pv-9fwh-mp3x, RHSA-2022:5809 and 9 more.