{"id":"CVE-2025-57632","published":"2025-09-25T00:00:00Z","modified":"2026-01-14T14:51:53Z","title":"libsmb2 6.2+ is vulnerable to Buffer Overflow","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00584,"percentile":0.48816,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/sahlberg/libsmb2","tags":[]},{"url":"https://github.com/sahlberg/libsmb2/blob/master/lib/compat.c#L569","tags":[]},{"url":"https://gist.github.com/ZjW1nd/0b95b63307ceee7890e88e4abc6f041e","tags":[]},{"url":"https://github.com/sahlberg/libsmb2/commit/5e75eebf922b338cdb548d60cffb3b997d2a12e8","tags":[]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.76},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-26T20:13:50.798924Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-31154","exploited":false,"provenance":"source"}}