Skip to contentSkip to conversation

Linux 2.6.20.13

DISCUSSION Chris Wright 2 participants 3 messages Jun 8, 2007 – Jun 9, 2007

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

We (the -stable team) are announcing the release of the 2.6.20.13 kernel. This release has three security fixes in it:

54bb290b: random: fix error in entropy extraction (CVE-2007-2453 1 of 2)
f5939fcd: random: fix seeding with zero entropy (CVE-2007-2453 2 of 2)
6a535788: cpuset: prevent information leak in cpuset_tasks_read (CVE-2007-2875)
13ad357c: NETFILTER: {ip, nf}_conntrack_sctp: fix remotely triggerable NULL ptr dereference (CVE-2007-2876)

The /dev/[u]random fix is especially important for machines with no entropy source (e.g. keyboard, mice, or disk drives) and no realtime clock since successive boots could generate same output from RNG. The cpuset bug is a possible information leak when reading from /dev/cpuset/tasks (assuming cpusets support is compiled in and the cpuset fs mounted on /dev/cpuset). The SCTP bug is remotely triggerable when using SCTP conntrack.

I'll also be replying to this message with a copy of the patch between 2.6.20.12 and 2.6.20.13

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

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.20.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.20.y.git;a=summary

thanks,
-chris

---------

 Makefile                                     |    2 
 drivers/char/random.c                        |   67 +++++++++++++++------------
 kernel/cpuset.c                              |    7 --
 net/ipv4/netfilter/ip_conntrack_proto_sctp.c |    3 -
 net/netfilter/nf_conntrack_proto_sctp.c      |    3 -
 5 files changed, 44 insertions(+), 38 deletions(-)

Summary of changes from v2.6.20.12 to v2.6.20.13
================================================

Chris Wright (2):
cpuset: prevent information leak in cpuset_tasks_read (CVE-2007-2875) Linux 2.6.20.13

Matt Mackall (2):
random: fix error in entropy extraction (CVE-2007-2453 1 of 2)
random: fix seeding with zero entropy (CVE-2007-2453 2 of 2)

Patrick McHardy (1):
NETFILTER: {ip, nf}_conntrack_sctp: fix remotely triggerable NULL ptr dereference (CVE-2007-2876)

#1 lore raw
Makefile +1 -1
index 87f5956..a87a7d1 100644
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 20
-EXTRAVERSION = .12
+EXTRAVERSION = .13
 NAME = Homicidal Dwarf Hamster
 
 # *DOCUMENTATION*
drivers/char/random.c +38 -29

106 lines not on this page · raw message

kernel/cpuset.c +1 -6
index 6b05dc6..5074f7d 100644
@@ -1751,12 +1751,7 @@ static ssize_t cpuset_tasks_read(struct file *file, char __user *buf,
 {
 	struct ctr_struct *ctr = file->private_data;
 
-	if (*ppos + nbytes > ctr->bufsz)
-		nbytes = ctr->bufsz - *ppos;
-	if (copy_to_user(buf, ctr->buf + *ppos, nbytes))
-		return -EFAULT;
-	*ppos += nbytes;
-	return nbytes;
+	return simple_read_from_buffer(buf, nbytes, ppos, ctr->buf, ctr->bufsz);
 }
 
 static int cpuset_tasks_release(struct inode *unused_inode, struct file *file)
net/ipv4/netfilter/ip_conntrack_proto_sctp.c +2 -1
index 2443322..ff48378 100644
@@ -461,7 +461,8 @@ static int sctp_new(struct ip_conntrack *conntrack,
 						SCTP_CONNTRACK_NONE, sch->type);
 
 		/* Invalid: delete conntrack */
-		if (newconntrack == SCTP_CONNTRACK_MAX) {
+		if (newconntrack == SCTP_CONNTRACK_NONE ||
+		    newconntrack == SCTP_CONNTRACK_MAX) {
 			DEBUGP("ip_conntrack_sctp: invalid new deleting.\n");
 			return 0;
 		}
net/netfilter/nf_conntrack_proto_sctp.c +2 -1
index 76e2636..fcc9152 100644
@@ -470,7 +470,8 @@ static int sctp_new(struct nf_conn *conntrack, const struct sk_buff *skb,
 					 SCTP_CONNTRACK_NONE, sch->type);
 
 		/* Invalid: delete conntrack */
-		if (newconntrack == SCTP_CONNTRACK_MAX) {
+		if (newconntrack == SCTP_CONNTRACK_NONE ||
+		    newconntrack == SCTP_CONNTRACK_MAX) {
 			DEBUGP("nf_conntrack_sctp: invalid new deleting.\n");
 			return 0;
 		}
#2 lore raw
In reply to Chris Wright
Quoted 9 lines · Chris Wright

We (the -stable team) are announcing the release of the 2.6.20.13 kernel. This release has three security fixes in it:

54bb290b: random: fix error in entropy extraction (CVE-2007-2453 1 of 2)
f5939fcd: random: fix seeding with zero entropy (CVE-2007-2453 2 of 2)

The /dev/[u]random fix is especially important for machines with no entropy source (e.g. keyboard, mice, or disk drives) and no realtime clock since successive boots could generate same output from RNG.

For the record, /dev/random was not impacted. It will fail safe (eg block forever) on machines with no entropy sources.

Signature · 1 line
Mathematics is the supreme nostalgia of our time.