]> git.dujemihanovic.xyz Git - linux.git/commit
Bluetooth: qca: add missing firmware sanity checks
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 30 Apr 2024 17:07:39 +0000 (19:07 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 May 2024 17:05:29 +0000 (13:05 -0400)
commit2e4edfa1e2bd821a317e7d006517dcf2f3fac68d
tree728be2b25cd60235f72e0abec49b22d91dd87b51
parent10f9f426ac6e752c8d87bf4346930ba347aaabac
Bluetooth: qca: add missing firmware sanity checks

Add the missing sanity checks when parsing the firmware files before
downloading them to avoid accessing and corrupting memory beyond the
vmalloced buffer.

Fixes: 83e81961ff7e ("Bluetooth: btqca: Introduce generic QCA ROME support")
Cc: stable@vger.kernel.org # 4.10
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btqca.c