CVE-2026-15534

EUVD-2026-54935
Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch.

The regex engine's superlinear cache holds one bit per subject position for each participating WHILEM node, so the bit count is the subject length plus one times the number of nodes. Nothing checks that product for positive overflow of the signed 32-bit count: a 286331153 byte subject matched against a pattern with 15 participating nodes stores the count as 14, leaving a two byte cache. The cache is then indexed from the real match position and node number, so reads go past the end of the allocation, and on failure CACHEsayNO sets a bit past it.

A caller that matches an attacker controlled subject of this size against a pattern of this shape can crash the process or corrupt heap memory.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.7 MEDIUM
LOCAL
HIGH
NONE
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 6.41%
Debian logo
Debian Releases
Debian Product
Codename
perl
bookworm
vulnerable
bookworm (security)
vulnerable
forky
vulnerable
sid
vulnerable
trixie
postponed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
perl
bionic
Fixed 5.26.1-6ubuntu0.7+esm4
released
focal
Fixed 5.30.0-9ubuntu0.5+esm4
released
jammy
Fixed 5.34.0-3ubuntu1.9
released
noble
Fixed 5.38.2-3.2ubuntu0.6
released
resolute
Fixed 5.40.1-7ubuntu0.2
released
trusty
Fixed 5.18.2-2ubuntu1.7+esm9
released
xenial
Fixed 5.22.1-9ubuntu0.9+esm4
released
Azure Linux logo
Azure Linux Releases
Azure Package
Release
perl
Azure Linux 3.0
0:5.38.2-516.azl3
fixed