Integer overflow in jq - CVE-2026-41257

 

Integer overflow in jq - CVE-2026-41257

Published: April 25, 2026 / Updated: August 19, 2026


Vulnerability identifier: #VU127879
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-41257
CWE-ID: CWE-190
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to cause a denial of service.

The vulnerability exists due to integer overflow in stack_reallocate in the jq VM stack when processing deeply nested generator forks. A local user can supply crafted jq input to trigger signed integer overflow and abort the process to cause a denial of service.

In the observed case, the wrapped allocation size causes memory allocation failure and process abort. A small positive truncation may also lead to a wild memmove write before the buffer.


Affected software

jq
Debian Linux
openEuler
Ubuntu
Anolis OS
Fedora
LANTIME Operating System Firmware (LTOS)
jq (Debian package)
libjq1 (Ubuntu package)
jq (Ubuntu package)
jq-debugsource
jq-help
jq-devel
jq-debuginfo
jq
jq-doc

How to mitigate CVE-2026-41257

Install update from vendor's website.

jq - update to 1.8.2
LANTIME Operating System Firmware (LTOS) - update to 7.10.013
jq (Debian package) - addressed in versions 1.6-2.1+deb11u2, 1.6-2.1+deb12u2, 1.7.1-6+deb13u3
libjq1 (Ubuntu package) - addressed in versions 1.6-2.1ubuntu3.3, 1.7.1-3ubuntu0.24.04.3, 1.8.1-4ubuntu2.1
jq (Ubuntu package) - addressed in versions 1.6-2.1ubuntu3.3, 1.7.1-3ubuntu0.24.04.3, 1.8.1-4ubuntu2.1
jq-debugsource - update to 1.8.0-4
jq-help - update to 1.8.0-4
jq-devel - update to 1.8.0-4
jq-debuginfo - update to 1.8.0-4
jq - update to 1.8.0-4
jq-devel - update to 1.8.1-8
jq-doc - update to 1.8.1-8
jq - update to 1.8.1-8
jq - update to 1.8.2-4.fc45

External References

Related Security Bulletins