Re: [PATCH v7 01/15] net: qrtr: ns: validate msglen before ctrl_pkt use
From: Manivannan Sadhasivam
Date: Wed Sep 16 2026 - 02:48:10 EST
On Tue, Sep 15, 2026 at 08:41:53AM +0300, Juha-Matti Tilli wrote:
> From: Denis Kenzior <denkenz@xxxxxxxxx>
>
> 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@xxxxxxxxx>
> Reviewed-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>
> Reviewed-by: Andy Gross <agross@xxxxxxxxxx>
> Signed-off-by: Mihai Moldovan <ionic@xxxxxxxx>
> Fixes: 0c2204a4ad71 ("net: qrtr: Migrate nameservice to kernel from userspace")
> Signed-off-by: Juha-Matti Tilli <juha-matti.tilli@xxxxxx>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
- Mani
--
மணிவண்ணன் சதாசிவம்