[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191106.215058.729629893992439180.davem@davemloft.net>
Date: Wed, 06 Nov 2019 21:50:58 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: bianpan2016@....com
Cc: tglx@...utronix.de, allison@...utok.net,
kstewart@...uxfoundation.org, gregkh@...uxfoundation.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] NFC: st21nfca: fix double free
From: Pan Bian <bianpan2016@....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@....com>
Applied and queued up for -stable.
Powered by blists - more mailing lists