CVE-2026-8376

Publication date 26 May 2026

Last updated 26 June 2026


Ubuntu priority

Cvss 3 Severity Score

9.8 · Critical

Score breakdown

Description

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.

Status

Package Ubuntu Release Status
perl 26.04 LTS resolute
Fixed 5.40.1-7ubuntu0.1
25.10 questing
Vulnerable
24.04 LTS noble
Fixed 5.38.2-3.2ubuntu0.3
22.04 LTS jammy
Fixed 5.34.0-3ubuntu1.7
20.04 LTS focal
Fixed 5.30.0-9ubuntu0.5+esm2
18.04 LTS bionic
Fixed 5.26.1-6ubuntu0.7+esm2
16.04 LTS xenial
Fixed 5.22.1-9ubuntu0.9+esm2
14.04 LTS trusty
Fixed 5.18.2-2ubuntu1.7+esm7

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
perl

Severity score breakdown

CVSS version: CVSS v3.0

Base score 9.8 · Critical

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

Related Ubuntu Security Notices (USN)

Other references


Access our resources on patching vulnerabilities