Bug 2489066 (CVE-2026-12087) - CVE-2026-12087 perl-Socket: perl-Socket: Information Disclosure due to Out-of-Bounds Read
Summary: CVE-2026-12087 perl-Socket: perl-Socket: Information Disclosure due to Out-of...
Keywords:
Status: NEW
Alias: CVE-2026-12087
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: 2489098 2489097
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-15 22:01 UTC by OSIDB Bzimport
Modified: 2026-06-16 08:37 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-15 22:01:46 UTC
Socket versions before 2.041 for Perl have an out-of-bounds heap read.

In Socket.xs, pack_ip_mreq_source() checks the length of its source argument before the argument is read, so the check tests the byte length carried over from the preceding multiaddr argument instead. Both addresses occupy a 4-byte field, so a valid multiaddr lets a source of any length pass the check, and the source is then copied into the 4-byte imr_sourceaddr field with a fixed-size copy. A source shorter than 4 bytes is not rejected, and the copy reads up to 3 bytes past the end of its buffer.

Calling pack_ip_mreq_source() with a source value shorter than 4 bytes copies adjacent heap memory into the returned packed structure.


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