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:
3d39247
)
irda: Fix irda_getname() leak
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 6 Aug 2009 03:55:04 +0000
(
03:55
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 6 Aug 2009 20:08:46 +0000
(13:08 -0700)
irda_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/irda/af_irda.c
patch
|
blob
|
blame
|
history
diff --git
a/net/irda/af_irda.c
b/net/irda/af_irda.c
index cb762c8723ea7a90f98b9e34074d98bc3b716742..3ec2b434ea75c1717f316f3ac14a42a4f9c61528 100644
(file)
--- a/
net/irda/af_irda.c
+++ b/
net/irda/af_irda.c
@@
-714,6
+714,7
@@
static int irda_getname(struct socket *sock, struct sockaddr *uaddr,
struct sock *sk = sock->sk;
struct irda_sock *self = irda_sk(sk);
+ memset(&saddr, 0, sizeof(saddr));
if (peer) {
if (sk->sk_state != TCP_ESTABLISHED)
return -ENOTCONN;