login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
10
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmsplice local root exploit
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Niki Denev
Subject:
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmsplice local root exploit
Date: Sunday, February 10, 2008 - 5:39 am
On Feb 10, 2008 12:22 PM, Bastian Blank <bastian@waldi.eu.org> wrote:
quoted text
> On Sun, Feb 10, 2008 at 04:40:53AM -0500, Niki Denev wrote: > > this fixed the problem for me (kernel 2.6.24.1) : > > It appears that the initial patch checked the input to vmsplice_to_user, > > but the exploit used vmsplice_to_pipe which remained open to the attack. > > This patch is broken. It opens the old hole again. > > > @@ -1450,6 +1454,31 @@ > > .ops = &user_page_pipe_buf_ops, > > }; > > > > + error = ret = 0; > > + > > + /* > > + * Get user address base and length for this iovec. > > + */ > > + error = get_user(base, &iov->iov_base); > > + if (unlikely(error)) > > + return error; > > + error = get_user(len, &iov->iov_len); > > + if (unlikely(error)) > > + return error; > > iov is unchecked. > > > + if (unlikely(!access_ok(VERIFY_WRITE, base, len))) { > > + return -EFAULT; > > + } > > Use VERIFY_READ and this only checks the first entry. > > I checked the following patch and it at least fixes the known exploit. > > diff --git a/fs/splice.c b/fs/splice.c > index 14e2262..80beb2b 100644 > --- a/fs/splice.c > +++ b/fs/splice.c > @@ -1237,6 +1237,11 @@ static int get_iovec_page_array(const struct iovec __user *iov, > if (unlikely(!base)) > break; > > + if (!access_ok(VERIFY_READ, base, len)) { > + error = -EFAULT; > + break; > + } > + > /* > * Get this base offset and number of pages, then map > * in the user pages. > -- > Even historians fail to learn from history -- they repeat the same mistakes. > -- John Gill, "Patterns of Force", stardate 2534.7 >
This patch is against 2.6.24.1 which has already the fix to vmsplice_to_user With it i can't exploit the hole, and it is returns "invalid address" --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
kernel 2.6.24.1 still vulnerable to the vmsplice local roo ...
, Niki Denev
, (Sat Feb 9, 11:04 pm)
Re: kernel 2.6.24.1 still vulnerable to the vmsplice local ...
, Willy Tarreau
, (Sat Feb 9, 11:32 pm)
Re: kernel 2.6.24.1 still vulnerable to the vmsplice local ...
, Niki Denev
, (Sat Feb 9, 11:38 pm)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Niki Denev
, (Sun Feb 10, 2:40 am)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Oliver Pinter
, (Sun Feb 10, 5:04 am)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Bastian Blank
, (Sun Feb 10, 5:22 am)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Niki Denev
, (Sun Feb 10, 5:39 am)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Bastian Blank
, (Sun Feb 10, 5:47 am)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Niki Denev
, (Sun Feb 10, 5:54 am)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Oliver Pinter
, (Sun Feb 10, 6:02 am)
Re: [PATCH] kernel 2.6.24.1 still vulnerable to the vmspli ...
, Niki Denev
, (Sun Feb 10, 6:48 am)
Re: [stable] [PATCH] kernel 2.6.24.1 still vulnerable to t ...
, Greg KH
, (Sun Feb 10, 10:05 am)
Re: [stable] [PATCH] kernel 2.6.24.1 still vulnerable to t ...
, Pekka Enberg
, (Sun Feb 10, 10:11 am)
Re: [stable] [PATCH] kernel 2.6.24.1 still vulnerable to t ...
, Oliver Pinter
, (Sun Feb 10, 10:44 am)
Re: [stable] [PATCH] kernel 2.6.24.1 still vulnerable to t ...
, Oliver Pinter
, (Sun Feb 10, 10:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [patch] e1000=y && e1000e=m regression fix
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Eli Cohen
Re: LRO num of frags limit
Boaz Harrosh
how to use KBUILD_EXTRA_SYMBOLS
Pekka Enberg
Re: [PATCH] include/linux/slab.h: new KFREE() macro.
git
:
Bill Lear
cpio command not found
Jing Xue
Re: git rm --cached
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Michael S. Tsirkin
git-kill: rewrite history removing a commit
Johannes Sixt
Re: How to pull remote branch with specified commit id?
linux-netdev
:
Johann Baudy
Packet mmap: TX RING and zero copy
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Stephen Hemminger
Re: NAPI, rx_no_buffer_count, e1000, r8169 and other actors
Paulius Zaleckas
Re: [RFC] Patch to option HSO driver to the kernel
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
openbsd-misc
:
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Bryan Irvine
Re: DVD burn error: No space left on device
Siju George
This is what Linus Torvalds calls openBSD crowd
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Skylar Hawk
Re: asus eee 1201n - acpitz0 critical temperature 255C (5282K), shutting down
git-commits-head
:
Linux Kernel Mailing List
x86 boot: only pick up additional EFI memmap if add_efi_memmap flag
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ARM: dma-mapping: remove dmac_clean_range and dmac_inv_range
Linux Kernel Mailing List
via82cxxx: add support for VT6415 PCIE PATA IDE Host Controller
Linux Kernel Mailing List
[ARM] mmp: avengers lite (pxa168) board bring up
Colocation donated by:
Syndicate