projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3814baf
)
Bluetooth: ecdh_helper - fix leak of private key
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Thu, 28 Sep 2017 14:14:54 +0000
(17:14 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 6 Oct 2017 18:35:47 +0000
(20:35 +0200)
tmp buffer contains the swapped private key. In case the setkey call
failed, the tmp buffer was freed without clearing the private key.
Zeroize the temporary buffer so we don't leak the private key.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/ecdh_helper.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/ecdh_helper.c
b/net/bluetooth/ecdh_helper.c
index 22c8daa0b45116b2f3eeb6c99c9f8e8c2e9f9c4a..16e022f5ab276c8475d314b26366a5e57ce8c078 100644
(file)
--- a/
net/bluetooth/ecdh_helper.c
+++ b/
net/bluetooth/ecdh_helper.c
@@
-122,7
+122,7
@@
free_all:
free_req:
kpp_request_free(req);
free_tmp:
- kfree(tmp);
+ k
z
free(tmp);
return err;
}