CVE-2026-12087

Socket versions before 2.041 for Perl have an out-of-bounds heap read

CVE-2026-12087 is fixed in 18 products on 1 platform, first by DEBIAN-CVE-2026-12087, released June 24, 2026. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
9.1
Important
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0057
47th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
libperl5.26 · Ubuntu 18.04.6 LTS (bionic) 5.26.1-6ubuntu0.7+esm3 libperl5.26 5.26.1-6ubuntu0.7+esm3 Jul 13, 2026
libperl5.30 · Ubuntu 20.04 LTS (focal) 5.30.0-9ubuntu0.5+esm3 libperl5.30 5.30.0-9ubuntu0.5+esm3 Jul 13, 2026
libperl5.34 · Ubuntu 22.04.1 LTS (jammy) 5.34.0-3ubuntu1.8 libperl5.34 5.34.0-3ubuntu1.8 Jul 13, 2026
libperl5.38t64 · Ubuntu 24.04.5 LTS (noble) 5.38.2-3.2ubuntu0.4 libperl5.38t64 5.38.2-3.2ubuntu0.4 Jul 13, 2026
libperl5.40 · Ubuntu 26.04.1 LTS (resolute) 5.40.1-7ubuntu0.3 libperl5.40 5.40.1-7ubuntu0.3 Jul 13, 2026
libsocket-perl · Debian 13.5 (trixie) 2.038-1+deb13u1 DEBIAN-CVE-2026-12087 Jun 24, 2026
libsocket-perl · Debian 14 2.041-1 DEBIAN-CVE-2026-12087 Jun 24, 2026
perl · Debian 12.15 (bookworm) 5.36.0-7+deb12u4 DEBIAN-CVE-2026-12087 Jun 24, 2026
perl · Debian 13.5 (trixie) 5.40.1-6+deb13u1 DEBIAN-CVE-2026-12087 Jun 24, 2026
perl · Debian 14 5.42.3-1 DEBIAN-CVE-2026-12087 Jun 24, 2026
perl · Ubuntu 18.04.6 LTS (bionic) 5.26.1-6ubuntu0.7+esm3 perl 5.26.1-6ubuntu0.7+esm3 Jul 13, 2026
perl · Ubuntu 20.04 LTS (focal) 5.30.0-9ubuntu0.5+esm3 perl 5.30.0-9ubuntu0.5+esm3 Jul 13, 2026
perl · Ubuntu 22.04.1 LTS (jammy) 5.34.0-3ubuntu1.8 perl 5.34.0-3ubuntu1.8 Jul 13, 2026
perl · Ubuntu 24.04.5 LTS (noble) 5.38.2-3.2ubuntu0.4 perl 5.38.2-3.2ubuntu0.4 Jul 13, 2026
perl · Ubuntu 26.04.1 LTS (resolute) 5.40.1-7ubuntu0.3 perl 5.40.1-7ubuntu0.3 Jul 13, 2026
perl · opensuse-leap 16.0 5.42.0-160000.3.1 OPENSUSE-SU-2026:21411-1 Jul 22, 2026
perl · sles 15.6 5.26.1-150300.17.23.1 SUSE-SU-2026:3558-1 Aug 10, 2026
perl · sles 15.7 5.26.1-150300.17.23.1 SUSE-SU-2026:3558-1 Aug 10, 2026
perl · sles 16.0 5.42.0-160000.3.1 SUSE-SU-2026:22847-1 Jul 22, 2026
perl-Socket · amzn 2023 4:2.032-1.amzn2023.0.4 ALAS2023-2026-2161 Sep 14, 2026
perl-Socket-debuginfo · amzn 2023 4:2.032-1.amzn2023.0.4 ALAS2023-2026-2161 Sep 14, 2026
perl-Socket-debugsource · amzn 2023 4:2.032-1.amzn2023.0.4 ALAS2023-2026-2161 Sep 14, 2026
perl-Socket-tests · amzn 2023 4:2.032-1.amzn2023.0.4 ALAS2023-2026-2161 Sep 14, 2026
perl-base · Ubuntu 18.04.6 LTS (bionic) 5.26.1-6ubuntu0.7+esm3 perl-base 5.26.1-6ubuntu0.7+esm3 Jul 13, 2026
perl-base · Ubuntu 20.04 LTS (focal) 5.30.0-9ubuntu0.5+esm3 perl-base 5.30.0-9ubuntu0.5+esm3 Jul 13, 2026
perl-base · Ubuntu 22.04.1 LTS (jammy) 5.34.0-3ubuntu1.8 perl-base 5.34.0-3ubuntu1.8 Jul 13, 2026
perl-base · Ubuntu 24.04.5 LTS (noble) 5.38.2-3.2ubuntu0.4 perl-base 5.38.2-3.2ubuntu0.4 Jul 13, 2026
perl-base · Ubuntu 26.04.1 LTS (resolute) 5.40.1-7ubuntu0.3 perl-base 5.40.1-7ubuntu0.3 Jul 13, 2026
perl-debug · Ubuntu 18.04.6 LTS (bionic) 5.26.1-6ubuntu0.7+esm3 perl-debug 5.26.1-6ubuntu0.7+esm3 Jul 13, 2026
perl-debug · Ubuntu 20.04 LTS (focal) 5.30.0-9ubuntu0.5+esm3 perl-debug 5.30.0-9ubuntu0.5+esm3 Jul 13, 2026
perl-debug · Ubuntu 22.04.1 LTS (jammy) 5.34.0-3ubuntu1.8 perl-debug 5.34.0-3ubuntu1.8 Jul 13, 2026
perl-debug · Ubuntu 24.04.5 LTS (noble) 5.38.2-3.2ubuntu0.4 perl-debug 5.38.2-3.2ubuntu0.4 Jul 13, 2026
perl-debug · Ubuntu 26.04.1 LTS (resolute) 5.40.1-7ubuntu0.3 perl-debug 5.40.1-7ubuntu0.3 Jul 13, 2026
perl-modules-5.26 · Ubuntu 18.04.6 LTS (bionic) 5.26.1-6ubuntu0.7+esm3 perl-modules-5.26 5.26.1-6ubuntu0.7+esm3 Jul 13, 2026
perl-modules-5.30 · Ubuntu 20.04 LTS (focal) 5.30.0-9ubuntu0.5+esm3 perl-modules-5.30 5.30.0-9ubuntu0.5+esm3 Jul 13, 2026
perl-modules-5.34 · Ubuntu 22.04.1 LTS (jammy) 5.34.0-3ubuntu1.8 perl-modules-5.34 5.34.0-3ubuntu1.8 Jul 13, 2026
perl-modules-5.38 · Ubuntu 24.04.5 LTS (noble) 5.38.2-3.2ubuntu0.4 perl-modules-5.38 5.38.2-3.2ubuntu0.4 Jul 13, 2026
perl-modules-5.40 · Ubuntu 26.04.1 LTS (resolute) 5.40.1-7ubuntu0.3 perl-modules-5.40 5.40.1-7ubuntu0.3 Jul 13, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.