{"id":"CVE-2025-57632","sourceIdentifier":"cve@mitre.org","published":"2025-09-25T20:15:35.237","lastModified":"2026-11-05T23:10:00.150","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","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:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-09-26T20:13:50.798924Z","id":"CVE-2025-57632","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-120"}]}],"references":[{"url":"https://gist.github.com/ZjW1nd/0b95b63307ceee7890e88e4abc6f041e","source":"cve@mitre.org"},{"url":"https://github.com/sahlberg/libsmb2","source":"cve@mitre.org"},{"url":"https://github.com/sahlberg/libsmb2/blob/master/lib/compat.c#L569","source":"cve@mitre.org"},{"url":"https://github.com/sahlberg/libsmb2/commit/5e75eebf922b338cdb548d60cffb3b997d2a12e8","source":"cve@mitre.org"}]}