<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8992811497323121233.post5243038755573783381..comments</id><updated>2010-11-18T01:07:27.544-08:00</updated><category term='ASLR'/><category term='sandbox'/><category term='Virtualisation'/><category term='the sky is falling'/><category term='VMware'/><category term='Linux'/><category term='vulnerability'/><category term='Presentation'/><category term='seccomp'/><category term='TSC'/><category term='Windows'/><category term='Security'/><category term='NetBSD'/><category term='Java'/><category term='Apple'/><category term='side-channel'/><title type='text'>Comments on cr0 blog: CVE-2010-0232: Microsoft Windows NT #GP Trap Handl...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.cr0.org/feeds/5243038755573783381/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default'/><link rel='alternate' type='text/html' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html'/><author><name>Julien Tinnes</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8992811497323121233.post-7738186613082944074</id><published>2010-01-28T15:14:41.805-08:00</published><updated>2010-01-28T15:14:41.805-08:00</updated><title type='text'>to Anonymous:
&amp;gt;Code is never executed with the ...</title><content type='html'>to Anonymous:&lt;br /&gt;&amp;gt;Code is never executed with the vdm context&lt;br /&gt;&amp;gt;specified, and that never happens with the exploit.&lt;br /&gt;Yes, that would be correct. Our misunderstanding applies not to the exploit codepath, but to the nature of the checks performed in the VdmSwapContexts().&lt;br /&gt;&lt;br /&gt;to Pablo Sole:&lt;br /&gt;&amp;gt;test ebx, eax&lt;br /&gt;&amp;gt;jnz short loc_6F7936 ;ebx=EFLAGS.VM&lt;br /&gt;&amp;gt;or [esi+KTRAP_FRAME.SegCs], 3&lt;br /&gt;Yup, for some bizzare reason we&amp;#39;ve missed exactly that point. Thank you for the clarification – now we can appreciate all the awesomeness of this exploitation.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/7738186613082944074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/7738186613082944074'/><link rel='alternate' type='text/html' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html?showComment=1264720481805#c7738186613082944074' title=''/><author><name>MTU</name><uri>http://www.wasm.ru</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html' ref='tag:blogger.com,1999:blog-8992811497323121233.post-5243038755573783381' source='http://www.blogger.com/feeds/8992811497323121233/posts/default/5243038755573783381' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1714462405'/></entry><entry><id>tag:blogger.com,1999:blog-8992811497323121233.post-444035739056722539</id><published>2010-01-28T09:00:16.652-08:00</published><updated>2010-01-28T09:00:16.652-08:00</updated><title type='text'>I think you misunderstand the bug, of course setti...</title><content type='html'>I think you misunderstand the bug, of course setting up a context is impossible (if that was the case, you could just pass one to NtCreateThread() and get ring0). Code is never executed with the vdm context specified, and that never happens with the exploit.&lt;br /&gt;&lt;br /&gt;The bug is that the contents of the trap frame is trusted to be accurate. I would suggest you try it before claiming it&amp;#39;s wrong :-(</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/444035739056722539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/444035739056722539'/><link rel='alternate' type='text/html' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html?showComment=1264698016652#c444035739056722539' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html' ref='tag:blogger.com,1999:blog-8992811497323121233.post-5243038755573783381' source='http://www.blogger.com/feeds/8992811497323121233/posts/default/5243038755573783381' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-83555580'/></entry><entry><id>tag:blogger.com,1999:blog-8992811497323121233.post-1329283811229519410</id><published>2010-01-28T05:20:33.630-08:00</published><updated>2010-01-28T05:20:33.630-08:00</updated><title type='text'>to MTU:

If you check VdmSwapContexts, which is th...</title><content type='html'>to MTU:&lt;br /&gt;&lt;br /&gt;If you check VdmSwapContexts, which is the function that switchs to monitor context, it has a checking that SS and CS need to be ring 3, unless it&amp;#39;s V86:&lt;br /&gt;PAGE:006F7919                 mov     eax, [edi+CONTEXT.EFlags]&lt;br /&gt;PAGE:006F791F                 test    ebx, eax&lt;br /&gt;PAGE:006F7921                 jnz     short loc_6F7936         ;ebx=EFLAGS.VM&lt;br /&gt;PAGE:006F7923                 or      [esi+KTRAP_FRAME.SegCs], 3&lt;br /&gt;PAGE:006F7927                 mov     ecx, [esi+6Ch]&lt;br /&gt;PAGE:006F792A                 or      [esi+KTRAP_FRAME.HardwareSegSs], 3&lt;br /&gt;PAGE:006F792E                 cmp     ecx, 8&lt;br /&gt;PAGE:006F7931                 jnb     short loc_6F7936&lt;br /&gt;PAGE:006F7933                 mov     [esi+KTRAP_FRAME.SegCs], edx ; Force 0x1B</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/1329283811229519410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/1329283811229519410'/><link rel='alternate' type='text/html' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html?showComment=1264684833630#c1329283811229519410' title=''/><author><name>Pablo Sole</name><uri>http://immunityinc.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html' ref='tag:blogger.com,1999:blog-8992811497323121233.post-5243038755573783381' source='http://www.blogger.com/feeds/8992811497323121233/posts/default/5243038755573783381' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-338185977'/></entry><entry><id>tag:blogger.com,1999:blog-8992811497323121233.post-4433250325291640308</id><published>2010-01-28T00:57:27.738-08:00</published><updated>2010-01-28T00:57:27.738-08:00</updated><title type='text'>Tavis, thank you for the intresting writeup. We we...</title><content type='html'>Tavis, thank you for the intresting writeup. We were happy to know about this VDM bug. Now, we have some thoughts. Codepath was audited and it seems there&amp;#39;s no real &amp;#39;trap frame forging&amp;#39; there, since involved part of KiTrap0D handler expects actual situation with hardware frame at the time of iret-fault (which happens since rpl &amp;gt; cpl): error code, eip-cs, eflags – and no esp-ss. Moreover, it seems the exploitation can be greatly simplified – we see no reason not to just specify context with user-mode eip and KGDT_R0_CODE cs in the fake VDM context. Given the fact eflags in the fake VDM context is also controllable, it appears the part with &amp;#39;Ki386BiosCallReturnAddress&amp;#39; is not really required for the exploitation and can be skipped altogether – i.e. just set up fake VDM context with cs=8, eip=MyFunction, esi=param1, edi=param2, etc.&lt;br /&gt;&lt;br /&gt;Now, we didn&amp;#39;t actually try to paste a few lines of code together to implement this because of lazyness, so if there&amp;#39;s something missing in our resoning – please correct us.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/4433250325291640308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8992811497323121233/5243038755573783381/comments/default/4433250325291640308'/><link rel='alternate' type='text/html' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html?showComment=1264669047738#c4433250325291640308' title=''/><author><name>MTU</name><uri>http://www.wasm.ru</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.cr0.org/2010/01/cve-2010-0232-microsoft-windows-nt-gp.html' ref='tag:blogger.com,1999:blog-8992811497323121233.post-5243038755573783381' source='http://www.blogger.com/feeds/8992811497323121233/posts/default/5243038755573783381' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1123632738'/></entry></feed>
