diff -Nru virtualbox-4.1.2-dfsg/debian/changelog virtualbox-4.1.2-dfsg/debian/changelog --- virtualbox-4.1.2-dfsg/debian/changelog 2011-09-02 11:50:49.000000000 +0200 +++ virtualbox-4.1.2-dfsg/debian/changelog 2012-10-26 14:30:51.000000000 +0200 @@ -1,3 +1,12 @@ +virtualbox (4.1.2-dfsg-1ubuntu1.1) oneiric-security; urgency=low + + * SECURITY UPDATE: Missing privilege check for task gate switches + (LP: #1044634) + - debian/patches/cve-2012-3221.patch: patch from upstream + - CVE-2012-3221 + + -- Felix Geyer Fri, 26 Oct 2012 14:15:42 +0200 + virtualbox (4.1.2-dfsg-1ubuntu1) oneiric; urgency=low * Merge from Debian unstable, remaining changes: diff -Nru virtualbox-4.1.2-dfsg/debian/patches/cve-2012-3221.patch virtualbox-4.1.2-dfsg/debian/patches/cve-2012-3221.patch --- virtualbox-4.1.2-dfsg/debian/patches/cve-2012-3221.patch 1970-01-01 01:00:00.000000000 +0100 +++ virtualbox-4.1.2-dfsg/debian/patches/cve-2012-3221.patch 2012-10-26 14:15:30.000000000 +0200 @@ -0,0 +1,23 @@ +Description: recompiler: Missing privilege check for task gate switches + Fixes kernel panic when invoking the double fault handler from user space + on Linux and maybe other guests +Origin: upstream, https://www.virtualbox.org/changeset/43068/vbox + +Index: virtualbox-4.1.18-dfsg/src/recompiler/target-i386/op_helper.c +=================================================================== +--- virtualbox-4.1.18-dfsg.orig/src/recompiler/target-i386/op_helper.c 2012-06-20 09:20:29.000000000 -0400 ++++ virtualbox-4.1.18-dfsg/src/recompiler/target-i386/op_helper.c 2012-10-18 16:39:20.647324489 -0400 +@@ -872,6 +872,13 @@ + type = (e2 >> DESC_TYPE_SHIFT) & 0x1f; + switch(type) { + case 5: /* task gate */ ++#ifdef VBOX ++ dpl = (e2 >> DESC_DPL_SHIFT) & 3; ++ cpl = env->hflags & HF_CPL_MASK; ++ /* check privilege if software int */ ++ if (is_int && dpl < cpl) ++ raise_exception_err(EXCP0D_GPF, intno * 8 + 2); ++#endif + /* must do that check here to return the correct error code */ + if (!(e2 & DESC_P_MASK)) + raise_exception_err(EXCP0B_NOSEG, intno * 8 + 2); diff -Nru virtualbox-4.1.2-dfsg/debian/patches/series virtualbox-4.1.2-dfsg/debian/patches/series --- virtualbox-4.1.2-dfsg/debian/patches/series 2011-08-30 12:47:31.000000000 +0200 +++ virtualbox-4.1.2-dfsg/debian/patches/series 2012-10-26 14:15:39.000000000 +0200 @@ -15,3 +15,4 @@ 33-link-static-libgsoap.patch 34-fix-vboxpci-build.patch 35-libvdeplug-soname.patch +cve-2012-3221.patch