<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>28996</bug_id>
          
          <creation_ts>2013-05-20 19:39:41 +0400</creation_ts>
          <short_desc>Уязвимость повышения привилегий CVE-2013-2094 kernel: perf_swevent_enabled array out-of-bound access</short_desc>
          <delta_ts>2013-05-20 21:42:44 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>kernel-image-ovz-el</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc>https://bugzilla.redhat.com/show_bug.cgi?id=962792</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>security</keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Danil Mikhaylov">danil</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>kernelbot</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>mithraen</cc>
    
    <cc>rider</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>shrek</cc>
    
    <cc>sin</cc>
    
    <cc>vitty</cc>
    
    <cc>vsu</cc>
    
    <cc>vt</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>140427</commentid>
    <comment_count>0</comment_count>
    <who name="Danil Mikhaylov">danil</who>
    <bug_when>2013-05-20 19:39:41 +0400</bug_when>
    <thetext>Уязвимость повышения привилегий http://packetstormsecurity.com/files/121616/semtex.c

Эксплоит работает на x86_64 / amd64 с ядрами 2.6.37-3.8.10 и конфигами
# zgrep PERF_EVENTS /proc/config.gz 
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_EVENTS=y
CONFIG_HAVE_PERF_EVENTS_NMI=y

Как воспроизвести:
1)Скопировать текст из http://packetstormsecurity.com/files/121616/semtex.c 
2)Скомпилировать gcc -O2 semtex.c &amp;&amp; ./a.out
3)Проверить # id

# uname -a
ALTLinux/p6 2.6.32-ovz-el-alt86 x86_64 GNU/Linux


2.6.37-3.x x86_64
sd@fucksheep.org 2010
-sh-3.2# id
uid=0(root) gid=0(root) группы=0(root),10(wheel)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>140429</commentid>
    <comment_count>1</comment_count>
    <who name="">led</who>
    <bug_when>2013-05-20 20:48:49 +0400</bug_when>
    <thetext>Исправлено неделю назад</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>140430</commentid>
    <comment_count>2</comment_count>
    <who name="Danil Mikhaylov">danil</who>
    <bug_when>2013-05-20 21:38:02 +0400</bug_when>
    <thetext>Уязвимость устранена.
2.6.32-ovz-el-alt89 #1 SMP Wed May 15 17:28:30 UTC 2013 x86_64 GNU/Linux

* Втр Май 14 2013 Led &lt;led@altlinux.ru&gt; 2.6.32-alt88
- perf: Treat attr.config as u64 in perf_swevent_init() (CVE-2013-2094)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>