1. 13 7月, 2011 1 次提交
  2. 22 5月, 2011 1 次提交
  3. 14 5月, 2011 1 次提交
  4. 21 4月, 2011 2 次提交
    • V
      agp: fix arbitrary kernel memory writes · 194b3da8
      Vasiliy Kulikov 提交于
      pg_start is copied from userspace on AGPIOC_BIND and AGPIOC_UNBIND ioctl
      cmds of agp_ioctl() and passed to agpioc_bind_wrap().  As said in the
      comment, (pg_start + mem->page_count) may wrap in case of AGPIOC_BIND,
      and it is not checked at all in case of AGPIOC_UNBIND.  As a result, user
      with sufficient privileges (usually "video" group) may generate either
      local DoS or privilege escalation.
      Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      194b3da8
    • V
      agp: fix OOM and buffer overflow · b522f021
      Vasiliy Kulikov 提交于
      page_count is copied from userspace.  agp_allocate_memory() tries to
      check whether this number is too big, but doesn't take into account the
      wrap case.  Also agp_create_user_memory() doesn't check whether
      alloc_size is calculated from num_agp_pages variable without overflow.
      This may lead to allocation of too small buffer with following buffer
      overflow.
      
      Another problem in agp code is not addressed in the patch - kernel memory
      exhaustion (AGPIOC_RESERVE and AGPIOC_ALLOCATE ioctls).  It is not checked
      whether requested pid is a pid of the caller (no check in agpioc_reserve_wrap()).
      Each allocation is limited to 16KB, though, there is no per-process limit.
      This might lead to OOM situation, which is not even solved in case of the
      caller death by OOM killer - the memory is allocated for another (faked) process.
      Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      b522f021
  5. 31 3月, 2011 1 次提交
  6. 23 2月, 2011 1 次提交
  7. 22 2月, 2011 1 次提交
  8. 16 2月, 2011 1 次提交
  9. 04 2月, 2011 3 次提交
  10. 25 1月, 2011 1 次提交
  11. 15 1月, 2011 1 次提交
  12. 12 1月, 2011 3 次提交
  13. 14 12月, 2010 1 次提交
  14. 05 12月, 2010 1 次提交
  15. 24 11月, 2010 12 次提交
  16. 23 11月, 2010 2 次提交
  17. 18 11月, 2010 3 次提交
  18. 04 11月, 2010 2 次提交
  19. 02 11月, 2010 2 次提交