• Bug#1108863: [discussion] unblock: jq/1.8.0-1

    From Salvatore Bonaccorso@21:1/5 to All on Sun Jul 6 15:30:01 2025
    XPost: linux.debian.devel.release

    UGFja2FnZTogcmVsZWFzZS5kZWJpYW4ub3JnClNldmVyaXR5OiBub3JtYWwKWC1EZWJidWdzLUNj OiBqcUBwYWNrYWdlcy5kZWJpYW4ub3JnLCB0ZWFtQHNlY3VyaXR5LmRlYmlhbi5vcmcsIENoYW5n Wmh1byBDaGVuICjpmbPmmIzlgKwpIDxjemNoZW5AZGViaWFuLm9yZz4sIGNhcm5pbEBkZWJpYW4u b3JnCkNvbnRyb2w6IGFmZmVjdHMgLTEgKyBzcmM6anEKVXNlcjogcmVsZWFzZS5kZWJpYW4ub3Jn QHBhY2thZ2VzLmRlYmlhbi5vcmcKVXNlcnRhZ3M6IHVuYmxvY2sKCkhpIENoYW5nWmh1byBDaGVu LCBoaSByZWxlYXNlIHRlYW0KClRoaXMgaXMgbm90IGFjdGF1bGx5IGEgcHJvcGVyIHVuYmxvY2sg cmVxdWVzdC4gVGhlcmUgaXMgaW4gdW5zdGFibGUgYQpuZXcganEgdmVyc2lvbiB3aGljaCBmaXhl cyBDVkUtMjAyNS00ODA2MCAodGhlIG90aGVyIG1lbnRpb25lZCBDVkVzCndlcmUgYWxyZWFkeSBm aXhlZCBlYXJsaWVyIGFmYWljcykuIAoKQnV0IHRoZXJlIGlzIG5vdyBhIHByb2JsZW0uIAoKMS4g dGhlIG5ldyB1cHN0cmVhbSB2ZXJzaW9uIGZhaWxzIHRvIGJ1aWxkIG9uIGkzODYuCgoyLiB0aGUg bmV3IHVwc3RyZWFtIHZlcnNpb24gMS44LjAgaXRzZWxmIGludHJvZHVjZXMgYSBuZXcgc2VjdXJp dHkKaXNzdWUsIENWRS0yMDI1LTQ5MDE0LgoKQ2hhbmdaaHVvIENoZW4sIHdoYXQgaXMgeW91ciB0 YWtlIGhlcmU/IEkgc2VlIHBvc3NpYmx5IHR3byB3YXlzOgoKQ29udmluY2UgcmVsZWFzZSB0ZWFt IHRoYXQgYSB2ZXJzaW9uIGJhc2VkIG9uIDEuOC4wICsgaW5jbHVkaW5nIHRoZQpzZWN1cml0eSBm aXggZm9yIENWRS0yMDI1LTQ5MDE0IGFuZCB0aGUgRlRCRlMgZm9yIGkzODYgaXMgZmluZSwgb3IK YWN0dWFsbHkgcmV2ZXJ0IGJhY2sgdG8gMS43LjEtNiwgYW5kIGFwcGx5IHRoZSBmaXggZm9yIENW RS0yMDI1LTQ4MDYwCm9uIHRvcC4KClJlZ2FyZHMsClNhbHZhdG9yZQo=

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sebastian Ramacher@21:1/5 to Salvatore Bonaccorso on Sun Jul 6 21:20:01 2025
    XPost: linux.debian.devel.release

    On 2025-07-06 15:28:25 +0200, Salvatore Bonaccorso wrote:
    Package: release.debian.org
    Severity: normal
    X-Debbugs-Cc: [email protected], [email protected], ChangZhuo Chen (陳昌倬) <[email protected]>, [email protected]
    Control: affects -1 + src:jq
    User: [email protected]
    Usertags: unblock

    Hi ChangZhuo Chen, hi release team

    This is not actaully a proper unblock request. There is in unstable a
    new jq version which fixes CVE-2025-48060 (the other mentioned CVEs
    were already fixed earlier afaics).

    But there is now a problem.

    1. the new upstream version fails to build on i386.

    2. the new upstream version 1.8.0 itself introduces a new security
    issue, CVE-2025-49014.

    ChangZhuo Chen, what is your take here? I see possibly two ways:

    Convince release team that a version based on 1.8.0 + including the
    security fix for CVE-2025-49014 and the FTBFS for i386 is fine, or
    actually revert back to 1.7.1-6, and apply the fix for CVE-2025-48060
    on top.

    I think a targetted fix on top of 1.7.1 would be more appropriate. I
    don't expect all of " 190 files changed, 30175 insertions(+), 24688 deletions(-)" is needed to fix CVE-2025-49104.

    Cheers


    Regards,
    Salvatore

    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ChangZhuo Chen =?utf-8?B?KOmZs+aYjO@21:1/5 to Sebastian Ramacher on Mon Jul 7 17:30:01 2025
    XPost: linux.debian.devel.release

    On Sun, Jul 06, 2025 at 09:18:00PM +0200, Sebastian Ramacher wrote:
    On 2025-07-06 15:28:25 +0200, Salvatore Bonaccorso wrote:
    ChangZhuo Chen, what is your take here? I see possibly two ways:

    Convince release team that a version based on 1.8.0 + including the security fix for CVE-2025-49014 and the FTBFS for i386 is fine, or
    actually revert back to 1.7.1-6, and apply the fix for CVE-2025-48060
    on top.

    I think a targetted fix on top of 1.7.1 would be more appropriate. I
    don't expect all of " 190 files changed, 30175 insertions(+), 24688 deletions(-)" is needed to fix CVE-2025-49104.

    I agree with Sebastian. Let's aim for a targeted fix on top of 1.7.1.


    --
    ChangZhuo Chen (陳昌倬) czchen@{czchen,debian}.org
    Key fingerprint = BA04 346D C2E1 FE63 C790 8793 CC65 B0CD EC27 5D5B

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEugQ0bcLh/mPHkIeTzGWwzewnXVsFAmhr5qAACgkQzGWwzewn XVstXA/9Fj3zPLD2D13uapM/6S3hCj27XZgaGVw5wJUJ9JI0ao0VYMKvzSQo7kC2 0vBxeRlAld+NCDndBcG09Yjq3k41eylJj1qC9ssxHhGh/9KWZ76mCOFscQtLNft2 NiUYfWGr0dB9vBVHZcrkn1ScatWdlYYGf5fvaRQBCkoqX6O3x8el1BQ+o3NbOvDB wbNKxwFi5qGu9UUOx3tWsrwBAHOp0Q39qflKGGUcoTUqQeD4fz0SUn8Zd4tttwkV 6RgkOmTAUmpKcqJiYn+LSeqfNHsTuh7miPObueeUE1I/2Q8+bW7SGtxMVnGm8QZ7 GN3utSEFp2blyNU4b1R4taZUCvy5bJxM0E+T5Q8trox3VRgG39PJBbv1vdIS9GRM lWXMQVSRptGorqjQT8JkED88qganFrV2XJVK4lcFXL5APBAq9H8Ugb53wFRZrAqS Lom1a4mlUcUTJpNI976/ynWe86YRdWRvjVgk9dEkjG3vVMhWNsbOrExfXH/v0Lg/ qvHkfSti1hPshP336Pw0eYY6xDwwZtY+XRl7oWUu4vT7LNH09JZP6MRtLIXq2fEz B+S5PHfgZ9ssIUsCLuW3YYOlbkAuUoRJQfCGF5y+sKoII9nNLhLMPgJrCWowlrNe xMpJZ3MDN9YeARuxfhLhPtYH+KFgW14+QDeRICIFWiJDsGjD1Q8=
    =BfWG
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxN
  • From ChangZhuo Chen =?utf-8?B?KOmZs+aYjO@21:1/5 to All on Mon Jul 7 18:50:01 2025
    XPost: linux.debian.devel.release

    --FOTuUOrS58+Tm7xa
    Content-Type: text/plain; charset=utf-8
    Content-Disposition: inline
    Content-Transfer-Encoding: quoted-printable

    Control: retitle -1 unblock: jq/1.7.1-6+deb13u1

    On Mon, Jul 07, 2025 at 11:24:21PM +0800, ChangZhuo Chen (陳昌倬) wrote:
    On Sun, Jul 06, 2025 at 09:18:00PM +0200, Sebastian Ramacher wrote:
    I think a targetted fix on top of 1.7.1 would be more appropriate. I
    don't expect all of " 190 files changed, 30175 insertions(+), 24688 deletions(-)" is needed to fix CVE-2025-49104.

    I agree with Sebastian. Let's aim for a targeted fix on top of 1.7.1.

    I have prepare jq 1.7.1-6+deb13u1 for CVE-2025-49104, please see
    attachment for debdiff.


    --
    ChangZhuo Chen (陳昌倬) czchen@{czchen,debian}.org
    Key fingerprint = BA04 346D C2E1 FE63 C790 8793 CC65 B0CD EC27 5D5B

    --FOTuUOrS58+Tm7xa
    Content-Type: text/plain; charset=utf-8
    Content-Disposition: attachment; filename="jq.debdiff" Content-Transfer-Encoding: quoted-printable

    diff -Nru jq-1.7.1/debian/changelog jq-1.7.1/debian/changelog
    --- jq-1.7.1/debian/changelog 2025-05-25 03:15:28.000000000 +0800
    +++ jq-1.7.1/debian/changelog 2025-07-08 00:16:39.000000000 +0800
    @@ -1,3 +1,9 @@
    +jq (1.7.1-6+deb13u1) trixie; urgency=medium
    +
    + * Cherry-pick upstream commit for CVE-2025-48060.
    +
    + -- ChangZhuo Chen (陳昌倬) <[email protected]> Tue, 08 Jul 2025 00:16:39 +0800
    +
    jq (1.7.1-6) unstable; urgency=medium

    * Cherry-pick upstream commit for CVE-2024-23337 (Closes: #1106289)
    diff -Nru jq-1.7.1/debian/patches/CVE-2025-48060.patch jq-1.7.1/debian/patches/CVE-2025-48060.patch
    --- jq-1.7.1/debian/patches/CVE-2025-48060.patch 1970-01-01 08:00:00.000000000 +0800
    +++ jq-1.7.1/debi
  • From [email protected]@21:1/5 to All on Mon Jul 7 19:00:01 2025
    XPost: linux.debian.devel.release

    which [email protected]

    --
    karcio



    7 Jul 2025 at 17:43 by [email protected]:

    Control: retitle -1 unblock: jq/1.7.1-6+deb13u1

    On Mon, Jul 07, 2025 at 11:24:21PM +0800, ChangZhuo Chen (陳昌倬) wrote:

    On Sun, Jul 06, 2025 at 09:18:00PM +0200, Sebastian Ramacher wrote:
    I think a targetted fix on top of 1.7.1 would be more appropriate. I
    don't expect all of " 190 files changed, 30175 insertions(+), 24688
    deletions(-)" is needed to fix CVE-2025-49104.

    I agree with Sebastian. Let's aim for a targeted fix on top of 1.7.1.


    I have prepare jq 1.7.1-6+deb13u1 for CVE-2025-49104, please see
    attachment for debdiff.


    --
    ChangZhuo Chen (陳昌倬) czchen@{czchen,debian}.org
    Key fingerprint = BA04 346D C2E1 FE63 C790 8793 CC65 B0CD EC27 5D5B


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sebastian Ramacher@21:1/5 to All on Tue Jul 8 08:00:01 2025
    XPost: linux.debian.devel.release

    Control: tags -1 confirmed moreinfo

    On 2025-07-08 00:41:37 +0800, ChangZhuo Chen (陳昌倬) wrote:
    Control: retitle -1 unblock: jq/1.7.1-6+deb13u1

    On Mon, Jul 07, 2025 at 11:24:21PM +0800, ChangZhuo Chen (陳昌倬) wrote:
    On Sun, Jul 06, 2025 at 09:18:00PM +0200, Sebastian Ramacher wrote:
    I think a targetted fix on top of 1.7.1 would be more appropriate. I don't expect all of " 190 files changed, 30175 insertions(+), 24688 deletions(-)" is needed to fix CVE-2025-49104.

    I agree with Sebastian. Let's aim for a targeted fix on top of 1.7.1.

    I have prepare jq 1.7.1-6+deb13u1 for CVE-2025-49104, please see
    attachment for debdiff.

    Please go ahead with this upload. Please remove the moreinfo tag after
    the upload.

    Cheers



    --
    ChangZhuo Chen (陳昌倬) czchen@{czchen,debian}.org
    Key fingerprint = BA04 346D C2E1 FE63 C790 8793 CC65 B0CD EC27 5D5B

    diff -Nru jq-1.7.1/debian/changelog jq-1.7.1/debian/changelog
    --- jq-1.7.1/debian/changelog 2025-05-25 03:15:28.000000000 +0800
    +++ jq-1.7.1/debian/changelog 2025-07-08 00:16:39.000000000 +0800
    @@ -1,3 +1,9 @@
    +jq (1.7.1-6+deb13u1) trixie; urgency=medium
    +
    + * Cherry-pick upstream commit for CVE-2025-48060.
    +
    + -- ChangZhuo Chen (陳昌倬) <[email protected]> Tue, 08 Jul 2025 00:16:39 +0800
    +
    jq (1.7.1-6) unstable; urgency=medium

    * Cherry-pick upstream commit for CVE-2024-23337 (Closes: #1106289)
    diff -Nru jq-1.7.1/debian/patches/CVE-2025-48060.patch jq-1.7.1/debian/patches/CVE-2025-48060.patch
    --- jq-1.7.1/debian/patches/CVE-2025-48060.patch 1970-01-01 08:00:00.000000000 +0800
    +++ jq-1.7.1/debian/patches/CVE-2025-48060.patch 2025-07-08 00:16:25.000000000 +0800
    @@ -0,0 +1,37 @@
    +From: =?utf-8?b?IkNoYW5nWmh1byBDaGVuICjpmbPmmIzlgKwpIg==?=
    + <[email protected]>
    +Date: Tue, 8 Jul 2025 00:09:51 +0800
    +Subject: Fix heap buffer overflow when formatting an empty string
    +
    +---
    + src/jv.c | 1 +
    + tests/jq.test | 4 ++++
    + 2 files changed, 5 insertions(+)
    +
    +diff --git a/src/jv.c b/src/jv.c
    +index a8fbe48..c8e0c51 100644
    +--- a/src/jv.c
    ++++ b/src/jv.c
    +@@ -1121,6 +1121,7 @@ static jv jvp_string_empty_new(uint32_t length) {
    + jvp_string* s = jvp_string_alloc(length);
    + s->length_hashed = 0;
    + memset(s->data, 0, length);
    ++ s->data[length] = 0;
    + jv r = {JVP_FLAGS_STRING, 0, 0, 0, {&s->refcnt}};
    + return r;
    + }
    +diff --git a/tests/jq.test b/tests/jq.test
    +index 944f9da..b36e591 100644
    +--- a/tests/jq.test
    ++++ b/tests/jq.test
    +@@ -2024,6 +2024,10 @@ map(try implode catch .)
    + [123,["a"],[nan]]
    + ["implode input must be an array","string (\"a\") can't be imploded, unicode codepoint needs to be numeric","number (null) can't be imploded, unicode codepoint needs to be numeric"]
    +
    ++try 0[implode] catch .
    ++[]
    ++"Cannot index number with string \"\""
    ++
    + # walk
    + walk(.)
    + {"x":0}
    diff -Nru jq-1.7.1/debian/patches/series jq-1.7.1/debian/patches/series
    --- jq-1.7.1/debian/patches/series 2025-05-25 03:11:23.000000000 +0800
    +++ jq-1.7.1/debian/patches/series 2025-07-08 00:16:25.000000000 +0800
    @@ -6,3 +6,4 @@
    libtool.patch
    CVE-2024-53427.patch
    CVE-2024-23337.patch
    +CVE-2025-48060.patch




    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ChangZhuo Chen =?utf-8?B?KOmZs+aYjO@21:1/5 to Sebastian Ramacher on Tue Jul 8 09:10:01 2025
    XPost: linux.debian.devel.release

    Control: tags -1 - moreinfo

    On Tue, Jul 08, 2025 at 07:53:52AM +0200, Sebastian Ramacher wrote:
    Please go ahead with this upload. Please remove the moreinfo tag after
    the upload.

    I have uploaded the package.


    --
    ChangZhuo Chen (陳昌倬) czchen@{czchen,debian}.org
    Key fingerprint = BA04 346D C2E1 FE63 C790 8793 CC65 B0CD EC27 5D5B

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEugQ0bcLh/mPHkIeTzGWwzewnXVsFAmhswgwACgkQzGWwzewn XVuzPxAAog1QuIrBEwB1297PrcziyV/FpSbOlRyEMBpQQ9+sD0m4FhEmKOZJmsol 2UxgROYNGEjMY/t5/YJgdGNpjmmx7oR3yN1+y3rBbrCVsZiq5GAgfhONsmtzQGEo PXqi9JG28B+sIiSeW+FbkQAD2E4YEiGYQ9eoPPMKI01Ck0/tWKvjcW1B/cJD4Dag d1RD6C1sBgnp4MzWyCQSpZvWt9wDKj4zUCzZj+u8Fe1DLTX3ljQ+5DAHKBybZq3r U8d0PA8U7MBycJCJI6gHLWy1Hy0ix0goG0vbmlQ3ShG4c6uiXByvoL02Ug95NgfU h2MyxCWKCowXOALxqlkmUL6gjreGYuu96eBgoq1J6k0thQSM8eA9U1nNzoCxcV+l SBdKkkYkkbPvF3tqHAjGkDHoStZTSpby+CvmphW/Ta19qDheMGZZrt4lYszusmM6 HfOcFc58AS4QxdPdLVAKdEiFWTXc88TAEIqyyEwZUuuxFEpgt/iBGnEgMvXF1fn1 MZ7V7C9aPwJ+2KGyHHiMq9xy0lwH9EsH0ZSSVjdb5kiizJEdvwMkobfWu1FZwQnI c8zrqxD3N7bC/O+R+9WO9Tjqs4oCeMSblp8uKBodWJqQdRmUxnkC+Gncv2z/TJnC poD29U6RaW1fH7mWbUoMz06xncRHjZgtD23/gstVesXkm95qktg=
    =aNuk
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxN