Bug 2077976 (CVE-2022-1586)

Summary: CVE-2022-1586 pcre2: Out-of-bounds read in compile_xclass_matchingpath in pcre2_jit_compile.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, caswilli, dhalasz, dkuc, fjansen, ggastald, hhorak, jburrell, jwong, kaycoth, ljavorsk, manisandro, micjohns, mschorm, psegedy, rfreiman, sbiarozk, sthirugn, tcarlin, tfister, tkasparek, tmeszaro, tsasak, vkrizan, vkumar, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: pcre2 10.40 Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-31 16:55:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2080025, 2081971, 2081973, 2077987, 2081957, 2081970, 2081972, 2086873    
Bug Blocks: 2077988, 2081998    

Description Pedro Sampaio 2022-04-22 18:50:24 UTC
An out-of-bounds read was discovered in PCRE version 10.39, related to a missing Unicode property matching issue in JIT compiled regular expressions. The bug is present in the function "compile_xclass_matchingpath", declared in "pcre2_jit_compile.c".



Comment 1 Pedro Sampaio 2022-04-22 19:04:27 UTC
Created pcre2 tracking bugs for this issue:

Affects: fedora-all [bug 2077987]

Comment 3 TEJ RATHI 2022-05-05 05:26:28 UTC
Created mingw-pcre2 tracking bugs for this issue:

Affects: fedora-all [bug 2081957]

Comment 7 errata-xmlrpc 2022-06-28 14:59:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:5251 https://access.redhat.com/errata/RHSA-2022:5251

Comment 8 errata-xmlrpc 2022-08-03 12:44:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:5809 https://access.redhat.com/errata/RHSA-2022:5809

Comment 9 Product Security DevOps Team 2022-08-31 16:55:15 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):