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.
History

Sat, 04 Oct 2025 07:45:00 +0000

Type Values Removed Values Added
Description 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.
Title crypto: af_alg - Set merge to zero early in af_alg_sendmsg
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2025-10-04T07:30:55.964Z

Reserved: 2025-04-16T07:20:57.147Z

Link: CVE-2025-39931

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-10-04T08:15:45.827

Modified: 2025-10-04T08:15:45.827

Link: CVE-2025-39931

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.