Bug 2492973 (CVE-2026-12844) - CVE-2026-12844 perl-List-SomeUtils-XS: List::SomeUtils::XS: Heap buffer overflow in pairwise() function leading to arbitrary code execution
Summary: CVE-2026-12844 perl-List-SomeUtils-XS: List::SomeUtils::XS: Heap buffer overf...
Keywords:
Status: NEW
Alias: CVE-2026-12844
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2512057
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-25 16:02 UTC by OSIDB Bzimport
Modified: 2026-08-06 14:00 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-25 16:02:06 UTC
List::SomeUtils::XS versions before 0.59 for Perl have a heap buffer overflow in the pairwise function.

pairwise() collects the values returned by the block into a heap buffer sized to the longer input array, then grows the buffer before each copy with a single quadrupling (alloc <<= 2) instead of a loop. A block call that returns more than four times the current allocation in one invocation outgrows that one quadrupling, and the copy writes past the end of the buffer.

Any caller of pairwise() whose block returns, for a single pair, more than four times the longer input array's length writes past the buffer and corrupts the heap.


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