BSD Tar is allocating gigabytes to list files
Bug #1487020 reported by
Gustavo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libarchive (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Hello!
Our fuzzer found an interesting test case in which BSD tar allocates a few gigabytes just to show the filenames of a tar file. You can run check it using: ltrace -e malloc /usr/bin/bsdtar -tf buggy.bsd-
In the ltrace output you can easily spot:
....
libarchive.
....
We checked in the source code and we think it is not possible to perfom an integer overflow (but of course we are not completely sure). We email you this test case privately because of the possible security implications of it. This issue seems to be fixed in the last revisions of libarchive.
Thanks!
To post a comment you must log in.
Hello - Thank you for the bug report. I've tried to reproduce the issue that you reported but I haven't been successful. What Ubuntu release were you using and what version of libarchive were you testing with? Also, what architecture? Thanks!