Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MfxLu-0007Ha-Sw for mharc-grub-devel@gnu.org; Tue, 25 Aug 2009 10:50:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfxLs-0007Gk-EV for grub-devel@gnu.org; Tue, 25 Aug 2009 10:50:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfxLn-0007Bv-IW for grub-devel@gnu.org; Tue, 25 Aug 2009 10:50:24 -0400 Received: from [199.232.76.173] (port=40101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfxLn-0007Bn-Dp for grub-devel@gnu.org; Tue, 25 Aug 2009 10:50:19 -0400 Received: from mx20.gnu.org ([199.232.41.8]:20847) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfxLm-00028r-Ux for grub-devel@gnu.org; Tue, 25 Aug 2009 10:50:19 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfxLl-0002Da-Ti for grub-devel@gnu.org; Tue, 25 Aug 2009 10:50:18 -0400 Received: by fxm26 with SMTP id 26so2820725fxm.42 for ; Tue, 25 Aug 2009 07:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=npfJK2lU/dWqGjDmn9+t315xwzhLxFCniHlZ4P5u+O8=; b=IyTOib1Dobpy+OyZcgCZcFXpRkCovrUKtGCkwRPgsBMX2M2A1t/YqB8OyQinCsuEKu qvfv/89oW4x7YuGSbTa3Z4GLg083EQx3KGH1jv5KttrYeIcJDoY5AUhvqc7HXeKB8EZY w1JHxgqh/+lJFB1JfBOO9KBj1RrpxYtD1FHhM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=twfyaKKWYKHjv05lza3iC5XnGLpCRFx6irR12OMDfyUhVPaFyuQS2PESBD2ei5uKOx STGAnw5Pb0aAV4RrFD/YSZpC/GZ7hviwS/azlhrvEEHbQp9h4vMMCMPnTHBsx3eXZD91 VSYfV7dcNNsR1H8KIaE3iHcdzkvXZYJ4tLeoI= MIME-Version: 1.0 Received: by 10.204.29.22 with SMTP id o22mr2563547bkc.78.1251211815877; Tue, 25 Aug 2009 07:50:15 -0700 (PDT) In-Reply-To: <1251210936.2668.19.camel@fz.local> References: <20090605173640.GW7367@riva.ucam.org> <1248619241.25072.19.camel@fz.local> <20090820164444.GB2856@thorin> <20090823101446.GA4130@thorin> <20090824223611.GB25093@thorin> <1251210936.2668.19.camel@fz.local> Date: Tue, 25 Aug 2009 16:50:15 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Re[2]: 'password' command in GRUB 2? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 14:50:24 -0000 > Does it has the same problem as CVE-2008-3896 published for grub-legacy? It's completely different concern. Actually BIOS keyboard buffer shouldn't be a problem since only root can read raw memory and if user is a root he can just kexec any kernel he wants. I could add keyboard buffer wiping to my sendkey work but it only offsets the problem since same info is stored in RAM by grb anyway. The only solution I see for second problem is to make grub_free shred the memory and ensuring all sensitive fields are dynamically allocated and free'ed before boot (last part makes code cleaner too). Actually I have done some experiments with replacing grub_sprintf with grub_asprintf which revealed many spot of suboptimal code too. After all I think this is worth to do (wiping keyboard buffer and making grub_free wipe the memory). But it doesn't destroy the info which was in memory before grub booted. Doing so may take significant booting time (to be tested) but may be desirable in some cases. > > http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-3896 > > -- > Felix Zielcke > Proud Debian Maintainer > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git