]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: Add check for mgmt_alloc_skb() in mgmt_remote_name()
authorHaoxiang Li <haoxiang_li2024@163.com>
Fri, 21 Feb 2025 08:49:47 +0000 (16:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:01:56 +0000 (13:01 +0100)
commit88310caff68ae69d0574859f7926a59c1da2d60b
treeb751fe31958bb9606f3eee44d27bf0a9d04e2a40
parent8d19543e941e96456e7dc4fa2e004443e9a7e629
Bluetooth: Add check for mgmt_alloc_skb() in mgmt_remote_name()

commit f2176a07e7b19f73e05c805cf3d130a2999154cb upstream.

Add check for the return value of mgmt_alloc_skb() in
mgmt_remote_name() to prevent null pointer dereference.

Fixes: ba17bb62ce41 ("Bluetooth: Fix skb allocation in mgmt_remote_name() & mgmt_device_connected()")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/mgmt.c