[PATCH v2] crypto/ipsec_mb: fix Null ptr dereference in set_mb_job_params()
Radu Nicolau
radu.nicolau at intel.com
Tue Oct 6 12:57:58 CEST 2026
On 02-Oct-26 12:20 PM, Konyukhov Aleksandr wrote:
> In function set_mb_job_params pmd_aesni_mb.c:1742 check
> (cipher_mode == IMB_CIPHER_NULL && oop)
> is not enath to garanteed job->dst != 0, which in turn could lead to
> NULL ptr dereference.
>
> Add new check for (sgl == 0) to be shure that job->dst
> was set in pmd_aesni_mb.c:1610
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 03944ff5e3df ("crypto/ipsec_mb: support null auth/cipher for aesni_mb")
> Cc: roy.fan.zhang at intel.com
>
> Signed-off-by: Konyukhov Aleksandr <Alexander.Konyukhov at kaspersky.com>
> ---
Hi, I send a patch that is basically your first fix and a comment and
CC'd stable dpdk mailing list - the NULL SGL OOP case was actually
handled by the existing code, your initial fix was fine, thanks for
taking the time.
I also added test cases to verify the fix and cover this case.
More information about the dev
mailing list