exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

NetBSD-SA2006-001.txt

NetBSD-SA2006-001.txt
Posted Jan 10, 2006
Site NetBSD.org

NetBSD Security Advisory 2006-001 - The kernfs filesystem does not validate file offsets properly and a userlevel non-privileged process can read arbitrary kernel memory locations.

tags | advisory, arbitrary, kernel
systems | netbsd
SHA-256 | 56fccbb5673d5da87cdc6963c43be8e91b263483cf2743118931ef3514e00591

NetBSD-SA2006-001.txt

Change Mirror Download

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


NetBSD Security Advisory 2006-001
=================================

Topic: Kernfs kernel memory disclosure

Version: NetBSD-current: source prior to November 23, 2005
NetBSD 3.0: not affected
NetBSD 2.1: affected
NetBSD 2.0.3: affected
NetBSD 2.0: affected
NetBSD 1.6: affected

Severity: kernel sensitive information can be disclosed

Fixed: NetBSD-current: November 23, 2005
NetBSD-3 branch: November 24, 2005
NetBSD-2.1 branch: November 29, 2005
NetBSD-2.0 branch: November 29, 2005
NetBSD-2 branch: November 29, 2005
NetBSD-1.6 branch: November 29, 2005

Abstract
========

The kernfs filesystem does not validate file offsets properly and
a userlevel non-privileged process can read arbitrary kernel memory
locations.

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

The lseek(2) system call for the kernfs file system has insufficient
bounds checking, allowing arbitrary memory locations to be read.

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

A workaround for the issue is to not mount the kernfs file system.

For all NetBSD versions, you need to obtain fixed kernel sources,
rebuild and install the new kernel, and reboot the system.

The fixed source may be obtained from the NetBSD CVS repository.

The following instructions briefly summarise how to upgrade your
kernel. In these instructions, replace:

ARCH with your architecture (from uname -m), and
KERNCONF with the name of your kernel configuration file.

To update from CVS, re-build, and re-install the kernel:

# cd src
# cvs update -d -P sys/miscfs/kernfs/kernfs_vnops.c
# ./build.sh kernel=KERNCONF
# mv /netbsd /netbsd.old
# cp sys/arch/ARCH/compile/obj/KERNCONF/netbsd /netbsd
# shutdown -r now

For more information on how to do this, see:

http://www.NetBSD.org/guide/en/chap-kernel.html


Thanks To
=========

Ejovi Nuwere from SecurityLab for reporting the bug and Christos Zoulas
for the fix.


Revision History
================

2006-01-09 Initial release


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

Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at
ftp://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2006-001.txt.asc

Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.org/ and http://www.NetBSD.org/Security/.


Copyright 2006, The NetBSD Foundation, Inc. All Rights Reserved.
Redistribution permitted only in full, unmodified form.

$NetBSD: NetBSD-SA2006-001.txt,v 1.5 2006/01/09 14:48:35 gendalia Exp $

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iQCVAwUBQ8J3+z5Ru2/4N2IFAQIizAP/V8ad1aW7fMvDFdymQveBoW0U+7+tJgoV
lzIbV7gt8tkDw0jANVqvorLoy0bC09YxnsvG/MmEwjvt6OHl80i1xd4idWhBIwSc
3NsjNd0RKiaf1Xj8pGDiuiJI8+c/2+LMhdtuXKPu7WM4EMVj7NHmxxZlzH6bFJTI
eEunu2Me4ms=
=Z6b1
-----END PGP SIGNATURE-----
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    0 Files
  • 7
    May 7th
    0 Files
  • 8
    May 8th
    0 Files
  • 9
    May 9th
    0 Files
  • 10
    May 10th
    0 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close