Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 78927 - lockdev segfaults with invalid command line arguments
Summary: lockdev segfaults with invalid command line arguments
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lockdev
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Eido Inoue
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2002-12-03 17:31 UTC by Chris Ricker
Modified: 2007-04-18 16:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-12-03 17:31:57 UTC

Attachments (Terms of Use)

Description Chris Ricker 2002-12-03 17:31:50 UTC
lockdev segfaults with incomplete command-line arguments

[kaboom@verdande kaboom]$ /usr/sbin/lockdev -l
Segmentation fault
[kaboom@verdande kaboom]$ /usr/sbin/lockdev -u
Segmentation fault
[kaboom@verdande kaboom]$ ls -l /usr/sbin/lockdev 
-rwxr-sr-x    1 root     lock        12325 Jun 23 14:26 /usr/sbin/lockdev
[kaboom@verdande kaboom]$ 

Given that lockdev is sgid, this lack of input validity sanity checking could
potentially be used for an escalation of privilege attack (though it didn't
actually look exploitable the little bit I looked at it)

Comment 1 Mark J. Cox 2002-12-04 10:49:21 UTC
Thanks for reporting this.  It's a known problem, fixed in lockdev-1.0.0-21.  We
don't see that this bug can be exploited, as there is no input to the program
other than the device name which, if missing, segfaults.

Note You need to log in before you can comment on or make changes to this bug.