Article View: linux.debian.bugs.dist
Article #1969Bug#1151921: jxrlib: memory bugs on damaged JPEG XR files, fixed in mircomir/jxrlib 1.4.4
From: Joachim Rütter
Date: Sat, 24 Oct 2026 16:20
Date: Sat, 24 Oct 2026 16:20
104 lines
7380 bytes
7380 bytes
--Apple-Mail=_4039C038-D41B-477D-9419-62D8D70180C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Package: jxrlib > Version: 1.2~git20170615.f752187-5.3 > Severity: important > Tags: security upstream > X-Debbugs-Cc: team@security.debian.org >=20 > Hello, >=20 > jxrlib in Debian (1.2~git20170615.f752187-5.3 in sid, forky and = trixie; -5 in bookworm; 1.1-6 in > bullseye) has memory bugs that a damaged JPEG XR file of a few hundred = bytes triggers, including a > heap buffer overflow write. All of them are fixed in the maintained = fork > https://github.com/mircomir/jxrlib (1.4.4, 2026-10-09), which Arch, = openSUSE Tumbleweed and > MacPorts already ship. >=20 > Details, the affected functions and the fixing commits: > https://www.openwall.com/lists/oss-security/2026/10/24/1 >=20 > In short (line numbers from 1.2~git20170615.f752187-5.3): >=20 > 1. ReadBinaryData, jxrgluelib/JXRMeta.c:677: uCount + 2 overflows, = heap buffer overflow > (write). Shown by source review. Fixed in cb97e6d. > 2. ReadWMIHeader, image/decode/strdec.c:2965: stack buffer over-read. = Fixed in d6e5f8d. > 3. DecodeSignificantRun, image/decode/segdec.c:362: global buffer = over-read. Fixed in debe47a. > 4. initLookupTables, image/decode/strdec.c:2617: global buffer = over-read. Fixed in ba86c04. > 5. ImageStrDecDecode, image/decode/strdec.c:3536: NULL write, crash. = Fixed in 190078d. > 6. ParsePFDEntry, jxrgluelib/JXRGlueJxr.c:1573: assert, builds with = asserts only. Fixed in 7d2d462. >=20 > Items 2 to 5 reproduce under AddressSanitizer with JxrDecApp built = from Debian's source > package. The security team has the test files; I can attach them here = too if that helps. >=20 > Suggested fix: move to mircomir/jxrlib 1.4.4, or backport the six = commits. >=20 > Best regards > Joachim Ruetter > https://featherview.mynetx.net --Apple-Mail=_4039C038-D41B-477D-9419-62D8D70180C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dus-ascii"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><div style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;"><div = dir=3D"auto" style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: = space; line-break: after-white-space;"><div = class=3D"Apple-Mail-URLShareUserContentTopClass">Package: = jxrlib</div><div class=3D"Apple-Mail-URLShareWrapperClass" = style=3D"position: relative !important;"><blockquote type=3D"cite" = style=3D"border-left-style: none; color: inherit; padding: inherit; = margin: inherit;">Version: 1.2~git20170615.f752187-5.3<br>Severity: = important<br>Tags: security upstream<br>X-Debbugs-Cc: = team@security.debian.org<br><br>Hello,<br><br>jxrlib in Debian = (1.2~git20170615.f752187-5.3 in sid, forky and trixie; -5 in bookworm; = 1.1-6 in<br>bullseye) has memory bugs that a damaged JPEG XR file of a = few hundred bytes triggers, including a<br>heap buffer overflow write. = All of them are fixed in the maintained = fork<br>https://github.com/mircomir/jxrlib (1.4.4, 2026-10-09), which = Arch, openSUSE Tumbleweed and<br>MacPorts already ship.<br><br>Details, = the affected functions and the fixing = commits:<br>https://www.openwall.com/lists/oss-security/2026/10/24/1<br><b= r>In short (line numbers from 1.2~git20170615.f752187-5.3):<br><br>1. = ReadBinaryData, jxrgluelib/JXRMeta.c:677: uCount + 2 overflows, heap = buffer overflow<br><span = class=3D"Apple-converted-space"> </span> (write). Shown by = source review. Fixed in cb97e6d.<br>2. ReadWMIHeader, = image/decode/strdec.c:2965: stack buffer over-read. Fixed in = d6e5f8d.<br>3. DecodeSignificantRun, image/decode/segdec.c:362: global = buffer over-read. Fixed in debe47a.<br>4. initLookupTables, = image/decode/strdec.c:2617: global buffer over-read. Fixed in = ba86c04.<br>5. ImageStrDecDecode, image/decode/strdec.c:3536: NULL = write, crash. Fixed in 190078d.<br>6. ParsePFDEntry, = jxrgluelib/JXRGlueJxr.c:1573: assert, builds with asserts only. Fixed in = 7d2d462.<br><br>Items 2 to 5 reproduce under AddressSanitizer with = JxrDecApp built from Debian's source<br>package. The security team has = the test files; I can attach them here too if that = helps.<br><br>Suggested fix: move to mircomir/jxrlib 1.4.4, or backport = the six commits.<br><br>Best regards<br>Joachim = Ruetter<br>https://featherview.mynetx.net<br> </blockquote></div></div></div></body></html>= --Apple-Mail=_4039C038-D41B-477D-9419-62D8D70180C4--
Technical Details
Message-ID:
<NRMDn-7CTd-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Joachim Rütter <me@mynetx.net>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151921: jxrlib: memory bugs on damaged JPEG XR files, fixed in mircomir/jxrlib 1.4.4
Date: Sat, 24 Oct 2026 18:20:01 +0200
Message-ID: <NRMDn-7CTd-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Oct 24 16:15:17 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.449
Reply-To: Joachim Rütter <me@mynetx.net>, 1151921@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-phototools-devel@lists.alioth.debian.org
X-Debian-Pr-Message: report 1151921
X-Debian-Pr-Package: jxrlib
X-Debian-Pr-Source: jxrlib
X-Gm-Message-State: AFq9FYJYI2W8XFvOoOSm7Oa6RdbbVi+aE/ZIzpa3JxnUCWt3q/qXSuuF
xstKveuQhlt0lxQv0619RERwNrzsLB/D5QTkQ49VTy3osIOAmgJBQGJhduMtlaW/xN2lhzYo6ZA
+taI=
X-Gm-Gg: AYBFou3FxCK78kXHeINUKZ8VIs1oxEApbYAcPEq+rLqA0u0sXJBeuICCJoobrETjah+
XHS8l0jpkPcT69kQJKpGg1U25a8ewzSzNBfvP5nIkeJZfuvvQNbr7xocZWo/5ItIns3i1mfAFuU
fvJKWGicR1toSGo/OzXVI/6VRBEpDJoOrB4tUVc8KrdXYvxeWwZa4r+Sr/6wqFbMP1W3UnU1+s5
ekrisO+plgXer3m0tbGxbbuyRHbZXWwV84fp9m/BgB+DA961y/k7NduM62buk/bTUfpDI8oHpAD
N/wSgda60pKVCVv4p1e3mKPD+bRATzY6qt+xXBw6f56xwtRu5r8Oi+/vc07BG2OdLvs7ZweJD3G
lyYhf89bwLGe5PuFMgPwhx9irplt0fgIHmMshPj8tIDTB0AnY+u2gEY1QPpquZlAG9Tdl9vn4uP
l9tecwcFY7O3rnOZaAhIIGdXXEsZ69UrbBeezp+HuzapY1cPSfET+hkdj0h6hgfDVJXzpCbTQ+8
UCtvVjFLU3229HTcgXkJP3a5kggnYgsjI3ybySl9Z6uOzx+sctTYLXmTzriM1Pn51t0L6u+O7qm
OE4Dc/9acsVAw4bxiIZYruxJDpMP1hFmpLLh
X-Received: by 2002:a05:600c:a306:b0:4a4:fc8c:cfd9 with SMTP id 5b1f17b1804b1-4a4fc8cd1edmr2768075e9.25.1792858371611;
Sat, 24 Oct 2026 09:12:51 -0700 (PDT)
Content-Type: multipart/alternative;
boundary="Apple-Mail=_4039C038-D41B-477D-9419-62D8D70180C4"
MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
X-Mailer: Apple Mail (2.3901.100.1.1.12)
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998589
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 104
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 24 Oct 2026 16:12:17 +0000
X-Original-Message-ID: <B28C3C36-FE74-421D-B4D1-2E1E9AACFD96@mynetx.net>