Revision 1fb844961818ce94e782acf6a96b92dc2303553b authored by Alexey Dobriyan on 26 January 2007, 08:57:16 UTC, committed by Linus Torvalds on 26 January 2007, 21:51:00 UTC
Proposed patch to fix #5 in
http://www.isec.pl/vulnerabilities/isec-0017-binfmt_elf.txt
aka
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1073

To reproduce, do
* grab poc at the end of advisory.
* add line "eph.p_memsz = 4096;" after "eph.p_filesz = 4096;"
  where first "4096" is something equal to or greater than 4096.
* ./poc /usr/bin/sudo && ls -l

Here I get with 2.6.20-rc5:

 -rw------- 1 ad   ad   102400 2007-01-15 19:17 core
 ---s--x--x 2 root root 101820 2007-01-15 19:15 /usr/bin/sudo

Check for MAY_READ like binfmt_misc.c does.

Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c20086d
History
File Mode Size
Kconfig -rw-r--r-- 4.3 KB
Makefile -rw-r--r-- 392 bytes
TODO -rw-r--r-- 944 bytes
af_ax25.c -rw-r--r-- 44.4 KB
ax25_addr.c -rw-r--r-- 6.1 KB
ax25_dev.c -rw-r--r-- 4.8 KB
ax25_ds_in.c -rw-r--r-- 7.1 KB
ax25_ds_subr.c -rw-r--r-- 5.1 KB
ax25_ds_timer.c -rw-r--r-- 5.9 KB
ax25_iface.c -rw-r--r-- 5.1 KB
ax25_in.c -rw-r--r-- 10.6 KB
ax25_ip.c -rw-r--r-- 5.2 KB
ax25_out.c -rw-r--r-- 8.6 KB
ax25_route.c -rw-r--r-- 11.1 KB
ax25_std_in.c -rw-r--r-- 11.1 KB
ax25_std_subr.c -rw-r--r-- 2.3 KB
ax25_std_timer.c -rw-r--r-- 4.3 KB
ax25_subr.c -rw-r--r-- 7.0 KB
ax25_timer.c -rw-r--r-- 5.4 KB
ax25_uid.c -rw-r--r-- 4.8 KB
sysctl_net_ax25.c -rw-r--r-- 6.5 KB

back to top