lkml.org 
[lkml]   [2009]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 69/71] econet: Fix econet_getname() leak
    2.6.30-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: Eric Dumazet <eric.dumazet@gmail.com>

    commit 80922bbb12a105f858a8f0abb879cb4302d0ecaa upstream.

    econet_getname() can leak kernel memory to user.

    Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    net/econet/af_econet.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/net/econet/af_econet.c
    +++ b/net/econet/af_econet.c
    @@ -520,6 +520,7 @@ static int econet_getname(struct socket
    if (peer)
    return -EOPNOTSUPP;

    + memset(sec, 0, sizeof(*sec));
    mutex_lock(&econet_mutex);

    sk = sock->sk;



    \
     
     \ /
      Last update: 2009-09-05 02:27    [W:0.037 / U:1.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site