{"id":"CVE-2025-57632","details":"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-\u003eniov (SMB2_MAX_VECTORS=256). An attacker can craft responses with many chained PDUs to overflow v-\u003eniov 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.","modified":"2026-08-12T15:13:40.213296Z","published":"2025-09-25T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57632.json"},"references":[{"type":"WEB","url":"https://gist.github.com/ZjW1nd/0b95b63307ceee7890e88e4abc6f041e"},{"type":"WEB","url":"https://github.com/sahlberg/libsmb2/blob/master/lib/compat.c#L569"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57632.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57632"},{"type":"FIX","url":"https://github.com/sahlberg/libsmb2/commit/5e75eebf922b338cdb548d60cffb3b997d2a12e8"},{"type":"PACKAGE","url":"https://github.com/sahlberg/libsmb2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sahlberg/libsmb2","events":[{"introduced":"0"},{"fixed":"5e75eebf922b338cdb548d60cffb3b997d2a12e8"}],"database_specific":{"source":"REFERENCES"}}],"versions":["libsmb2-6.2","libsmb2-6.1","v6.0.0","libsmb2-6.0","v5.0.0","v4.0.0","v3.0.0","v2.0.0","v1.0.0","libsmb2-1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57632.json","vanir_signatures_modified":"2026-08-12T15:13:40Z","vanir_signatures":[{"id":"CVE-2025-57632-4f1be132","signature_type":"Line","signature_version":"v1","source":"https://github.com/sahlberg/libsmb2/commit/5e75eebf922b338cdb548d60cffb3b997d2a12e8","target":{"file":"lib/init.c"},"deprecated":false,"digest":{"line_hashes":["3604715068656525057895732284933582250","67474392744342636332293879522589848281","106544564087878161484972033647860944301"],"threshold":0.9}},{"digest":{"function_hash":"34543669183881933262336254942550366083","length":375},"id":"CVE-2025-57632-cb3b4191","signature_type":"Function","signature_version":"v1","source":"https://github.com/sahlberg/libsmb2/commit/5e75eebf922b338cdb548d60cffb3b997d2a12e8","target":{"file":"lib/init.c","function":"smb2_add_iovector"},"deprecated":false}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}