[CVE-2009-0676] fix Linux kernel memory disclosure in sock_getsockopt (closes: #4914)
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.25 / 993-cve-2009-0676.patch
1 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0676
2
3 --- a/net/core/sock.c
4 +++ b/net/core/sock.c
5 @@ -705,6 +705,8 @@ int sock_getsockopt(struct socket *sock,
6 if (len < 0)
7 return -EINVAL;
8
9 + v.val = 0;
10 +
11 switch(optname) {
12 case SO_DEBUG:
13 v.val = sock_flag(sk, SOCK_DBG);