Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: qrtr: Fix an out of bounds read qrtr_endpoint_post()
This code assumes that the user passed in enough data for a qrtr_hdr_v1 or qrtr_hdr_v2 struct, but it's not necessarily true. If the buffer is too small then it will read beyond the end. Reported-by: Manivannan Sadhasivam <[email protected]> Reported-by: [email protected] Fixes: 194ccc8 ("net: qrtr: Support decoding incoming v2 packets") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information