Vulnerability · Published Sep 25, 2025 · Assigned by mitre

CVE-2025-57632

High 7.5

In plain English

A high-severity buffer overflow in the libsmb2 package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 51.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13libsmb26.2+dfsg-2+deb13u1DEBIAN-CVE-2025-57632
Debian:14libsmb26.2+dfsg-3DEBIAN-CVE-2025-57632
Ubuntu:25.10libsmb2no fix listedUBUNTU-CVE-2025-57632
Ubuntu:26.04:LTSlibsmb2no fix listedUBUNTU-CVE-2025-57632
Ubuntu:26.10libsmb2no fix listedUBUNTU-CVE-2025-57632

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References