Bug 78927 - lockdev segfaults with invalid command line arguments
Summary: lockdev segfaults with invalid command line arguments
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lockdev
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Eido Inoue
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2002-12-03 17:31:57 UTC
Embargoed:


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.