CVE-2026-15534

Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch. The regex engine's superlinear cache holds one bit per subject position for each participating WHILEM node, so the bit count is the subject length plus one times the number of nodes. Nothing checks that product for positive overflow of the signed 32-bit count: a 286331153 byte subject matched against a pattern with 15 participating nodes stores the count as 14, leaving a two byte cache. The cache is then indexed from the real match position and node number, so reads go past the end of the allocation, and on failure CACHEsayNO sets a bit past it. A caller that matches an attacker controlled subject of this size against a pattern of this shape can crash the process or corrupt heap memory.
Configurations

No configuration.

History

23 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) Las versiones de Perl hasta la 5.45.1 tienen lecturas y escrituras de montón fuera de límites durante la coincidencia de expresiones regulares a través de una caché superlineal de tamaño insuficiente en S_regmatch. La caché superlineal del motor de expresiones regulares contiene un bit por posición del sujeto para cada nodo WHILEM participante, por lo que el recuento de bits es la longitud del sujeto más uno multiplicado por el número de nodos. Nada verifica ese producto para un desbordamiento positivo del recuento firmado de 32 bits: un sujeto de 286331153 bytes emparejado contra un patrón con 15 nodos participantes almacena el recuento como 14, dejando una caché de dos bytes. La caché es entonces indexada desde la posición de coincidencia real y el número de nodo, por lo que las lecturas van más allá del final de la asignación, y en caso de fallo CACHEsayNO establece un bit más allá de ella. Un llamador que empareja un sujeto de este tamaño controlado por el atacante contra un patrón de esta forma puede bloquear el proceso o corromper la memoria del montón.

Information

Published : 2026-08-09 18:16

Updated : 2026-10-23 20:10


NVD link : CVE-2026-15534

Mitre link : CVE-2026-15534

CVE.ORG link : CVE-2026-15534


JSON object : View

Products Affected

No product.

CWE
CWE-125

Out-of-bounds Read

CWE-190

Integer Overflow or Wraparound

CWE-787

Out-of-bounds Write