Description
zstd-jni before 1.5.7-14 fails to validate the samples buffer capacity in Zstd.trainFromBufferDirect, allowing attackers to read past buffer boundaries by supplying oversized per-sample lengths. Attackers can trigger out-of-bounds memory access by providing crafted sample length arrays that cause the native implementation to walk past the buffer allocation, resulting in JVM termination.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| luben | zstd-jni | 1.3.3-1 – < 1.5.7-14 | 1.5.7-14 |
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 | zstd-jni-java | 1.5.7-23+ds-1 | — |
| Debian 13 | zstd-jni-java | No fix yet | — |
| Debian 12 | zstd-jni-java | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | zstd-jni-java | No fix yet | — |
| Ubuntu 26.04 LTS | zstd-jni-java | No fix yet | — |
| Ubuntu 24.04 LTS | zstd-jni-java | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | zstd-jni | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23868-1, SUSE-SU-2026:23858-1 |
| SLES 16.0 | zstd-jni | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23868-1, SUSE-SU-2026:23858-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | zstd-jni | 1.5.7.16-160000.1.1 | openSUSE-SU-2026:21902-1 |
Advisories 4
- WID-SEC-2026-3791 IBM SPSS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 8, 2026
- SUSE-SU-2026:23858-1 Security update for zstd-jni SUSE / openSUSE Security Updates · Sep 27, 2026
- SUSE-SU-2026:23868-1 Security update for zstd-jni SUSE / openSUSE Security Updates · Sep 27, 2026
- openSUSE-SU-2026:21902-1 Security update for zstd-jni SUSE / openSUSE Security Updates · Sep 25, 2026
References
- GitHub Security Advisory (GHSA-257p-3h6w-pg7h) vendor-advisory
- Fix commit: validate the samples buffer capacity against the declared sample sizes patch
- Samples buffer capacity never read at v1.5.7-13 technical-description
- Java wrapper that only checks the sample count at v1.5.7-13 technical-description
- zstd-jni v1.5.7-14 Release Notes release-notes
- Commit that introduced the direct-buffer dictionary trainer without a samples capacity check (first released in 1.3.3-1) technical-description patch
- https://github.com/luben/zstd-jni product
- VulnCheck Advisory: zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect third-party-advisory