LinuxSecurity.com
Share your story
The central voice for Linux and Open Source security news
Home News Topics Advisories HOWTOs Features Newsletters About Register

Welcome!
Sign up!
EnGarde Community
Login
Polls
What is the most important Linux security technology?
 
Advisories
Community
Linux Events
Linux User Groups
Link to Us
Security Center
Book Reviews
Security Dictionary
Security Tips
SELinux
White Papers
Featured Blogs
All About Linux
DanWalsh LiveJournal
Securitydistro
Latest Newsletters
Linux Security Week: October 20th, 2014
Linux Advisory Watch: October 17th, 2014
Subscribe
LinuxSecurity Newsletters
E-mail:
Choose Lists:
About our Newsletters
RSS Feeds
Get the LinuxSecurity news you want faster with RSS
Powered By

  
NetBSD-SA1999-005 lsof(1) package problems Print E-mail
User Rating:      How can I rate this item?
Posted by LinuxSecurity.com Team   
NetBSD Security problem in lsof package fixed.
-----BEGIN PGP SIGNED MESSAGE-----

                 NetBSD Security Advisory 1999-005
                 =================================

Topic:          Security problem in lsof package fixed.
Version:        Anything before lsof-4.40 without arg.c.patch applied.
Severity:       Local users may obtain root priviledge.


Abstract
========

Buffer overflow in lsof version 4.40 and prior where local users may
obtain root priviledge.  This package is available with the NetBSD
packages collection and is not installed by default.


Technical Details
=================

In http://www.hert.org/advisories/HERT-02.asc was reported:

When lsof is setuid-root or setgid kmem it is vulnerable to a buffer
overflow that will lead to direct root compromise or root compromise
through live kernel patching.


Solutions and Workarounds
=========================

As immediate workaround remove the setgid bit from lsof:

        chmod 0755 /usr/pkg/sbin/lsof

For a real solution NetBSD users should update pkgsrc/sysutils/lsof so
it contains:

Makefile:
     NetBSD: Makefile,v 1.13 1999/02/18 23:09:45 frueauf Exp

and rebuild/install the lsof package. This applies arg.c.patch
which was made available from the author of lsof:

MD5 (lsof/arg.c.patch) = 83fc82fe3c9917418934b964854b4590

This patch corrects a buffer overflow in the processing of -u option
login name values. Without this patch a login name longer than 9
characters can cause an internal buffer overflow and segmentation fault.


Thanks To
=========

Thanks go to Vic Abell  for providing arg.c.patch
on the lsof main site, HERT (http://www.hert.org/advisories/HERT-02.asc)
for announcing the advisory and Thorsten Frueauf 
for fixing lsof in the NetBSD packages collection.


Revision History
================
        1998/02/28 - fix the NetBSD RCS ID expansion in the Solutions
        and Workarounds section.


More Information
================

Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/.
Information about the NetBSD packages collection can be found at
http://www.NetBSD.ORG/Documentation/software/packages.html.


Copyright 1999, The NetBSD Foundation, Inc.  All Rights Reserved.

$NetBSD: NetBSD-SA1999-005.txt,v 1.3 1999/02/28 01:24:08 mrg Exp $

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBNtiaxT5Ru2/4N2IFAQGVAwP+Os4dKsKcuVdY6drKa7W9X2x0Z8xPKhmw
XE4uQ3DPeyOC6Twb4QW/lFvmidz4xKs0Qp4Ad6YKrwJ/4s8mdkbikSVaroNRCg7k
tHd9k/LPZdr1Lzm2BzeSqomDoqA12Njsbjpx4nmc+30eWgTD72HoFtdz4Bcw9RV/
40wm0pNOGEY=
=OHNG
-----END PGP SIGNATURE-----
 
< Prev   Next >
    
Partner

 

Latest Features
Peter Smith Releases Linux Network Security Online
Securing a Linux Web Server
Password guessing with Medusa 2.0
Password guessing as an attack vector
Squid and Digest Authentication
Squid and Basic Authentication
Demystifying the Chinese Hacking Industry: Earning 6 Million a Night
Free Online security course (LearnSIA) - A Call for Help
What You Need to Know About Linux Rootkits
Review: A Practical Guide to Fedora and Red Hat Enterprise Linux - Fifth Edition
Yesterday's Edition
Mobile Device Encryption Could Lead to a ‘Very, Very Dark Place’, FBI Director Says
What a hacker can learn about your life from the coffee shop’s Wi-Fi network
Partner Sponsor

Community | HOWTOs | Blogs | Features | Book Reviews | Networking
 Security Projects |  Latest News |  Newsletters |  SELinux |  Privacy |  Home
 Hardening |   About Us |   Advertise |   Legal Notice |   RSS |   Guardian Digital
(c)Copyright 2014 Guardian Digital, Inc. All rights reserved.