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
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
sahlberg libsmb2
Default version status: unaffected
0 to ≤ 6.2affected
References
- https://hackmd.io/@haind-pwn/libsmb2-query-info-reply-oob-read ↗
- https://github.com/sahlberg/libsmb2/blob/d67e213a5c4e7e4969fd81f0b95e4ca5831fbba1/lib/smb2-data-filesystem-info.c#L71 ↗
- https://github.com/sahlberg/libsmb2/commit/dd0bbdee24bb56f7ec95431afc07ce0a666533f7 ↗
- https://github.com/sahlberg/libsmb2 ↗
- https://www.vulncheck.com/advisories/libsmb2-through-6.2-heap-out-of-bounds-read-via-file-system-info-decoders ↗