CVE-2026-56015
Full vulnerability record from the local CVENow database.
Description
Net::IP::LPM versions before 1.11 for Perl allow a heap out-of-bounds read via an unbounded prefix length. add() passes the prefix string to the trie builder addPrefixToTrie() without checking it against the address width. addPrefixToTrie() then walks the prefix buffer by prefix_length bits, reading prefix[byte] for byte up to prefix_len/8, where prefix is the 4-byte (IPv4) or 16-byte (IPv6) packed address. A prefix length greater than 32 for IPv4 or 128 for IPv6, for example add("1.2.3.4/255", $v) or add("2001:db8::/255", $v), reads past the end of the packed address. The out-of-bounds read happens during trie construction and is bounded: the prefix length is stored as an unsigned char, so the bit walk reads at most 32 bytes from the start of the packed address, a short distance past the end of the 4-byte or 16-byte buffer. It is detectable under AddressSanitizer, valgrind, or a hardened allocator, where it can abort the process. Lookups and dump() format only the valid address width, so the out-of-bounds bytes are not exposed through the module's API.
View original CVE JSON
{
"id": "CVE-2026-56015",
"sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"published": "2026-07-03T13:17:30.130",
"lastModified": "2026-10-25T21:10:00.770",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Net::IP::LPM versions before 1.11 for Perl allow a heap out-of-bounds read via an unbounded prefix length.\n\nadd() passes the prefix string to the trie builder addPrefixToTrie() without checking it against the address width.\n\naddPrefixToTrie() then walks the prefix buffer by prefix_length bits, reading prefix[byte] for byte up to prefix_len/8, where prefix is the 4-byte (IPv4) or 16-byte (IPv6) packed address. A prefix length greater than 32 for IPv4 or 128 for IPv6, for example add(\"1.2.3.4/255\", $v) or add(\"2001:db8::/255\", $v), reads past the end of the packed address.\n\nThe out-of-bounds read happens during trie construction and is bounded: the prefix length is stored as an unsigned char, so the bit walk reads at most 32 bytes from the start of the packed address, a short distance past the end of the 4-byte or 16-byte buffer. It is detectable under AddressSanitizer, valgrind, or a hardened allocator, where it can abort the process. Lookups and dump() format only the valid address width, so the out-of-bounds bytes are not exposed through the module's API."
},
{
"lang": "es",
"value": "Las versiones de Net::IP::LPM hasta la 1.10 para Perl permiten una lectura fuera de límites en el heap a través de una longitud de prefijo no acotada.\n\nadd() pasa la cadena de prefijo al constructor de trie addPrefixToTrie() sin comprobarla contra el ancho de la dirección.\n\naddPrefixToTrie() luego recorre el búfer de prefijo por prefix_length bits, leyendo prefix[byte] byte a byte hasta prefix_len/8, donde prefix es la dirección empaquetada de 4 bytes (IPv4) o 16 bytes (IPv6). Una longitud de prefijo mayor que 32 para IPv4 o 128 para IPv6, por ejemplo add(’1.2.3.4/255’, $v) o add(’2001:db8::/255’, $v), lee más allá del final de la dirección empaquetada.\n\nLa lectura fuera de límites ocurre durante la construcción del trie y está acotada: la longitud del prefijo se almacena como un unsigned char, por lo que el recorrido de bits lee como máximo 32 bytes desde el inicio de la dirección empaquetada, una corta distancia más allá del final del búfer de 4 o 16 bytes. Es detectable bajo AddressSanitizer, valgrind o un asignador endurecido, donde puede abortar el proceso. Las búsquedas y dump() formatean solo el ancho de dirección válido, por lo que los bytes fuera de límites no se exponen a través de la API del módulo."
}
],
"affected": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"affectedData": [
{
"defaultStatus": "unaffected",
"collectionURL": "https://cpan.org/modules",
"packageName": "Net-IP-LPM",
"modules": [
"Net::IP::LPM"
],
"programFiles": [
"lib/Net/IP/LPM.pm",
"lpm_lib.c"
],
"programRoutines": [
{
"name": "Net::IP::LPM::add"
},
{
"name": "addPrefixToTrie"
},
{
"name": "lpm_add_raw"
}
],
"packageURL": "pkg:cpan/Net-IP-LPM",
"versions": [
{
"version": "0",
"lessThan": "1.11",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
"baseScore": 9.1,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 5.2
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-06T18:35:54.436194Z",
"id": "CVE-2026-56015",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-125"
}
]
}
],
"references": [
{
"url": "https://metacpan.org/release/RRWO/Net-IP-LPM-1.11/changes",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
},
{
"url": "https://rt.cpan.org/Ticket/Display.html?id=179856",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
},
{
"url": "https://security.metacpan.org/patches/N/Net-IP-LPM/1.10/CVE-2026-56015-r2.patch",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
},
{
"url": "http://www.openwall.com/lists/oss-security/2026/07/03/4",
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
]
}