[lvc-project] [PATCH 5.10/5.15] crypto: af_alg - Set merge to zero early in af_alg_sendmsg

Sasha Levin sashal at kernel.org
Thu Jul 2 03:38:27 MSK 2026


> If an error causes af_alg_sendmsg to abort, ctx->merge may contain
> a garbage value from the previous loop.  This may then trigger a
> crash on the next entry into af_alg_sendmsg when it attempts to do
> a merge that can't be done.
>
> Fix this by setting ctx->merge to zero near the start of the loop.

Queued for 5.15.y and 5.10.y, thanks.

-- 
Thanks,
Sasha



More information about the lvc-project mailing list