CVE-2026-41257 jq: Signed-int overflow in `stack_reallocate` (jq VM stack)
MediumCVSS 6.4
EPSS 0.14%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
jq is a command-line JSON processor. In 1.8.1 and earlier, the jq bytecode VM's data stack tracks its allocation size in a signed int. When the stack grows beyond ≈1 GiB (via deeply nested generator forks), the doubling arithmetic overflows. The wrapped value is passed to realloc and then used for a memmove with attacker-influenced offsets.
Upgrade path
22 packages: 10 fixed, 12 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-controller(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/jq(Red Hat ceph_storage 4) | All versions | No fix listed | No fix yet |
| redhat/jq(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/jq(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| ubuntu/jq(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/jq(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/jq(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/jq(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/jq(Alpine v3.21) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| alpine/jq(Alpine v3.22) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| alpine/jq(Alpine v3.23) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| alpine/jq(Alpine v3.24) | < 1.8.2-r0 | 1.8.2-r0 | Fixed |
| azure linux jq(Azure Linux 3.0) | < 1.7.1-6 | 1.7.1-6 | Fixed |
| debian/jq(Debian 12) | < 1.6-2.1+deb12u2; = 1.6-2.1; = 1.6-2.1+deb12u1 | 1.6-2.1+deb12u2 | Fixed |
| debian/jq(Debian 13) | < 1.7.1-6+deb13u3; = 1.7.1-6+deb13u1; = 1.7.1-6+deb13u2 | 1.7.1-6+deb13u3 | Fixed |
| debian/jq(Debian 14) | < 1.8.1-6; = 1.8.0-1; = 1.8.1-1; = 1.8.1-2 +3 more | 1.8.1-6 | Fixed |
| jqlang jq | <= 1.8.1; = <= 1.8.1 | after 1.8.1 | Fixed |
| redhat/jq-main(Red Hat hummingbird 1) | < 1.8.2-0.1.hum1 | 1.8.2-0.1.hum1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jqlang jq | = <= 1.8.1 | No fix listed |
| debian/jq(Debian:12) | < 1.6-2.1+deb12u2 | 1.6-2.1+deb12u2 |
| debian/jq(Debian:14) | < 1.8.1-6 | 1.8.1-6 |
| debian/jq(Debian:13) | < 1.7.1-6+deb13u3 | 1.7.1-6+deb13u3 |
| redhat/jq-main(Red Hat:hummingbird:1) | < 1.8.2-0.1.hum1 | 1.8.2-0.1.hum1 |
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/jq(Red Hat:ceph_storage:4) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/jq(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) | All versions | No fix listed |
| debian/jq(Debian:12) | = 1.6-2.1 | No fix listed |
| debian/jq(Debian:12) | = 1.6-2.1+deb12u1 | No fix listed |
| debian/jq(Debian:13) | = 1.7.1-6+deb13u1 | No fix listed |
| debian/jq(Debian:13) | = 1.7.1-6+deb13u2 | No fix listed |
| debian/jq(Debian:14) | = 1.8.0-1 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-1 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-2 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-3 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-4 | No fix listed |
| debian/jq(Debian:14) | = 1.8.1-5 | No fix listed |
| ubuntu/jq(Ubuntu:22.04) | All versions | No fix listed |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/jq(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/jq(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/jq(Ubuntu:26.10) | All versions | No fix listed |
| jqlang jq | <= 1.8.1 | No fix listed |
| alpine/jq(Alpine:v3.21) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.22) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.23) | < 1.8.2-r0 | 1.8.2-r0 |
| alpine/jq(Alpine:v3.24) | < 1.8.2-r0 | 1.8.2-r0 |
| azure linux jq(Azure Linux:3.0) | < 1.7.1-6 | 1.7.1-6 |
References
- https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539 exploit mitigation vendor-advisory
- Debian Security Tracker CVE-2026-41257 vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:29986 patch vendor-advisory
- Red Hat Bugzilla 2469187 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory