Hello Albert, or anyone else affected,
Accepted zip into oracular-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/zip/3.0-14ubuntu0.2 in
a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
oracular to verification-done-oracular. If it does not fix the bug for
you, please add a comment stating that, and change the tag to
verification-failed-oracular. In either case, without details of your
testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: zip (Ubuntu Oracular)
Status: Confirmed => Fix Committed
** Tags added: verification-needed-oracular
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zip in Ubuntu.
https://bugs.launchpad.net/bugs/2093024
Title:
[SRU] zip crashes when using options -T and -TT
Status in zip package in Ubuntu:
Fix Released
Status in zip source package in Noble:
Fix Committed
Status in zip source package in Oracular:
Fix Committed
Status in zip source package in Plucky:
Fix Released
Bug description:
[ Impact ]
Running zip command with -T -TT arguments causes zip process to crash
due to buffer overflow. See below:
$ zip a.zip /etc/hosts -T -TT "ls"
adding: etc/hosts (deflated 35%)
*** buffer overflow detected ***: terminated
zip error: Interrupted (aborting)
free(): double free detected in tcache 2
[ Test Plan ]
$ zip a.zip /etc/hosts -T -TT "ls"
adding: etc/hosts (deflated 41%)
ziAEBMZH
test of a.zip OK
This is what should be displayed with a working `zip` package. If you
still have the crash described just above, then the verification is
failed.
Additionally, a dep8 test covering this test case has been added to
the package.
[ Where problems could occur ]
Considering that the patch is just a buffer size increase by 1, it should be pretty safe. However, as with every update, there is always a chance that something goes wrong, and `zip` is even more broken than before. The dep8 test added in this new version at least verifies that a basic usage of the tool is working.
Additionally, since this is a simple CLI tool, it's quite easy to verify that it's not completely broken.
[ Other Info ]
N/A
[Original description]
Running zip command with -T -TT arguments causes zip process to crash
due to buffer overflow. See below:
$ zip a.zip /etc/hosts -T -TT "ls"
adding: etc/hosts (deflated 35%)
*** buffer overflow detected ***: terminated
zip error: Interrupted (aborting)
free(): double free detected in tcache 2
$ lsb_release -rd
OS: Ubuntu 24.04.1 LTS
$ apt-cache policy zip
zip:
Installed: 3.0-13ubuntu0.1
Candidate: 3.0-13ubuntu0.1
Version table:
*** 3.0-13ubuntu0.1 500
500 http://pl.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
100 /var/lib/dpkg/status
3.0-13build1 500
500 http://pl.archive.ubuntu.com/ubuntu noble/main amd64 Packages
In addition to that I tested various docker images - here are the results:
- ubuntu:24.10 at sha256:102bc1874fdb136fc2d218473f03cf84135cb7496fefdb9c026c0f553cfe1b6d - zip 3.0-14ubuntu0.1 - issue occurs
- ubuntu:24.04 at sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab - zip 3.0-13ubuntu0.1 - issue occurs
- ubuntu:20.04 at sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b - zip 3.0-11build1 - issue does not occur
- debian:bookworm at sha256:b877a1a3fdf02469440f1768cf69c9771338a875b7add5e80c45b756c92ac20a - zip 3.0-13 - issue does not occur
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zip/+bug/2093024/+subscriptions