[PATCH] net/mlx5: fix null dereference in modify header

Raslan Darawsheh rasland at nvidia.com
Tue Nov 18 12:28:54 CET 2025


Hi,


On 16/11/2025 2:10 PM, Shani Peretz wrote:
> GCC analyzer identified a code path where acts->mhdr could be
> NULL when dereferenced.
> When modify header validation fails in mlx5_tbl_translate_modify_header(),
>   __flow_hw_action_template_destroy() sets acts->mhdr to NULL.
> Add defensive NULL check in mlx5_tbl_ensure_shared_modify_header()
> to prevent the dereference.
> 
> Bugzilla ID: 1521
> Fixes: 12f2ed3f03c8 ("net/mlx5: set modify header as shared flow action")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh



More information about the stable mailing list