CVE-2026-87877 zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()
HighCVSS 7.0
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
zstd-jni versions before 1.5.7-14 fail to validate closed state in setDict, setLongMax, setLevel and setRefMultipleDDicts methods of stream classes. Attackers can call these methods on closed streams to write through freed native pointers, corrupting unrelated objects or crashing the JVM.
Upgrade path
35 packages: 2 fixed, 33 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/zstd-jni-java(Debian 12) | = 1.5.2-5+ds-3; = 1.5.2-5+ds-4; = 1.5.2-5+ds-5; = 1.5.2-5+ds-6 +11 more | No fix listed | No fix yet |
| debian/zstd-jni-java(Debian 13) | = 1.5.2-5+ds-7; = 1.5.2-5+ds-8; = 1.5.4-2+ds-1; = 1.5.4-2+ds-2 +7 more | No fix listed | No fix yet |
| redhat/com.github.luben/zstd-jni:1.5.7.16-rhel8-redhat-00001(Red Hat apache_camel_quarkus 3.33 el6) | All versions | No fix listed | No fix yet |
| redhat/com.github.luben/zstd-jni:1.5.7.16-rhel8-redhat-00001(Red Hat jboss_enterprise_application_platform el7) | All versions | No fix listed | No fix yet |
| redhat/exploit-intelligence/agent-client-rhel9(Red Hat exploit_intelligence 0) | All versions | No fix listed | No fix yet |
| redhat/jenkins-2-plugins(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/jmc(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/libarrow(Red Hat ceph_storage 9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044326(Red Hat ocp_tools 4.12 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044327(Red Hat ocp_tools 4.13 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044382(Red Hat ocp_tools 4.14 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044386(Red Hat ocp_tools 4.15 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040081(Red Hat ocp_tools 4.20 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040096(Red Hat ocp_tools 4.21 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040131(Red Hat ocp_tools 4.17 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040287(Red Hat ocp_tools 4.16 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040428(Red Hat ocp_tools 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040733(Red Hat ocp_tools 4.19 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792041514(Red Hat ocp_tools 4.18 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9:1791874335(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9:1791961113(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9:1791872119(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat amq_streams 3) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat apache_camel_spring_boot 4.18) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat apicurio_registry 3) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat camel_quarkus 3) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat debezium 3) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat quarkus 3.27 el8) | All versions | No fix listed | No fix yet |
| redhat/zstd-jni(Red Hat quarkus 3.33 el8) | All versions | No fix listed | No fix yet |
… and 5 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| com.github.luben/zstd-jni(Maven) | >= 1.3.8-4, < 1.5.7-14 | 1.5.7-14 |
| debian/zstd-jni-java(Debian:12) | All versions | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.2-5+ds-3 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.2-5+ds-4 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.2-5+ds-5 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.2-5+ds-6 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.2-5+ds-7 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.2-5+ds-8 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.4-2+ds-1 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.4-2+ds-2 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.4-2+ds-3~exp1 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.4-2+ds-3~exp2 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.4-2+ds-3~exp3 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.4-2+ds-3~exp4 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.7-23+ds-1 | No fix listed |
| debian/zstd-jni-java(Debian:12) | = 1.5.7-23+ds-2 | No fix listed |
| debian/zstd-jni-java(Debian:13) | All versions | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.2-5+ds-7 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.2-5+ds-8 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.4-2+ds-1 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.4-2+ds-2 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.4-2+ds-3~exp1 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.4-2+ds-3~exp2 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.4-2+ds-3~exp3 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.4-2+ds-3~exp4 | No fix listed |
Show 42 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/zstd-jni-java(Debian:13) | = 1.5.7-23+ds-1 | No fix listed |
| debian/zstd-jni-java(Debian:13) | = 1.5.7-23+ds-2 | No fix listed |
| debian/zstd-jni-java(Debian:14) | < 1.5.7-23+ds-1 | 1.5.7-23+ds-1 |
| debian/zstd-jni-java(Debian:14) | = 1.5.2-5+ds-7 | No fix listed |
| debian/zstd-jni-java(Debian:14) | = 1.5.2-5+ds-8 | No fix listed |
| debian/zstd-jni-java(Debian:14) | = 1.5.4-2+ds-1 | No fix listed |
| debian/zstd-jni-java(Debian:14) | = 1.5.4-2+ds-2 | No fix listed |
| debian/zstd-jni-java(Debian:14) | = 1.5.4-2+ds-3~exp1 | No fix listed |
| debian/zstd-jni-java(Debian:14) | = 1.5.4-2+ds-3~exp2 | No fix listed |
| debian/zstd-jni-java(Debian:14) | = 1.5.4-2+ds-3~exp3 | No fix listed |
| debian/zstd-jni-java(Debian:14) | = 1.5.4-2+ds-3~exp4 | No fix listed |
| ubuntu/zstd-jni-java(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/zstd-jni-java(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/zstd-jni-java(Ubuntu:26.10) | All versions | No fix listed |
| redhat/com.github.luben/zstd-jni:1.5.7.16-rhel8-redhat-00001(Red Hat:apache_camel_quarkus:3.33::el6) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:apache_camel_spring_boot:4.18) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:quarkus:3.27::el8) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:quarkus:3.33::el8) | All versions | No fix listed |
| redhat/com.github.luben/zstd-jni:1.5.7.16-rhel8-redhat-00001(Red Hat:jboss_enterprise_application_platform::el7) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8:1792044326(Red Hat:ocp_tools:4.12::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8:1792044327(Red Hat:ocp_tools:4.13::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8:1792044382(Red Hat:ocp_tools:4.14::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8:1792044386(Red Hat:ocp_tools:4.15::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040287(Red Hat:ocp_tools:4.16::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040131(Red Hat:ocp_tools:4.17::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792041514(Red Hat:ocp_tools:4.18::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040733(Red Hat:ocp_tools:4.19::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040081(Red Hat:ocp_tools:4.20::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040096(Red Hat:ocp_tools:4.21::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040428(Red Hat:ocp_tools:4.22::el9) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9:1791874335(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9:1791961113(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9:1791872119(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/exploit-intelligence/agent-client-rhel9(Red Hat:exploit_intelligence:0) | All versions | No fix listed |
| redhat/jenkins-2-plugins(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:camel_quarkus:3) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:apicurio_registry:3) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:debezium:3) | All versions | No fix listed |
| redhat/libarrow(Red Hat:ceph_storage:9) | All versions | No fix listed |
| redhat/jmc(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/zstd-jni(Red Hat:amq_streams:3) | All versions | No fix listed |
References
- GitHub Security Advisory (GHSA-2jw3-mg7f-vw4q) exploit vendor-advisory
- Fix commit: closed-state guards on BaseZstdBufferDecompressingStreamNoFinalizer patch
- Fix commit: closed-state guards on the input and output stream setters patch
- Setters without the closed-state guard that readInternal already has, at v1.5.7-13 technical-description
- final stream handle retained after close at v1.5.7-13 technical-description
- zstd-jni v1.5.7-14 Release Notes release-notes
- Commit that made setDict write through the retained native stream handle (first released in 1.3.8-4) patch technical-description
- github.com product
- VulnCheck Advisory: zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close() third-party-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:70257 patch vendor-advisory
- RHSA-2026:71675 patch vendor-advisory
- RHSA-2026:69470 patch vendor-advisory
- RHSA-2026:69440 patch vendor-advisory
- RHSA-2026:95221 patch vendor-advisory
- RHSA-2026:88152 patch vendor-advisory
- RHSA-2026:88149 patch vendor-advisory
- RHSA-2026:88151 patch vendor-advisory
- RHSA-2026:88150 patch vendor-advisory
- RHSA-2026:88156 patch vendor-advisory
- RHSA-2026:88159 patch vendor-advisory
- RHSA-2026:88153 patch vendor-advisory
- RHSA-2026:88158 patch vendor-advisory
- RHSA-2026:88157 patch vendor-advisory
- RHSA-2026:88155 patch vendor-advisory
- RHSA-2026:88154 patch vendor-advisory
- RHSA-2026:84734 patch vendor-advisory
- Red Hat Bugzilla 2531003 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-87877 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-75024 third-party-advisory
- RHSA-2026:100682 patch vendor-advisory