diff options
| author | Chandrashekar Devegowda <chandrashekar.devegowda@intel.com> | 2026-09-22 12:10:22 +0530 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-09-23 09:29:54 -0400 |
| commit | f771f96557a4d953a7e4d045870547271e36e819 (patch) | |
| tree | 4f3f626ec2d18cf90f84ad855473607cf8246ab0 /include/net | |
| parent | 7dbeb6935ac331b0cba6c41cabd8e9d02d5f64ea (diff) | |
Bluetooth: btintel_pcie: reject oversized TX packets in send_frame()
btintel_pcie_send_frame() eventually copies skb->data into a fixed
BTINTEL_PCIE_BUFFER_SIZE (4096) DMA buffer via memcpy() in
btintel_pcie_prepare_tx(), with a 4-byte PCIe type header prepended.
A user-space process with HCI_CHANNEL_USER access can inject an
oversized packet and overflow the buffer.
Reject packets larger than
BTINTEL_PCIE_BUFFER_SIZE - BTINTEL_PCIE_HCI_TYPE_LEN on entry.
Fixes: 6e65a09f9275 ("Bluetooth: btintel_pcie: Add *setup* function to download firmware")
Cc: stable@vger.kernel.org
Signed-off-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions
