Intel

AIKIDO-2026-569174

zstd-jni is vulnerable to Use-After-Free

CVE-2026-90852Published Oct 5, 2026
October 5, 2026

73

CVE Score

High

Use-After-Free

Are you affected? Scan for Free

TL;DR

ZstdCompressCtx.loadDict takes the dictionary lock, stores the native dictionary pointer, and releases the lock before later compression calls. Closing the dictionary frees that native object while the context still uses the pointer, so the next compress call uses freed memory and can crash the JVM. The fix keeps the dictionary lock until the context is closed.

How do I fix this?

Upgrade the com.github.luben:zstd-jni library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your code closes a dictionary after ZstdCompressCtx.loadDict.

Package

Versions

1.4.4-2 - 1.5.7-13

Fixed in 1.5.7-14

Background info

zstd-jni is vulnerable to Use-After-Free in versions 1.4.4-2 - 1.5.7-13.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea