DEBIAN-CVE-2026-12087
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.
DEBIAN-CVE-2026-12087
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-12087
libsocket-perl
Source reference: /affected/0/package/name
- Affected versions
- 2.036-1
Source reference:
/affected/0/versions2.037-1Source reference:
/affected/0/versions2.038-1Source reference:
/affected/0/versions2.040-1Source reference:
/affected/0/versions2.041-1Source reference:
/affected/0/versions2.043-1Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
libsocket-perl
Source reference: /affected/1/package/name
- Affected versions
- 2.038-1
Source reference:
/affected/1/versions - Fixed versions
- 2.038-1+deb13u1
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
libsocket-perl
Source reference: /affected/2/package/name
- Affected versions
- 2.038-1
Source reference:
/affected/2/versions2.040-1Source reference:
/affected/2/versions - Fixed versions
- 2.041-1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
perl
Source reference: /affected/3/package/name
- Affected versions
- 5.36.0-7
Source reference:
/affected/3/versions5.36.0-7+deb12u1Source reference:
/affected/3/versions5.36.0-7+deb12u2Source reference:
/affected/3/versions5.36.0-7+deb12u3Source reference:
/affected/3/versions - Fixed versions
- 5.36.0-7+deb12u4
Source reference:
/affected/3/ranges - Prerequisites
- Not stated in this record
perl
Source reference: /affected/4/package/name
- Affected versions
- 5.40.1-6
Source reference:
/affected/4/versions - Fixed versions
- 5.40.1-6+deb13u1
Source reference:
/affected/4/ranges - Prerequisites
- Not stated in this record
perl
Source reference: /affected/5/package/name
- Affected versions
- 5.40.1-6
Source reference:
/affected/5/versions5.40.1-7Source reference:
/affected/5/versions5.40.1-8Source reference:
/affected/5/versions5.42.0-1Source reference:
/affected/5/versions5.42.0-2Source reference:
/affected/5/versions5.42.0-3Source reference:
/affected/5/versions5.42.2-1Source reference:
/affected/5/versions5.42.2-2Source reference:
/affected/5/versions5.42.2-3Source reference:
/affected/5/versions - Fixed versions
- 5.42.3-1
Source reference:
/affected/5/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsocket-perl",
"purl": "pkg:deb/debian/libsocket-perl?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"2.036-1",
"2.037-1",
"2.038-1",
"2.040-1",
"2.041-1",
"2.043-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-12087.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.038-1+deb13u1"
}
]
}
],
"package": {
"name": "libsocket-perl",
"purl": "pkg:deb/debian/libsocket-perl?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"2.038-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-12087.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.041-1"
}
]
}
],
"package": {
"name": "libsocket-perl",
"purl": "pkg:deb/debian/libsocket-perl?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"2.038-1",
"2.040-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-12087.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.36.0-7+deb12u4"
}
]
}
],
"package": {
"name": "perl",
"purl": "pkg:deb/debian/perl?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"5.36.0-7",
"5.36.0-7+deb12u1",
"5.36.0-7+deb12u2",
"5.36.0-7+deb12u3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-12087.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.40.1-6+deb13u1"
}
]
}
],
"package": {
"name": "perl",
"purl": "pkg:deb/debian/perl?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"5.40.1-6"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-12087.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.42.3-1"
}
]
}
],
"package": {
"name": "perl",
"purl": "pkg:deb/debian/perl?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"5.40.1-6",
"5.40.1-7",
"5.40.1-8",
"5.42.0-1",
"5.42.0-2",
"5.42.0-3",
"5.42.2-1",
"5.42.2-2",
"5.42.2-3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-12087.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]- Related CVEs
- CVE-2026-12087
Source reference:
/upstream
Publisher severity
critical
Source reference: /severity/0/score
- Event
- #83714 · Revision 1
- Added to Heist Feed
- Publisher date