From: RISCi_ATOM Date: Wed, 20 Feb 2019 23:48:27 +0000 (-0500) Subject: Fix CVE-2019-8912 : net: crypto set sk to NULL when af_alg_release. : 9060cb719e61b6... X-Git-Tag: v1.4.7~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3a3cd11885fe5d5e1978f9ba7bdb0da1eb8ac071;p=librecmc%2Flibrecmc.git Fix CVE-2019-8912 : net: crypto set sk to NULL when af_alg_release. : 9060cb719e61b685ec0102574e10337fa5f445ea --- 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);