lkml.org 
[lkml]   [2019]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] NFC: st21nfca: fix double free
From
From: Pan Bian <bianpan2016@163.com>
Date: Thu, 7 Nov 2019 09:33:20 +0800

> The variable nfcid_skb is not changed in the callee nfc_hci_get_param()
> if error occurs. Consequently, the freed variable nfcid_skb will be
> freed again, resulting in a double free bug. Set nfcid_skb to NULL after
> releasing it to fix the bug.
>
> Signed-off-by: Pan Bian <bianpan2016@163.com>

Applied and queued up for -stable.

\
 
 \ /
  Last update: 2019-11-07 06:51    [W:0.034 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site