* SECURITY/CORRECTION: Re: /dev/random and MAKEDEV-C-1.6
@ 1997-04-25 4:00 Theodore Y. Ts'o
0 siblings, 0 replies; only message in thread
From: Theodore Y. Ts'o @ 1997-04-25 4:00 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
- -----BEGIN PGP SIGNED MESSAGE-----
From: David Holland <dholland@hcs.harvard.edu>
Date: Thu, 24 Apr 1997 11:36:30 -0400 (EDT)
It has come to my attention that the recent 1.6 release of MAKEDEV-C
inadvertently created /dev/random and /dev/urandom with the wrong
permissions.
**** This has potentially serious security implications.
**** Unrestricted write access to /dev/random and /dev/urandom
**** makes them cryptographically worse than useless.
Sorry, but this simply isn't true. I wish someone had contacted me
before sending out the alarums to c.o.l.a. [ To the c.o.l.a. moderator,
if the alert has already been published, if you could send this out as
well, I'd be grateful.]
Writes to /dev/random and /dev/urandom are *mixed* into the entroy
pool. If you don't know the state of the pool before the write, you
don't know anything about the state of the pool after the write. We use
a complex (but invertible, so that no state is lost) mixing function
that involves the use of XOR and a twisted LFSR so that you get good
mixing even if you feed all zero's into /dev/random. A critical design
property of /dev/random's mixing algorithm is that even if the attacker
knows some of the values that are mixed into the pool, it doesn't
detract from the entropy of the unknown values which are mixed in.
(To those of you who are wondering SHA is used only on the output side
of the random number generator, when we wish to extract random numbers.)
Also, note that writes to /dev/random do not increase the entropy count
of the pool, because of the possibility that an unprivileged attacker
might be mixing in known values to the pool. In this case, the entropy
will not increase, but neither does it decrease either.
There is an ioctl() which you have to use if you want to increase the
entropy count, and this requires root access. This is for the
possibility of user-mode daemons that might sample /dev/audio, or some
such. Note that if you write such a daemon, you will need to do your
own analysis, (probably involving FFT's) in order to properly estimate
the amount of randomness in your /dev/audio input. (i.e., you need to
account for the non-random parts of the /dev/audio stream, such as that
which is attributable to the 60Hz or 50Hz hum.)
- Ted
- -----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.2, an Emacs/PGP interface
iQCVAwUBM2D1NUQVcM1Ga0KJAQH+3wP9E0U9BB0qG491CA1np0AReJHPqud9WgiA
nVIP8ccrXI+E8XyJz6FdptQVlKUQsZ5V0NGUV27CwBU2+KvNU7Rd+6z2Ri8iu3GO
p0Jq5XIGfuLiJgC6t1sk8Z3YADdi2IY2CTpS32K6T6/QxR5KkfOl1L7M0UZhMr57
JR61L4k2fS0=
=CY2a
- -----END PGP SIGNATURE-----
- --
This article has been digitally signed by the moderator, using PGP.
http://www.iki.fi/liw/lars-public-key.asc has PGP key for validating signature.
Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov
PLEASE remember a short description of the software and the LOCATION.
This group is archived at http://www.iki.fi/liw/linux/cola.html
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBM2EERYQRll5MupLRAQF0pgQAtR8VqDTsZL+j/j08qq7j3gAVzjcWZEh+
mmq5P8xazbz2aUlu6C+yzUBgR89hb7py3mdSlOAYuQxhiUnSnkAY3wZaT6HiwGt+
lmyz8xFUNSKd3IHdydw+ukavOraelpjfShtofV5ZvZFEzVy6AWCCPU6ILw0Ix8xy
KL83D2xbBb4=
=vzvD
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-04-25 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-25 4:00 SECURITY/CORRECTION: Re: /dev/random and MAKEDEV-C-1.6 Theodore Y. Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox