CVE-2026-12087 Socket versions before 2.041 for Perl have an out-of-bounds heap read
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
29 packages: 13 fixed, 16 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libsocket-perl(Debian 12) | = 2.036-1; = 2.037-1; = 2.038-1; = 2.040-1 +3 more | No fix listed | No fix yet |
| redhat/perl-Socket(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/perl-Socket(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/perl-Socket(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/perl-Socket6(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/perl-Socket6(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/perl-Socket6(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed | No fix yet |
| ubuntu/libsocket-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsocket-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsocket-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsocket-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/perl(Alpine v3.24) | < 5.42.3-r0 | 5.42.3-r0 | Fixed |
| azure linux perl(Azure Linux 3.0) | < 5.38.2-511 | 5.38.2-511 | Fixed |
| azure linux perl(Azure Linux 4.0) | < 4:5.42.3-529.azl4 | 4:5.42.3-529.azl4 | Fixed |
| debian/libsocket-perl(Debian 13) | < 2.038-1+deb13u1; = 2.038-1 | 2.038-1+deb13u1 | Fixed |
| debian/libsocket-perl(Debian 14) | < 2.041-1; = 2.038-1; = 2.040-1 | 2.041-1 | Fixed |
| debian/perl(Debian 12) | < 5.36.0-7+deb12u4; = 5.36.0-7; = 5.36.0-7+deb12u1; = 5.36.0-7+deb12u2 +1 more | 5.36.0-7+deb12u4 | Fixed |
| debian/perl(Debian 13) | < 5.40.1-6+deb13u1; = 5.40.1-6 | 5.40.1-6+deb13u1 | Fixed |
| debian/perl(Debian 14) | < 5.42.3-1; = 5.40.1-6; = 5.40.1-7; = 5.40.1-8 +6 more | 5.42.3-1 | Fixed |
| PEVANS Socket | < 2.041 | 2.041 | Fixed |
| redhat/perl-socket-main(Red Hat hummingbird 1) | < 2.041-1.hum1 | 2.041-1.hum1 | Fixed |
| ubuntu/perl(Ubuntu 22.04) | < 5.34.0-3ubuntu1.8 | 5.34.0-3ubuntu1.8 | Fixed |
| ubuntu/perl(Ubuntu 24.04) | < 5.38.2-3.2ubuntu0.4 | 5.38.2-3.2ubuntu0.4 | Fixed |
| ubuntu/perl(Ubuntu 26.04) | < 5.40.1-7ubuntu0.3 | 5.40.1-7ubuntu0.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PEVANS Socket | < 2.041 | 2.041 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| redhat/perl-socket-main(Red Hat:hummingbird:1) | < 2.041-1.hum1 | 2.041-1.hum1 |
| redhat/perl-Socket(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/perl-Socket6(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/perl-Socket6(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/perl-Socket(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/perl-Socket6(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/perl-Socket(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/perl-Socket6(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/perl-Socket(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/perl-Socket6(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| debian/libsocket-perl(Debian:12) | All versions | No fix listed |
| debian/libsocket-perl(Debian:12) | = 2.036-1 | No fix listed |
| debian/libsocket-perl(Debian:12) | = 2.037-1 | No fix listed |
| debian/libsocket-perl(Debian:12) | = 2.038-1 | No fix listed |
| debian/libsocket-perl(Debian:12) | = 2.040-1 | No fix listed |
| debian/libsocket-perl(Debian:12) | = 2.041-1 | No fix listed |
| debian/libsocket-perl(Debian:12) | = 2.043-1 | No fix listed |
| debian/libsocket-perl(Debian:13) | < 2.038-1+deb13u1 | 2.038-1+deb13u1 |
| debian/libsocket-perl(Debian:13) | = 2.038-1 | No fix listed |
Show 30 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libsocket-perl(Debian:14) | < 2.041-1 | 2.041-1 |
| debian/libsocket-perl(Debian:14) | = 2.038-1 | No fix listed |
| debian/libsocket-perl(Debian:14) | = 2.040-1 | No fix listed |
| debian/perl(Debian:12) | < 5.36.0-7+deb12u4 | 5.36.0-7+deb12u4 |
| debian/perl(Debian:12) | = 5.36.0-7 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u1 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u2 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u3 | No fix listed |
| debian/perl(Debian:13) | < 5.40.1-6+deb13u1 | 5.40.1-6+deb13u1 |
| debian/perl(Debian:13) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | < 5.42.3-1 | 5.42.3-1 |
| debian/perl(Debian:14) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | = 5.40.1-7 | No fix listed |
| debian/perl(Debian:14) | = 5.40.1-8 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-1 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-2 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-3 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-1 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-2 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-3 | No fix listed |
| ubuntu/libsocket-perl(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/perl(Ubuntu:22.04) | < 5.34.0-3ubuntu1.8 | 5.34.0-3ubuntu1.8 |
| alpine/perl(Alpine:v3.24) | < 5.42.3-r0 | 5.42.3-r0 |
| ubuntu/libsocket-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/perl(Ubuntu:24.04) | < 5.38.2-3.2ubuntu0.4 | 5.38.2-3.2ubuntu0.4 |
| ubuntu/libsocket-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/perl(Ubuntu:26.04) | < 5.40.1-7ubuntu0.3 | 5.40.1-7ubuntu0.3 |
| ubuntu/libsocket-perl(Ubuntu:26.10) | All versions | No fix listed |
| azure linux perl(Azure Linux:3.0) | < 5.38.2-511 | 5.38.2-511 |
| azure linux perl(Azure Linux:4.0) | < 4:5.42.3-529.azl4 | 4:5.42.3-529.azl4 |
References
- metacpan.org release-notes
- github.com patch
- www.openwall.com
- cert-portal.siemens.com
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:11342 patch vendor-advisory
- Red Hat Bugzilla 2489066 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-12087 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8675-1 vendor-advisory
- USN-8684-1 vendor-advisory
- USN-8675-2 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-37009 third-party-advisory