Large mod-time values poison arhives, preventing restoration

Bug #556144 reported by jimav
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dar (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: dar

If a file is backed up which has a very large (more than 32 bits?)
mod-time value, then dar segfaults when trying to restore the archive, or even list it.

This is a catastrophic problem, and a security problem,
because any user can create such a file which, when backed up, prevents access
to any files in the archive after that point in the archive.

Attached is a perl script which creates such a "poison" file.

DEMO:
Download create_deadly_file.pl (attached)
midir testdir
(cd testdir && create_deadly_file.pl) # creates poison file in the test directory

dar --fs-root `pwd`/testdir --create /tmp/dartest --verbose

dar --list /tmp/dartest # SEGFAULTs

ProblemType: Bug
Architecture: amd64
Date: Mon Apr 5 17:45:32 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: fglrx
Package: dar 2.3.9-1ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-21.59-generic
SourcePackage: dar
Uname: Linux 2.6.31-21-generic x86_64

Revision history for this message
jimav (james-avera) wrote :
Kees Cook (kees)
visibility: private → public
Changed in dar (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Denis Corbin (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwf-1vd1jn0oc-a811i2i3ytqlsztthjth0svbccw8inm65tmkqp9sarr553jq53in4xm1m8wn3o4rl) wrote :

Hello,

this bug is fixed since in dar release 2.3.10 (April 9th, 2010)

Regards,
Denis Corbin.

Changed in dar (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.