lkml.org 
[lkml]   [2010]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[202/289] usb: misc: iowarrior: fix information leak to userland
    2.6.36-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Vasiliy Kulikov <segooon@gmail.com>

    commit eca67aaeebd6e5d22b0d991af1dd0424dc703bfb upstream.

    Structure iowarrior_info is copied to userland with padding byted
    between "serial" and "revision" fields uninitialized. It leads to
    leaking of contents of kernel stack memory.

    Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
    Acked-by: Kees Cook <kees.cook@canonical.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/usb/misc/iowarrior.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/usb/misc/iowarrior.c
    +++ b/drivers/usb/misc/iowarrior.c
    @@ -553,6 +553,7 @@ static long iowarrior_ioctl(struct file
    /* needed for power consumption */
    struct usb_config_descriptor *cfg_descriptor = &dev->udev->actconfig->desc;

    + memset(&info, 0, sizeof(info));
    /* directly from the descriptor */
    info.vendor = le16_to_cpu(dev->udev->descriptor.idVendor);
    info.product = dev->product_id;



    \
     
     \ /
      Last update: 2010-12-08 02:25    [W:4.098 / U:0.316 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site