bzip2recover, CVE-2026-42250 and 1.0.9 release
Mark Wielaard
mark@klomp.org
Thu Jun 4 22:23:54 GMT 2026
Hi all,
So some bugs were found in bzip2recover, on issue was assigned
CVE-2026-42250, but I think the various bugs are about equal in
seriousness. Nice to get fixed, but nothing dramatic.
I already pushed the bug fix for the CVE issue:
https://sourceware.org/cgit/bzip2/commit/?id=35d122a3df8b It is
probably safe to backport it. It turns out Red Hat had already fixed
this issue last year:
https://gitlab.com/redhat/centos-stream/rpms/bzip2/-/commit/1daa00dbff3c
But only for their RHEL and CentOS 10 product releases. Not older
releases and not for Fedora.
I also added checking for bzip2recover to the bzip2-tests run-tests.sh
wrapper. This also has already been pushed so we can better test the
other fixes:
https://sourceware.org/cgit/bzip2-tests/commit/?id=fbe320e54bc2
It found one issue I am not sure we should fix (probably not),
bzip2recover fails on a (valid) empty.bz2 file. It cannot extract any
blocks from it, so it kind of makes sense it fails.
With some extra valgrind flags --leak-check=full and --track-fds=yes
it also found a bug in bzip2. On some bad files it doesn't close the
input file descriptor. This is a real bug I like to fix since it is a
leak when you have many (bad) bzip2 files on the command line.
I also like to finally integrate the autotools and pkgconfig support
before we do the release. The one thing that still keeps me thinking
is the SONAME issue. It would be so nice if we could somehow ship in a
way that makes both work.
https://bugzilla.redhat.com/show_bug.cgi?id=1979634 and
https://github.com/fedora-silverblue/issue-tracker/issues/704
(sorry github link doesn't work without proprietary javascript)
Cheers,
Mark
More information about the Bzip2-devel
mailing list