Bug 2481312 (CVE-2026-8376) - CVE-2026-8376 perl: Perl: Heap buffer overflow when compiling regular expressions on 32-bit builds
Summary: CVE-2026-8376 perl: Perl: Heap buffer overflow when compiling regular express...
Keywords:
Status: NEW
Alias: CVE-2026-8376
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2489785
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-26 01:01 UTC by OSIDB Bzimport
Modified: 2026-07-01 09:21 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-26 01:01:19 UTC
Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds.

Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer.

A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.


Note You need to log in before you can comment on or make changes to this bug.