
Backportata la correzione upstream per CVE-2025-48060 (heap buffer overflow in jv_string_empty) a jq 1.6.
Backport della correzione upstream per CVE-2025-48060 (heap buffer overflow in jv_string_empty) a jq 1.6.
Backport (CVE-2025-48060) – Backport del commit upstream c6e0416 (“Fix heap buffer overflow when formatting an empty string”) da una versione più recente di jq a jq-1.6, adattando la rappresentazione interna delle stringhe (jv_string_empty), aggiungendo un test di regressione (0[implode]), ricompilando ed eseguendo con successo la suite di test.
Puoi applicare questo backport sulla versione ufficiale jq-1.6, sia da un tarball che da un checkout git.
curl -LO https://github.com/jqlang/jq/releases/download/jq-1.6/jq-1.6.tar.gz
tar xf jq-1.6.tar.gz
cd jq-1.6
patch -p1 < 0001-Fix-heap-buffer-overflow-when-formatting-an-empty-st.patch
autoreconf -i
./configure --with-oniguruma=builtin
make -j"$(nproc)"
make check
Se invece vuoi applicarla da un checkout git:
git clone https://github.com/jqlang/jq.git
cd jq
git checkout jq-1.6
git am 0001-Fix-heap-buffer-overflow-when-formatting-an-empty-st.patch
git submodule update --init
autoreconf -i
./configure --with-oniguruma=builtin
make -j"$(nproc)"
make check