crypto: af_alg - Set merge to zero early in af_alg_sendmsg
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 · < 045ee26aa3920a47ec46d7fcb302420bf01fd753| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: af_alg - Set merge to zero early in af_alg_sendmsg
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.
From the CVE record · Linux
In the Linux kernel, an error that aborts af_alg_sendmsg can leave ctx->merge with a stale value. On a later call, an attempted merge can crash the kernel. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Teams running Linux kernels should check whether their versions are affected; the input does not identify affected versions.