{"id":"CVE-2025-57632","aliases":["CVE-2025-57632"],"related":[],"kind":"vulnerability","state":"published","title":"libsmb2 6.2+ is vulnerable to Buffer Overflow.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-25T00:00:00.000Z","modified":"2026-11-05T23:10:00.150Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"}],"references":[{"url":"https://github.com/sahlberg/libsmb2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/sahlberg/libsmb2/blob/master/lib/compat.c#L569","tags":[],"sources":["cvelist","nvd"]},{"url":"https://gist.github.com/ZjW1nd/0b95b63307ceee7890e88e4abc6f041e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/sahlberg/libsmb2/commit/5e75eebf922b338cdb548d60cffb3b997d2a12e8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-26T20:13:50.798Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-57632","url":"https://www.cve.org/CVERecord?id=CVE-2025-57632","licence":"CVE Terms of Use","modified":"2026-01-14T14:51:53.090Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-57632","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57632","licence":"Public domain","modified":"2026-11-05T23:10:00.150Z"}],"updatedAt":"2026-11-25T22:59:05.191Z","epss":{"score":0.00607,"percentile":0.50447,"date":"2026-12-01T12:00:22.000Z"}}