Reproducible crash in tiff2png (libtiff-tools), illegal free
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tiff (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm on Linux Mint Petra (which is essentially saucy without the Ubuntu bullshit like Unity) on x86_64. Since they use your apt repo and this might possibly warrant even a CVE, I report this bug here, since you're upstream (for the packaging at least).
When trying to convert a tiff file to a png using tiff2png I can reproducibly get a crash at file generation (i.e. some output is generated but it's not a valid PDF since the footer xref table is missing). The crash always occurs because of a invalid free. Addresses vary obviously (ASLR):
*** Error in `tiff2pdf': free(): invalid size: 0x00007faa5cabfc20 ***
======= Backtrace: =========
/lib/x86_
tiff2pdf(
tiff2pdf(
tiff2pdf(
/lib/x86_
tiff2pdf(
======= Memory map: ========
7faa59fc9000-
7faa59fde000-
7faa5a1dd000-
7faa5a1de000-
7faa5a1df000-
7faa5a1e2000-
7faa5a3e1000-
7faa5a3e2000-
7faa5a3e3000-
7faa5a4e6000-
7faa5a6e5000-
7faa5a6e6000-
7faa5a6e7000-
7faa5a6ff000-
7faa5a8fe000-
7faa5a8ff000-
7faa5a900000-
7faa5a943000-
7faa5ab43000-
7faa5ab44000-
7faa5ab45000-
7faa5ab55000-
7faa5ab60000-
7faa5ad5f000-
7faa5ad60000-
7faa5ad63000-
7faa5ad84000-
7faa5af83000-
7faa5af84000-
7faa5af85000-
7faa5b142000-
7faa5b342000-
7faa5b346000-
7faa5b348000-
7faa5b34d000-
7faa5b3bb000-
7faa5b5bb000-
7faa5b5bc000-
7faa5b5bf000-
7faa5b6b5000-
7faa5b7b3000-
7faa5b7dd000-
7faa5b7e1000-
7faa5b7e2000-
7faa5b7e4000-
7faa5b9f3000-
7faa5b9f4000-
7faa5cabe000-
7fff5e17a000-
7fff5e1fe000-
ffffffffff60000
./cmd: line 5: 8522 Aborted tiff2pdf -o out.pdf -j in.tiff
Here's the package sources I'm using and the versions of some libraries which are pulled in:
ii libtiff-tools 4.0.2-4ubuntu3 amd64 TIFF manipulation and conversion tools
ii libtiff4:amd64 3.9.7-2ubuntu1 amd64 Tag Image File Format (TIFF) library (old version)
ii libtiff5:amd64 4.0.2-4ubuntu3 amd64 Tag Image File Format (TIFF) library
ii libjpeg8:amd64 8c-2ubuntu8 amd64 Independent JPEG Group's JPEG runtime library (dependency package)
ii libjpeg8-dev:amd64 8c-2ubuntu8 amd64 Independent JPEG Group's JPEG runtime library (dependency package)
ii libjbig0:amd64 2.0-2ubuntu1 amd64 JBIGkit libraries
ii libjbig2dec0 0.11+20120125-
I do not yet know if this bug is exploitable, but it might well be. I'll do some further digging. And I'll attach to this bug the file with which the bug can be reproduced. Since image to PDF conversion is something that is widely used in web interfaces (i.e. exposed software), this could be really worrying.
Cheers,
Johannes
information type: | Private Security → Public Security |
Changed in tiff (Ubuntu): | |
status: | New → Confirmed |
Thanks, I have reported this upstream.