提交 #929107: xerial snappy-java 1.1.10.8 Off heap OOB Write in ByteBuffer Uncompress信息

标题xerial snappy-java 1.1.10.8 Off heap OOB Write in ByteBuffer Uncompress
描述I was auditing the ByteBuffer decompression path in snappy-java and noticed that Snappy.uncompress(ByteBuffer, ByteBuffer) never checks whether the destination buffer is large enough before writing into it. The decompressed size comes straight from the compressed input's own length prefix — fully attacker-controlled — and the native layer just writes that many bytes into the destination regardless of its actual capacity. A valid, well-formed Snappy blob that decompresses to more bytes than the destination buffer holds writes past the end of the off-heap allocation and crashes the JVM with a SIGSEGV. Interestingly, the sibling API BitShuffle.shuffle(ByteBuffer, ByteBuffer) already does the equivalent capacity check before calling native code — this path just doesn't have one. The method's Javadoc suggests calling isValidCompressedBuffer first, but that only checks stream well-formedness, not whether the output fits the destination.
来源⚠️ https://github.com/xerial/snappy-java/issues/728
用户
 Yu Bao from PayPal Cyber Security Team (UID 99838)
提交2026-08-14 10時21分 (2 月前)
管理2026-09-14 09時17分 (1 month later)
状态重复
VulDB条目403173 [Xerial snappy-java 直到 1.1.10.8 Snappy.uncompress 内存损坏]
积分0

Do you need the next level of professionalism?

Upgrade your account now!