Bug 86783 - Kernel: Potential DOS in load_elf_library (CAN-2005-0749)
Bug#: 86783 Product:  Gentoo Security Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: security@gentoo.org Reported By: koon@gentoo.org
Component: Kernel
URL: 
Summary: Kernel: Potential DOS in load_elf_library (CAN-2005-0749)
Keywords:  
Status Whiteboard: [linux < 2.4.30] [linux >= 2.6 < 2.6.11.6]
Opened: 2005-03-26 09:22 0000
Description:   Opened: 2005-03-26 09:22 0000
Fixed in vanilla 2.6.11.6
http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.11.6

Potential DOS in load_elf_library
	
Yichen Xie <yxie@cs.stanford.edu> points out that load_elf_library can
modify `elf_phdata' before freeing it.
	
CAN-2005-0749 is assigned to this issue.

------- Comment #1 From Joshua Kinard 2005-04-23 22:28:16 0000 -------
mips-sources fixed.

------- Comment #2 From Daniel Drake 2005-04-27 13:43:41 0000 -------
Fixed in gentoo-sources-2.6.11-r6

------- Comment #3 From Daniel Drake 2005-04-29 17:39:21 0000 -------
Fixed in usermode-sources-2.6.11

------- Comment #4 From Lorenzo Hernández García-Hierro 2005-05-04 13:29:06 0000 -------
Created an attachment (id=58065) [details]
Clean (fix) patch.

I'll add it to the gentoo-sources patchset and post a new ebuild and patchball
to:
http://pearls.tuxedo-es.org/gentoo/hardened/kernel/

------- Comment #5 From Lorenzo Hernández García-Hierro 2005-05-05 06:03:48 0000 -------
Updated hardened-sources patchset to fix CAN-2005-0749:

http://pearls.tuxedo-es.org/gentoo/hardened/kernel/

Cheers,
Lorenzo.

------- Comment #6 From Daniel Drake 2005-05-10 15:32:56 0000 -------
Fixed in ck-sources-2.6.11-r7

------- Comment #7 From Thierry Carrez (RETIRED) 2005-05-23 04:58:32 0000 -------
This also affects the 2.4 series.

From solar :
grsec-sources-2.4.30 is in the tree as ~arch.

Note for other bumpers of 2.4.x series.
CAN-2004-1056.patch and linux-2.4.28-random-poolsize.patch have never 
been applied to mainline.

------- Comment #8 From Tim Yamin (RETIRED) 2005-08-20 11:45:57 0000 -------
All fixed, closing bug.