Re: [PATCH] Crypto : Fix Null deref in scatterwalk_pagedone

From: Greg KH

Date: Sat Feb 21 2026 - 11:46:33 EST


On Sat, Feb 21, 2026 at 08:40:41PM +0530, Manas wrote:
> `sg_next` can return NULL which causes NULL deref in
> `scatterwalk_start`

How can it return NULL in this case?

> Reported-by: Manas Ghandat <ghandatmanas@xxxxxxxxx>
> Reported-by: Rakshit Awasthi <rakshitawasthi17@xxxxxxxxx>
> Signed-off-by: Manas Ghandat <ghandatmanas@xxxxxxxxx>
> Signed-off-by: Rakshit Awasthi <rakshitawasthi17@xxxxxxxxx>

Reported by isn't needed if you sign off on a patch. But you got the
order wrong here for the signed off by lines, please read the
documentation.


<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>