Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1646084

Re: [PATCH] firmware: google: memconsole: Prevent overrun attack on coreboot console

From Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] firmware: google: memconsole: Prevent overrun attack on coreboot console
Date 2017-05-20 10:40 +0200
Message-ID <tJ85z-7aH-9@gated-at.bofh.it> (permalink)
References <tIXWy-8aF-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, May 19, 2017 at 02:44:38PM -0700, Julius Werner wrote:
> The recent coreboot memory console update (firmware: google: memconsole:
> Adapt to new coreboot ring buffer format) introduced a small security
> issue in the driver: The new driver implementation parses the memory
> console structure again on every access. This is intentional so that
> additional lines added concurrently by runtime firmware can be read out.
> 
> However, if an attacker can write to the structure, they could increase
> the size value to a point where the driver would read potentially
> sensitive memory areas from outside the original console buffer during
> the next access. This can be done through /dev/mem, since the console
> buffer usually resides in firmware-reserved memory that is not covered
> by STRICT_DEVMEM.
> 
> This patch resolves that problem by reading the buffer's size value only
> once during boot (where we can still trust the structure). Other parts
> of the structure can still be modified at runtime, but the driver's
> bounds checks make sure that it will never read outside the buffer.
> 
> Signed-off-by: Julius Werner <jwerner@chromium.org>

Care to provide a "Fixes: SHA" type line here saying what commit this
fixes the issue for, to allow people to know what is going on.

thanks,

greg k-h

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] firmware: google: memconsole: Prevent overrun attack on coreboot console Julius Werner <jwerner@chromium.org> - 2017-05-19 23:50 +0200
  Re: [PATCH] firmware: google: memconsole: Prevent overrun attack on  coreboot console Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-20 10:40 +0200
    Re: [PATCH] firmware: google: memconsole: Prevent overrun attack on  coreboot console Julius Werner <jwerner@chromium.org> - 2017-05-23 03:40 +0200
      Re: [PATCH] firmware: google: memconsole: Prevent overrun attack on  coreboot console Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-23 08:40 +0200
        Re: [PATCH] firmware: google: memconsole: Prevent overrun attack on  coreboot console Julius Werner <jwerner@chromium.org> - 2017-05-24 01:50 +0200

csiph-web