sobota, 11 października 2008 
Start arrow Security Advisory arrow NetBSD arrow NetBSD-SA2005-005
Menu BSD4u
FreeBSD
OpenBSD
NetBSD
Dla *BSD
FAQ BSD4u
Forum BSDGuru.org
Security Advisory
Licencje
Images BSD
Menu ogólne
Start
Aktualności
Download
Sondy
Szukaj
Linki
Książki
About BSD4u
Info
Team BSD4u
Regulamin
Kanał #BSD4u
Kontakt
Sondy
Co sądzisz o naszym nowym Projekcie, i jak oceniasz zmianę koncepcji Projektu?
 
Popularne
Kompilacja i konfigu...
SQUID - najpopularni...
Neostrada+ i modem ...
NATowanie czyli jak ...
Samba - serwer plikó...
Upgrade systemu
Apache (konfiguracja...
Praktyczne IPFW
MRTG - statystyki ru...
CVSup - pomocny podc...
Neostrada na modemie...
Postfix z autoryzacj...
Postfix - bezpieczny...
System Portów (Kolek...
Dummynet - dzielenie...
Top Download
File icon Postfix - "Krok po kroku" v1.06589
File icon Postfix - "Krok po kroku" v1.16508
File icon PPTPd - "Prosty i szybki VPN" v1.0b6043
File icon sdi.sh3839
File icon uEagle 1.0p12961
File icon named.sh2906
File icon uEagle 0.99b2861
File icon cs.sh2784
File icon uEagle 1.02752
File icon uEagle 1.12555
Ostatnie komentarze
transparent a virus...
Dodał: grzywka18
Dnia: 2008-05-13 11:19:58
hmm
Dodał: dzibi
Dnia: 2007-12-12 10:01:14
Bez tytułu
Dodał: grzywka18
Dnia: 2007-12-11 17:46:06
Bez tytułu
Dodał: termid
Dnia: 2007-05-09 18:01:11
Bez tytułu
Dodał: sarelo33
Dnia: 2006-12-30 23:50:14
Jest ok ale..
Dodał: theviant
Dnia: 2006-11-16 08:10:05
Google

Google


Newsletter
Zapisz się na nasz newsletter, jeżeli chcesz być na bieżąco informowany o aktualnościach..




NetBSD-SA2005-005 Drukuj E-mail
Oceny: / 0
KiepskiBardzo dobry 
czwartek, 03 listopada 2005 - Napisał: Artur Kulda (1128 odsłon)
Topic: cgd(4) key destruction on unconfigure
Version: NetBSD-current: source prior to March 19, 2005
NetBSD 2.1: not affected
NetBSD 2.0.3: not affected
NetBSD 2.0.2: not affected
NetBSD 2.0: affected
NetBSD 1.6.*: not affected
Severity: possible key compromise
Fixed: NetBSD-current: March 19, 2005
NetBSD-3 branch: March 19, 2005 (3.0 will include the fix)
NetBSD-2.0 branch: March 20, 2005 (2.0.2 includes the fix)
NetBSD-2 branch: March 20, 2005 (2.1 includes the fix)

Abstract

When a cgd(4) pseudo-device is unconfigured, the driver does not clear
memory containing key material before freeing it back to other kernel
use. A process may later allocate kernel memory and receive chunks
with data previously used by the cgd driver which may contain
encryption keys.

Technical Details

The cgd(4) pseudo-device provides an encrypted virtual disk, layered
on top of other disk device drivers. The encryption is done in
software, with cryptographic keys configured and supplied to the
kernel via the cgdconfig(8) program, and stored in the kernel for the
lifetime of the pseudo-device.

With any such software-based encryption scheme, there is a risk of key
disclosure via examination of kernel memory. This is inherent in the
need for the kernel to perform cryptographic operations, and
unavoidable while the disk must be accessible to user processes.

A cgd(4) device can be unconfigured, which removes the in-kernel
configuration structures and prevents any further access to the
decrypted contents of the disk via the cgd(4) driver until the key is
re-entered. However, the structures containing key material were
freed back to the kernel memory pool without having their contents
erased first. It was therefore possible that key material could still
be present in kernel memory after the user expected it to be
destroyed.

Any mechanism that allows kernel memory disclosure poses potential
security risks, and care is always taken to avoid disclosing previous
memory contents when allocating memory in the kernel and communicating
with userland; it is therefore considered unlikely that this problem
would expose stale key material to any attacker not otherwise able to
read kernel memory.

The potential exposure lies in the user expectation that the keys are
destroyed; they may therefore take steps at this time which they might
otherwise avoid while key material is live in the kernel, and which
may increase the risk of key disclosure. The most significant risk
lies in the use of BIOS suspend-to-disk mechanisms, which write out
the contents of all physical memory to disk - potentially including
uncleared cgd(4) key material.

Note that the use of such suspend-to-disk mechanisms with cgd(4)
devices is heavily discouraged for these reasons; even when the device
has been unconfigured and the key destroyed, decrypted copies of
sensitive information from the disk may remain in physical memory
pages from unrecycled kernel buffers or user applications.

The cgd(4) driver appeared in NetBSD-current prior to the 2.0 release;
this issue does not affect the NetBSD 1.6 releases or earlier.

Solutions and Workarounds

There is no workaround to this problem. The fix requires a new kernel
to be built and installed.

The following instructions describe how to upgrade your cgd driver
by updating your source tree and rebuilding and installing a new version
of the kernel.

* NetBSD-current:

Systems running NetBSD-current dated from before 2005-03-19
should be upgraded to NetBSD-current dated 2005-03-20 or later.

The following directories need to be updated from the
netbsd-current CVS branch (aka HEAD):
sys/dev/cgd_crypto.c

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

# cd src
# cvs update -d -P sys/dev/cgd_crypto.c
# ./build.sh kernel=GENERIC
# mv /netbsd /netbsd.old
# cp sys/arch/`machine`/compile/obj/GENERIC/netbsd /netbsd
# shutdown -r now

* NetBSD 2.0 (and subsequent point releases):

The binary distribution of NetBSD 2.0 (and subsequent point
releases) is vulnerable.

NetBSD 2.1 includes the fix.

Systems running NetBSD 2.0 (and subsequent point releases) built
from sources dated before 2005-03-20 should be upgraded from
sources dated 2005-03-21 or later.

The following directories need to be updated from CVS:
sys/dev/cgd_crypto.c

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

# cd src
# cvs update -d -P sys/dev/cgd_crypto.c
# ./build.sh kernel=GENERIC
# mv /netbsd /netbsd.old
# cp sys/arch/`machine`/compile/obj/GENERIC/netbsd /netbsd
# shutdown -r now

Thanks To

Daniel Carosone for reporting and fixing this vulnerability.

Revision History

2005-10-31 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-SA2005-005.txt.asc

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

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

Ostatnio aktualizowany ( czwartek, 03 listopada 2005 )

« wstecz   dalej »
Ciekawostki
Możesz logować swoje czynności na konsoli programem script(1).
Pobierz
FreeBSD
OpenBSD
NetBSD
DragonFlyBSD
PC-BSD
FreeSBIE LiveCD
4.4BSD Lite
Reklama M3M.pl
Domeny
Książki

FreeBSD. Księga eksperta

FreeBSD. Księga eksperta

Cena: 125.00 zł
Dodaj do koszyka


FreeBSD. Podstawy administracji systemem

FreebBSD

Cena: 64.90 zł
Dodaj do koszyka


OpenBSD. Podstawy administracji systemem

OpenBSD

Cena: 84.90 zł
Dodaj do koszyka


OpenBSD. Tworzenie firewalla za pomocą PF

Firewall PF

Cena: 44.90 zł
Dodaj do koszyka

Licznik odwiedzin
Odwiedziło już nas
2462685
Internautów od lutego 2003

Korzystamy ze statysyk