CVE-2022-1587 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.
- 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-1587?
CVE-2022-1587 is a critical memory corruption vulnerability in Fedoraproject Fedora, 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 get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.
Weakness: CWE-125
Which versions are affected by CVE-2022-1587?
It affects 12 products.
Linux distribution packages (11)
pcre2 SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 10.39-150400.4.6.1 |
pcre2 SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 10.34-1.10.1 |
pcre2 SUSE:Linux Enterprise Server 12 SP3-BCL | All versions | 10.34-1.10.1 |
pcre2 SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 10.34-1.10.1 |
pcre2 SUSE:Linux Enterprise Server 12 SP5 | All versions | 10.34-1.10.1 |
pcre2 SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 10.34-1.10.1 |
pcre2 SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 10.34-1.10.1 |
pcre2 SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 10.34-1.10.1 |
pcre2 SUSE:OpenStack Cloud 9 | All versions | 10.34-1.10.1 |
pcre2 SUSE:OpenStack Cloud Crowbar 9 | All versions | 10.34-1.10.1 |
pcre2 openSUSE:Leap 15.4 | All versions | 10.39-150400.4.6.1 |
Products include Fedoraproject Fedora, Netapp Active Iq Unified Manager, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500s Firmware and 6 more.
How do I fix CVE-2022-1587?
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-1587 being exploited?
There is no known exploitation of CVE-2022-1587 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALPINE-CVE-2022-1587, CLEANSTART-2024-AI93387, DEBIAN-CVE-2022-1587, GHSA-jmvm-hj36-w5hc, SUSE-SU-2022:2565-1, SUSE-SU-2022:2566-1 and 1 more.