Skip to contentSkip to conversation

Linux 2.6.18.4

DISCUSSION Chris Wright 1 participant 2 messages Nov 29, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

We (the -stable team) are announcing the release of the 2.6.18.4 kernel. This has just a single security fix (CVE-2006-5751) for the network bridge code in it. An unprivileged local user could potentially write to kernel memory without this fix.

The diffstat and short summary of the fixes are below.

I'll also be replying to this message with a copy of the patch between 2.6.18.3 and 2.6.18.4, as it is small enough to do so.

The updated 2.6.18.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.18.y.git 

and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/

thanks,
-chris

--------

 Makefile              |    2 +-
 net/bridge/br_ioctl.c |    9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

Summary of changes from v2.6.18.3 to v2.6.18.4
============================================

Chris Wright:
bridge: fix possible overflow in get_fdb_entries (CVE-2006-5751) Linux 2.6.18.4

#1 lore raw
Makefile +1 -1
index 9eda185..d026088 100644
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 18
-EXTRAVERSION = .3
+EXTRAVERSION = .4
 NAME=Avast! A bilge rat!
 
 # *DOCUMENTATION*
net/bridge/br_ioctl.c +5 -4
index 4e4119a..4c61a7e 100644
@@ -58,12 +58,13 @@ static int get_fdb_entries(struct net_br
 {
 	int num;
 	void *buf;
-	size_t size = maxnum * sizeof(struct __fdb_entry);
+	size_t size;
 
-	if (size > PAGE_SIZE) {
-		size = PAGE_SIZE;
+	/* Clamp size to PAGE_SIZE, test maxnum to avoid overflow */
+	if (maxnum > PAGE_SIZE/sizeof(struct __fdb_entry))
 		maxnum = PAGE_SIZE/sizeof(struct __fdb_entry);
-	}
+
+	size = maxnum * sizeof(struct __fdb_entry);
 
 	buf = kmalloc(size, GFP_USER);
 	if (!buf)