From 3a3cd11885fe5d5e1978f9ba7bdb0da1eb8ac071 Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Wed, 20 Feb 2019 18:48:27 -0500 Subject: [PATCH] Fix CVE-2019-8912 : net: crypto set sk to NULL when af_alg_release. : 9060cb719e61b685ec0102574e10337fa5f445ea --- .../patches-4.4/999-fix_cve-2019-8912.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/generic/patches-4.4/999-fix_cve-2019-8912.patch diff --git a/target/linux/generic/patches-4.4/999-fix_cve-2019-8912.patch b/target/linux/generic/patches-4.4/999-fix_cve-2019-8912.patch new file mode 100644 index 0000000000..8e04cc358c --- /dev/null +++ b/target/linux/generic/patches-4.4/999-fix_cve-2019-8912.patch @@ -0,0 +1,14 @@ +--- a/crypto/af_alg.c ++++ b/crypto/af_alg.c +@@ -121,8 +121,10 @@ static void alg_do_release(const struct + + int af_alg_release(struct socket *sock) + { +- if (sock->sk) ++ if (sock->sk) { + sock_put(sock->sk); ++ sock->sk = NULL; ++ } + return 0; + } + EXPORT_SYMBOL_GPL(af_alg_release); -- 2.25.1