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

Summary: lockdev segfaults with invalid command line arguments
Product: [Retired] Red Hat Linux Reporter: Chris Ricker <chris.ricker>
Component: lockdevAssignee: Eido Inoue <havill>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: jbj, mjc
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-03 17:31:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.