On Mon, Apr 27, 2026 at 06:44:01PM +0300, Daniil Iskhakov wrote:
> rte_pmd_i40e_get_ddp_info() retrieves the I40E segment header with
> i40e_find_segment_in_package(). That helper may return NULL if the
> segment cannot be found.
> 
> The returned pointer is validated only in one code path, while other
> branches use it without checking. This can lead to a NULL pointer
> dereference when parsing a malformed or incomplete DDP package.
> 
> Move the NULL check right before the segment usage so it applies to all
> request types needed.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: edeab742edac ("net/i40e: get information about DDP profile")
> Cc: [email protected]
> 
> Signed-off-by: Daniil Agalakov <[email protected]>
> Signed-off-by: Daniil Iskhakov <[email protected]>
> ---

Acked-by: Bruce Richardson <[email protected]>

Applied to dpdk-next-net-intel.

Thanks,
/Bruce

Reply via email to