[PATCH v7 01/15] net: qrtr: ns: validate msglen before ctrl_pkt use

Manivannan Sadhasivam mani at kernel.org
Tue Sep 15 23:45:46 PDT 2026


On Tue, Sep 15, 2026 at 08:41:53AM +0300, Juha-Matti Tilli wrote:
> From: Denis Kenzior <denkenz at gmail.com>
> 
> The qrtr_ctrl_pkt structure is currently accessed without checking
> if the received payload is large enough to hold the structure's fields.
> Add a check to ensure the payload length is sufficient.
> 
> Signed-off-by: Denis Kenzior <denkenz at gmail.com>
> Reviewed-by: Marcel Holtmann <marcel at holtmann.org>
> Reviewed-by: Andy Gross <agross at kernel.org>
> Signed-off-by: Mihai Moldovan <ionic at ionic.de>
> Fixes: 0c2204a4ad71 ("net: qrtr: Migrate nameservice to kernel from userspace")
> Signed-off-by: Juha-Matti Tilli <juha-matti.tilli at iki.fi>

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam at oss.qualcomm.com>

- Mani

-- 
மணிவண்ணன் சதாசிவம்



More information about the ath12k mailing list