diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2024-05-01 14:34:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-17 12:15:11 +0200 |
commit | a571044cc0a0c944e7c12237b6768aeedd7480e1 (patch) | |
tree | 180a2ad67f297961202de972f21ddbf6226c8b7c /scripts/rustdoc_test_builder.rs | |
parent | f30c37cb4549baf8377434892d520fe7769bdba7 (diff) |
Bluetooth: qca: fix info leak when fetching fw build id
commit cda0d6a198e2a7ec6f176c36173a57bdd8af7af2 upstream.
Add the missing sanity checks and move the 255-byte build-id buffer off
the stack to avoid leaking stack data through debugfs in case the
build-info reply is malformed.
Fixes: c0187b0bd3e9 ("Bluetooth: btqca: Add support to read FW build version for WCN3991 BTSoC")
Cc: stable@vger.kernel.org # 5.12
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions