[lkml]   [2011]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Make /proc/slabinfo 0400
    On Thu, 2011-03-03 at 12:50 -0500, Dan Rosenberg wrote:
    > Allowing unprivileged users to read /proc/slabinfo represents a security
    > risk, since revealing details of slab allocations can expose information
    > that is useful when exploiting kernel heap corruption issues. This is
    > evidenced by observing that nearly all recent public exploits for heap
    > issues rely on feedback from /proc/slabinfo to manipulate heap layout
    > into an exploitable state.

    Looking at a couple of these exploits, my suspicion is that looking at
    slabinfo simply improves the odds of success by a small factor (ie 10x
    or so) and doesn't present a real obstacle to attackers. All that
    appears to be required is to arrange that an overrunnable object be
    allocated next to one that is exploitable when overrun. And that can be
    arranged with fairly high probability on SLUB's merged caches.

    On the other hand, I'm not convinced the contents of this file are of
    much use to people without admin access.

    Mathematics is the supreme nostalgia of our time.

     \ /
      Last update: 2011-03-03 22:01    [W:0.020 / U:4.924 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site