[PATCH] net/i40e: validate DDP segment header before use
Bruce Richardson
bruce.richardson at intel.com
Tue May 5 17:43:16 CEST 2026
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: stable at dpdk.org
>
> Signed-off-by: Daniil Agalakov <ade at amicon.ru>
> Signed-off-by: Daniil Iskhakov <dish at amicon.ru>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Applied to dpdk-next-net-intel.
Thanks,
/Bruce
More information about the dev
mailing list