Submit #927022: luben zstd-jni 1.5.7-13 Cross-Object Use-After-Freeinfo

Titelluben zstd-jni 1.5.7-13 Cross-Object Use-After-Free
BeschreibungI was auditing the dictionary-sharing code path in zstd-jni and noticed that ZstdCompressCtx.loadDict(ZstdDictCompress dict) hands a raw native pointer to upstream zstd via ZSTD_CCtx_refCDict, but nothing tracks whether the dictionary object is still alive afterward. If the dictionary is close()d while a context that loaded it is still around, the next compress() call on that context dereferences freed native memory. I built the library from source and reproduced a real crash with a heap-spray.
Quelle⚠️ https://github.com/luben/zstd-jni/issues/404
Benutzer
 Yu Bao from PayPal Cyber Security Team (UID 99838)
Einreichung13.08.2026 07:25 (vor 1 Monat)
Moderieren14.09.2026 07:37 (1 month later)
StatusAkzeptiert
VulDB Eintrag403407 [luben zstd-jni bis 1.5.7-13 Dictionary Sharing ZstdCompressCtx.java ZstdCompressCtx.loadDict Pufferüberlauf]
Punkte20

Do you know our Splunk app?

Download it now for free!