Description
libsmb2 through 6.2 contains a heap out-of-bounds read vulnerability in smb2_decode_file_fs_volume_info and smb2_decode_file_fs_attribute_info that allows malicious SMB servers to read past reply buffers. Attackers controlling a server or intercepting unsigned sessions can send crafted QUERY_INFO replies with missing or oversized name lengths to crash the client.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sahlberg | libsmb2 | ≤ 6.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libsmb2 | No fix yet | — |
| Debian 13 | libsmb2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libsmb2 | No fix yet | — |
| Ubuntu 26.04 LTS | libsmb2 | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/libsmb2-query-info-reply-oob-read technical-description exploit
- https://github.com/sahlberg/libsmb2/blob/d67e213a5c4e7e4969fd81f0b95e4ca5831fbba1/lib/smb2-data-filesystem-info.c#L71 technical-description
- https://github.com/sahlberg/libsmb2/commit/dd0bbdee24bb56f7ec95431afc07ce0a666533f7 patch
- https://github.com/sahlberg/libsmb2 product
- VulnCheck Advisory: libsmb2 through 6.2 Heap Out-of-Bounds Read via File System Info Decoders third-party-advisory