The patch titled Subject: digsig: fix memory leakage in digsig_verify_rsa() has been added to the -mm tree. Its filename is digsig-fix-memory-leakage-in-digsig_verify_rsa.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx> Subject: digsig: fix memory leakage in digsig_verify_rsa() digsig_verify_rsa() does not free kmalloc'ed buffer returned by mpi_get_buffer(). Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx> Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@xxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/digsig.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN lib/digsig.c~digsig-fix-memory-leakage-in-digsig_verify_rsa lib/digsig.c --- a/lib/digsig.c~digsig-fix-memory-leakage-in-digsig_verify_rsa +++ a/lib/digsig.c @@ -162,6 +162,8 @@ static int digsig_verify_rsa(struct key memset(out1, 0, head); memcpy(out1 + head, p, l); + kfree(p); + err = pkcs_1_v1_5_decode_emsa(out1, len, mblen, out2, &len); if (err) goto err; _ Patches currently in -mm which might be from yoshfuji@xxxxxxxxxxxxxx are linux-next.patch digsig-fix-memory-leakage-in-digsig_verify_rsa.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html