From owner-freebsd-current@FreeBSD.ORG Thu Aug 18 16:20:40 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 167B616A41F for ; Thu, 18 Aug 2005 16:20:40 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62AB343D49 for ; Thu, 18 Aug 2005 16:20:39 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 7DE1D52C70; Thu, 18 Aug 2005 18:20:37 +0200 (CEST) Received: from localhost (dlm156.neoplus.adsl.tpnet.pl [83.24.42.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id BDA9452C3F; Thu, 18 Aug 2005 18:20:29 +0200 (CEST) Date: Thu, 18 Aug 2005 18:20:16 +0200 From: Pawel Jakub Dawidek To: Maxim.Sobolev@portaone.com Message-ID: <20050818162016.GC18375@garage.freebsd.pl> References: <6.2.3.4.0.20050812130608.07aaf5f8@64.7.153.2> <20050812181802.GA27996@garage.freebsd.pl> <20050812182032.GB27996@garage.freebsd.pl> <6.2.3.4.0.20050816145557.03314eb8@64.7.153.2> <20050817143804.GH11066@garage.freebsd.pl> <6.2.3.4.0.20050817225907.06f81c50@64.7.153.2> <20050818071648.GA16021@garage.freebsd.pl> <6.2.3.4.0.20050818043546.05558420@64.7.153.2> <20050818115734.GB16933@garage.freebsd.pl> <4304873F.1060008@portaone.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sHrvAb52M6C8blB9" Content-Disposition: inline In-Reply-To: <4304873F.1060008@portaone.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: sam@errno.com, FreeBSD-current , Mike Tancsa Subject: Re: VIA/ACE PadLock integration with crypto(9). X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2005 16:20:40 -0000 --sHrvAb52M6C8blB9 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 18, 2005 at 04:03:59PM +0300, Maxim Sobolev wrote: +> > +> >Here is the patch: +> > +> > http://people.freebsd.org/~pjd/patches/cryptodev.c.patch +> > +> >And this bug actually is a local DoS on machines which have HW cry= pto +> > +> >and crytodev.ko loaded. +> > +>=20 +> > +>=20 +> > +> Thanks! It fixes my RELENG_6 machine. I guess this goes all the w= ay back to RELENG_4 as well then no ? +> >=20 +> > Most likely... +>=20 +> It probably worth a security advisory. It's only a local DoS on systems with crypto HW and /dev/crypto. Note that /dev/crypto is not needed for fast_ipsec(4) with HW acceleration, nor for geli(8). Workaround is also very simple: # chmod 600 /dev/crypto or: # kldunload cryptodev and you can still do crypto work in software. Administrators should not forget about jails as well, where /dev/crypto is visible by default. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --sHrvAb52M6C8blB9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDBLVAForvXbEpPzQRAqnWAJ90ZF/YsZgmhu8MOSVivCstXIlzKgCg5Jcf MSY2M8CxdUMMmguYHDrJkGE= =J4XZ -----END PGP SIGNATURE----- --sHrvAb52M6C8blB9--