CVE-2022-1586 Memory corruption in pcre2

Critical 9.1 Published Updated

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:8All versions10.32-3.el8_6
pcre2-devel AlmaLinux:8All versions10.32-3.el8_6
pcre2-tools AlmaLinux:8All versions10.32-3.el8_6
pcre2-utf16 AlmaLinux:8All versions10.32-3.el8_6
pcre2-utf32 AlmaLinux:8All versions10.32-3.el8_6
pcre2 Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-devel Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-tools-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-utf16 Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-utf16-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-utf32 Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-utf32-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:10.32-3.el8_6
pcre2-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:10.32-3.el8_6
pcre2-debugsource Red Hat:enterprise_linux:8::crbAll versions0:10.32-3.el8_6
pcre2-tools Red Hat:enterprise_linux:8::crbAll versions0:10.32-3.el8_6
pcre2-tools-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:10.32-3.el8_6
pcre2-utf16-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:10.32-3.el8_6
pcre2-utf32-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:10.32-3.el8_6
pcre2 Rocky Linux:8All versions0:10.32-3.el8_6
pcre SUSE:Enterprise Storage 6All versions8.45-150000.20.13.1
pcre2 SUSE:Enterprise Storage 6All versions10.31-150000.3.7.1
pcre SUSE:Enterprise Storage 7All versions8.45-150000.20.13.1
pcre2 SUSE:Enterprise Storage 7All versions10.31-150000.3.7.1
pcre SUSE:HPE Helion OpenStack 8All versions8.45-8.12.1
pcre2 SUSE:HPE Helion OpenStack 8All versions10.34-1.7.1
pcre SUSE:Linux Enterprise High Availability Extension 12 SP3All versions8.45-8.12.1
pcre SUSE:Linux Enterprise High Availability Extension 12 SP4All versions8.45-8.12.1
pcre SUSE:Linux Enterprise High Availability Extension 12 SP5All versions8.45-8.12.1
pcre SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions8.45-150000.20.13.1
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions10.31-150000.3.7.1
pcre SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions8.45-150000.20.13.1
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions10.31-150000.3.7.1
pcre SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions8.45-150000.20.13.1
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions10.31-150000.3.7.1
pcre SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions8.45-150000.20.13.1
pcre2 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions10.31-150000.3.7.1
pcre SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions8.45-150000.20.13.1
pcre2 SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions10.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.

All Debian Debian Linux vulnerabilities

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.

Is CVE-2022-1586 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free