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: [email protected]

Signed-off-by: Konyukhov Aleksandr <[email protected]>
---

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.

Reply via email to