CVE-2025-57632
JSON

7.5high

libsmb2 6.2+ is vulnerable to Buffer Overflow.

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.61% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

libsmb2 6.2+ is vulnerable to Buffer Overflow. When processing SMB2 chained PDUs (NextCommand), libsmb2 repeatedly calls smb2_add_iovector() to append to a fixed-size iovec array without checking the upper bound of v->niov (SMB2_MAX_VECTORS=256). An attacker can craft responses with many chained PDUs to overflow v->niov and perform heap out-of-bounds writes, causing memory corruption, crashes, and potentially arbitrary code execution. The SMB2_OPLOCK_BREAK path bypasses message ID validation.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List

Classification

CWE-120

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

libsmb2 6.2+ is vulnerable to Buffer Overflow. When processing SMB2 chained PDUs (NextCommand), libsmb2 repeatedly calls smb2_add_iovector() to append to a fixed-size iovec array without checking the upper bound of v->niov (SMB2_MAX_VECTORS=256). An attacker can craft responses with many chained PDUs to overflow v->niov and perform heap out-of-bounds writes, causing memory corruption, crashes, and potentially arbitrary code execution. The SMB2_OPLOCK_BREAK path bypasses message ID validation.

NVD (es)

libsmb2 6.2+ es vulnerable a desbordamiento de búfer. Al procesar PDUs encadenadas de SMB2 (NextCommand), libsmb2 llama repetidamente a smb2_add_iovector() para añadir a un array iovec de tamaño fijo sin comprobar el límite superior de v -> niov (SMB2_MAX_VECTORS=256). Un atacante puede crear respuestas con muchas PDUs encadenadas para desbordar v -> niov y realizar escrituras fuera de límites en el heap, causando corrupción de memoria, bloqueos y potencialmente ejecución de código arbitrario. La ruta SMB2_OPLOCK_BREAK omite la validación del ID de mensaje.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-57632 changed 2026-01-14CVE Terms of Use
NVDCVE-2025-57632 changed 2026-11-05Public domain