diff options
author | 2012-09-19 11:33:38 +0000 | |
---|---|---|
committer | 2012-09-20 18:08:39 -0400 | |
commit | 4c87308bdea31a7b4828a51f6156e6f721a1fcc9 (patch) | |
tree | ca428f394170c09015dc982c3371c04de0749c81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: qmi_wwan: adding Huawei E367, ZTE MF683 and Pantech P4200 (diff) | |
download | linux-dev-4c87308bdea31a7b4828a51f6156e6f721a1fcc9.tar.xz linux-dev-4c87308bdea31a7b4828a51f6156e6f721a1fcc9.zip |
xfrm_user: fix info leak in copy_to_user_auth()
copy_to_user_auth() fails to initialize the remainder of alg_name and
therefore discloses up to 54 bytes of heap memory via netlink to
userland.
Use strncpy() instead of strcpy() to fill the trailing bytes of alg_name
with null bytes.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions