Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD Security Advisory 2010-001: File system module autoloading Denial of Service attack
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NetBSD Security Advisory 2010-001
=================================
Topic: File system module autoloading Denial of Service attack
Version: NetBSD-current: affected prior to 2009-12-19 20:28:27
UTC
NetBSD 5.0.1: affected
NetBSD 5.0: affected
NetBSD 4.0.*: not affected
NetBSD 4.0: not affected
Severity: Local Denial of Service
Fixed: NetBSD-current: Dec 19, 2009
NetBSD-5-0 branch: Dec 21, 2009
NetBSD-5 branch: Dec 21, 2009
Please note that NetBSD releases prior to 4.0 are no longer supported.
It is recommended that all users upgrade to a supported release.
Abstract
========
A coding error in the NetBSD VFS code allows a local attacker to
crash the local system by passing a soon-to-be-unmapped pointer
as a file system name to the mount system call.
Technical Details
=================
When entering the mount_get_vfsops() function, the string "fstype",
containing the file system name, is first copied from userspace into the
kernel address space variable "fstypename". Upon invocation of the file
system kernel module autoloader, however, the module_autoload() function
was passed the "fstype" variable, which points to userspace memory.
If a pointer passed to the mount system call as the file system name is
unmapped before being used by the module autoloader, the module autoloader
will access unmapped memory, causing an unresolvable page fault in kernel
space and subsequently a kernel panic.
The same occurrs unconditionally on architectures with completely separate
kernel and user address spaces.
Solutions and Workarounds
=========================
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/kern/vfs_syscalls.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
=========
Martin Husemann for finding and reporting the vulnerability, and for
developing a patch for it.
Revision History
================
2010-01-12 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
http://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2010-001.txt.asc
Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.org/ and http://www.NetBSD.org/Security/.
Copyright 2010, The NetBSD Foundation, Inc. All Rights Reserved.
Redistribution permitted only in full, unmodified form.
$NetBSD: NetBSD-SA2010-001.txt,v 1.1 2010/01/12 20:11:04 tonnerre Exp $
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (NetBSD)
iQIcBAEBAgAGBQJLTNdsAAoJEAZJc6xMSnBuCB0QAJn/hp3NRL2VKq44S4DZE4LT
o3MPtyjk4v7+43MGs7BA0GuM+f+lA62jpntE0TJtBk29wDArywYvneUMjlGs6xrv
Nflj5pKmvJRXBg+X1t86+Apu9m3QX29wRg5u47de2P6cHo/zXR43jTQJEbjl2D6B
i8+AprxP6IBxf92Jo5op/92Tb7ocNzPW2y/XQ1Nw2c/uq3iroDnBrs67IEdG9n33
ZazS06Pzr+F9y/Wb5cy4GurK425yWS8dgiTZmO3jDNl4JeKj+Rh+n3Cd6OqjxeVB
lW3y2JLUMDODxpxePOJHJP3qr3D4/vmIFELj+GEwR6C01zn1zkAJph4bak9Cf0X8
sVFozIssO99DXs9xI0eAt63Zt/p8CEu0KijyfqL8DN7hAOZEnS0Epgp56FiFoxhU
zETIkFt9OFrgJ4yJn0nMHhQnfgFB4ZVkuLiQcxtObQUrhhIN2qp/+QCNFIhOh9bz
d/WxGGoCU4C/PdsakrkhaC3p3BauM0b2QI1M/y3KBjWmUt/6nSL3BEmpPSIjr59z
/+zFUinDButtnSB+ObbHAAOhG0Q1whp/e1BObptXW2lHaSgo4hsaIT/vcyu5ZjNu
Xvl7DxURqcx764+hIzt7xjOjyLQPZWeBJq0CgtM3u5MLH9VAwpZwZL6uZp5DJVVz
9ip6/yjo0jBpPMtNIVsI
=NCUa
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index