Description
Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 268) or possibly have unspecified other impact via a crafted file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | pcre3 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP5 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES 12 SP4 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP4 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES 12 SP3 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP3 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES 12 SP2 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP2 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP5 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP4 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP4 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP3 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP3 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 9 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 9 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 8 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 8 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 9 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 9 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 8 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 8 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE HPE Helion OpenStack 8 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE HPE Helion OpenStack 8 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.6 | pcre | 8.41-r0 | — |
Advisories 1
- SUSE-SU-2021:3652-1 Security update for pcre SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 97067 vdb-entry
- https://blogs.gentoo.org/ago/2017/03/20/libpcre-two-stack-based-buffer-overflow-write-in-pcre32_copy_substring-pcre_get-c/
- RHSA-2018:2486 vendor-advisory
- GLSA-201710-25 vendor-advisory