Thread View: linux.debian.bugs.rc
2 messages
2 total messages
Started by Salvatore Bonaccorso
Mon, 16 Nov 2026 21:40
Bug#1142282: jbig2dec: diff for NMU version 0.20-1.1
Author: Salvatore Bonaccorso
Date: Mon, 16 Nov 2026 21:40
Date: Mon, 16 Nov 2026 21:40
112 lines
5907 bytes
5907 bytes
--ugkqRpLTxApOgl3X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Control: tags 1142282 + patch
Control: tags 1142282 + pending
Dear maintainer,
I've prepared an NMU for jbig2dec (versioned as 0.20-1.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should cancel it.
Regards,
Salvatore
--ugkqRpLTxApOgl3X
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename=jbig2dec-0.20-1.1-nmu.diff
diffstat for jbig2dec-0.20 jbig2dec-0.20
changelog | 7 +
patches/Bug-709176-Validate-SBSYMCODELEN-before-use.patch | 56 ++++++++++++++
patches/series | 1
3 files changed, 64 insertions(+)
diff -Nru jbig2dec-0.20/debian/changelog jbig2dec-0.20/debian/changelog
--- jbig2dec-0.20/debian/changelog 2023-11-30 14:40:40.000000000 +0100
+++ jbig2dec-0.20/debian/changelog 2026-09-11 10:34:12.000000000 +0200
@@ -1,3 +1,10 @@
+jbig2dec (0.20-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Validate SBSYMCODELEN before use (CVE-2026-38076) (Closes: #1142282)
+
+ -- Salvatore Bonaccorso <carnil@debian.org> Fri, 11 Sep 2026 10:34:12 +0200
+
jbig2dec (0.20-1) unstable; urgency=medium
[ upstream ]
diff -Nru jbig2dec-0.20/debian/patches/Bug-709176-Validate-SBSYMCODELEN-before-use.patch jbig2dec-0.20/debian/patches/Bug-709176-Validate-SBSYMCODELEN-before-use.patch
--- jbig2dec-0.20/debian/patches/Bug-709176-Validate-SBSYMCODELEN-before-use.patch 1970-01-01 01:00:00.000000000 +0100
+++ jbig2dec-0.20/debian/patches/Bug-709176-Validate-SBSYMCODELEN-before-use.patch 2026-09-11 10:34:12.000000000 +0200
@@ -0,0 +1,56 @@
+From: Robin Watts <Robin.Watts@artifex.com>
+Date: Tue, 10 Mar 2026 16:33:37 +0000
+Subject: Bug 709176: Validate SBSYMCODELEN before use.
+Origin: https://github.com/ArtifexSoftware/jbig2dec/commit/cc37d0931aa71582f7128736a068c92cd8712d9b
+Bug-Debian: https://bugs.debian.org/1142282
+Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2026-38076
+
+Thanks to dkjsone@gmail.com for the report. The original version of
+this patch came from hvtaifwkbgefbaei@gmail.com.
+---
+ jbig2_arith_iaid.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/jbig2_arith_iaid.c b/jbig2_arith_iaid.c
+index 5e0dbe6dd5e6..b69274f80a6d 100644
+--- a/jbig2_arith_iaid.c
++++ b/jbig2_arith_iaid.c
+@@ -47,7 +47,7 @@ jbig2_arith_iaid_ctx_new(Jbig2Ctx *ctx, uint8_t SBSYMCODELEN)
+ Jbig2ArithIaidCtx *result;
+ size_t ctx_size;
+
+- if (sizeof(ctx_size) * 8 <= SBSYMCODELEN)
++ if (SBSYMCODELEN > 31 || sizeof(ctx_size) * 8 <= SBSYMCODELEN)
+ {
+ jbig2_error(ctx, JBIG2_SEVERITY_FATAL, JBIG2_UNKNOWN_SEGMENT_NUMBER, "requested IAID arithmetic coding state size too large");
+ return NULL;
+@@ -82,7 +82,7 @@ jbig2_arith_iaid_decode(Jbig2Ctx *ctx, Jbig2ArithIaidCtx *actx, Jbig2ArithState
+ Jbig2ArithCx *IAIDx = actx->IAIDx;
+ uint8_t SBSYMCODELEN = actx->SBSYMCODELEN;
+ /* A.3 (1) */
+- int PREV = 1;
++ uint32_t PREV = 1;
+ int D;
+ int i;
+
+@@ -94,14 +94,14 @@ jbig2_arith_iaid_decode(Jbig2Ctx *ctx, Jbig2ArithIaidCtx *actx, Jbig2ArithState
+ #ifdef VERBOSE
+ fprintf(stderr, "IAID%x: D = %d\n", PREV, D);
+ #endif
+- PREV = (PREV << 1) | D;
++ PREV = (PREV << 1) | (uint32_t)D;
+ }
+ /* A.3 (3) */
+- PREV -= 1 << SBSYMCODELEN;
++ PREV -= (1U << SBSYMCODELEN);
+ #ifdef VERBOSE
+ fprintf(stderr, "IAID result: %d\n", PREV);
+ #endif
+- *p_result = PREV;
++ *p_result = (int)PREV;
+ return 0;
+ }
+
+--
+2.55.0
+
diff -Nru jbig2dec-0.20/debian/patches/series jbig2dec-0.20/debian/patches/series
--- jbig2dec-0.20/debian/patches/series 2023-11-30 14:40:40.000000000 +0100
+++ jbig2dec-0.20/debian/patches/series 2026-09-11 10:34:12.000000000 +0200
@@ -3,3 +3,4 @@
1004_extract_infile_from_autogen-sh.patch
2001_disable_memento.patch
2002_abi_compat.patch
+Bug-709176-Validate-SBSYMCODELEN-before-use.patch
--ugkqRpLTxApOgl3X--
Processed: jbig2dec: diff for NMU version 0.20-1.1
Author: Debian Bug Tracking System
Date: Mon, 16 Nov 2026 21:40
Date: Mon, 16 Nov 2026 21:40
15 lines
2152 bytes
2152 bytes
Processing control commands:
> tags 1142282 + patch
Bug #1142282 {Done: Moritz Mühlenhoff <jmm@debian.org>} [src:jbig2dec] jbig2dec: CVE-2026-38076
Added tag(s) patch.
> tags 1142282 + pending
Bug #1142282 {Done: Moritz Mühlenhoff <jmm@debian.org>} [src:jbig2dec] jbig2dec: CVE-2026-38076
Added tag(s) pending.
--
1142282: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1142282
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads