Bug 2469187 (CVE-2026-41257) - CVE-2026-41257 jq: signed-int overflow in stack_reallocate
Summary: CVE-2026-41257 jq: signed-int overflow in stack_reallocate
Keywords:
Status: NEW
Alias: CVE-2026-41257
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2477235
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-11 18:02 UTC by OSIDB Bzimport
Modified: 2026-06-02 08:29 UTC (History)
23 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-11 18:02:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.