From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,e25b0178ffb0111f,start X-Google-Attributes: gid10d4db,public From: David Holland Subject: SECURITY: /dev/random and MAKEDEV-C-1.6 Date: 1997/04/25 Message-ID: #1/1 X-Deja-AN: 237278495 X-Server-Date: 25 Apr 1997 10:58:21 GMT Followup-To: comp.os.linux.misc Old-Date: Thu, 24 Apr 1997 11:34:56 -0400 (EDT) Organization: none X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUBM2COYTiesvPHtqnBAQHfwgH/ZFkNOxauLNOCZkD2TjN2/uh97GzdoZ/1 ryjJCeePMDT2BnptjyRvg13NZTagRMhBPHyeRU//6E+lj1Sl9+JfTw== =C+9P Newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- - -----BEGIN PGP SIGNED MESSAGE----- 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. /dev/random and /dev/urandom should look like this: crw-r--r-- 1 root system 1, 8 Feb 21 14:42 /dev/random crw-r--r-- 1 root system 1, 9 Feb 21 14:42 /dev/urandom If they do not, please do "chmod 644 /dev/random /dev/urandom". **** This has potentially serious security implications. **** Unrestricted write access to /dev/random and /dev/urandom **** makes them cryptographically worse than useless. If you have MAKEDEV-C-1.6 installed please get MAKEDEV-C-1.6.1, which has just been uploaded to Sunsite and should appear in /pub/Linux/system/admin. It can also be gotten from ftp://ftp.hcs.harvard.edu/pub/linux/makedev. Alternatively apply the following patch. You do not need to recompile the makedev binary itself, but you do need to update the installed devinfo and makedev.cfg files. If you don't have pgp and don't know how to fix a patch that pgp has signed, you can get the patch from the hcs ftp site, although I did not upload it to sunsite. If you have questions or concerns, feel free to mail me. David A. Holland dholland@hcs.harvard.edu diff -r -u -N makedev-1.6/README makedev-1.6.1/README - - --- makedev-1.6/README Sat Feb 1 02:32:23 1997 +++ makedev-1.6.1/README Thu Apr 24 10:04:19 1997 @@ -6,6 +6,11 @@ /etc/devinfo. The config file is intended to be fairly human-readable, as well as machine-readable. +New in release 1.6.1: + +Correct permissions on /dev/random and /dev/urandom. This has security +implications. + New in release 1.6: The configuration files have been updated to reflect kernel 2.x, and diff -r -u -N makedev-1.6/devinfo makedev-1.6.1/devinfo - - --- makedev-1.6/devinfo Sat Feb 1 02:22:15 1997 +++ makedev-1.6.1/devinfo Thu Apr 24 09:59:11 1997 @@ -104,8 +104,8 @@ zero (public) : 5 core -> "/proc/kcore" full (public) : 7 - - - random (public) : 8 - - - urandom (public) : 9 + random (publicro) : 8 + urandom (publicro) : 9 } block (std, 1) { initrd (disk) : 250 diff -r -u -N makedev-1.6/makedev.cfg makedev-1.6.1/makedev.cfg - - --- makedev-1.6/makedev.cfg Sat Feb 1 02:23:58 1997 +++ makedev-1.6.1/makedev.cfg Thu Apr 24 09:58:53 1997 @@ -4,6 +4,7 @@ class default: root system 0640 class public: root system 0666 +class publicro: root system 0644 class system: root system 0660 class kmem: root kmem 0640 class tty: root tty 0620 - -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBM198qTx1dyEHyT51AQHh3QP/ezmJbmkPI7FkhPY85hFWGkJwV9L9cb+9 ajoH+uxN21rlvkD509T4Rk+bS0QesUNjyUdIB6qtj2LQCsvQF1ZxlCu7uU3iFNHN d1CAU4zb4jLEsJSD54yDNS3bcPPEt9xU4t/GWgNdk4WbbhokZBm6kllfpzRWENPK yavCvcwXeJI= =Qen2 - -----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 iQCVAwUBM2COX4QRll5MupLRAQFgugQArOufU7GAUxv0b2U2ovZ9XjK+uqq8Dz0I QYql+kpoS7lf8ZYbhPKgALX6b8qKSbLcJKIgkIu4YKSP0P1lX0P2QKMFNUvbQLZF O7Z+Kv3NhfWtN7nx/aBMPGl7Mm1oShpjdL/hVZoBSxdfx7wotjBsBnCWQtc4AS3J 5L+lL79iOCI= =+vzA -----END PGP SIGNATURE-----