projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4adbb4
)
rose: Fix rose_getname() leak
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 6 Aug 2009 03:34:06 +0000
(
03:34
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 6 Aug 2009 20:08:38 +0000
(13:08 -0700)
rose_getname() can leak kernel memory to user.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rose/af_rose.c
patch
|
blob
|
blame
|
history
diff --git
a/net/rose/af_rose.c
b/net/rose/af_rose.c
index f0a76f6bca711a064f4611a592c82eeca9968f0f..e5f478ca3d61574e01bc74bad58cfdc910a33b4a 100644
(file)
--- a/
net/rose/af_rose.c
+++ b/
net/rose/af_rose.c
@@
-954,6
+954,7
@@
static int rose_getname(struct socket *sock, struct sockaddr *uaddr,
struct rose_sock *rose = rose_sk(sk);
int n;
+ memset(srose, 0, sizeof(*srose));
if (peer != 0) {
if (sk->sk_state != TCP_ESTABLISHED)
return -ENOTCONN;