{"id":"CVE-2025-39931","summary":"crypto: af_alg - Set merge to zero early in af_alg_sendmsg","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: af_alg - Set merge to zero early in af_alg_sendmsg\n\nIf an error causes af_alg_sendmsg to abort, ctx-\u003emerge may contain\na garbage value from the previous loop.  This may then trigger a\ncrash on the next entry into af_alg_sendmsg when it attempts to do\na merge that can't be done.\n\nFix this by setting ctx-\u003emerge to zero near the start of the loop.","modified":"2026-04-16T04:39:49.956933946Z","published":"2025-10-04T07:30:55.964Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4189-1","SUSE-SU-2025:4301-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39931.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/045ee26aa3920a47ec46d7fcb302420bf01fd753"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2374c11189ef704a3e4863646369f1b8e6a27d71"},{"type":"WEB","url":"https://git.kernel.org/stable/c/24c1106504c625fabd3b7229611af617b4c27ac7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6241b9e2809b12da9130894cf5beddf088dc1b8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9574b2330dbd2b5459b74d3b5e9619d39299fc6f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39931.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39931"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2"},{"fixed":"6241b9e2809b12da9130894cf5beddf088dc1b8a"},{"fixed":"2374c11189ef704a3e4863646369f1b8e6a27d71"},{"fixed":"24c1106504c625fabd3b7229611af617b4c27ac7"},{"fixed":"045ee26aa3920a47ec46d7fcb302420bf01fd753"},{"fixed":"9574b2330dbd2b5459b74d3b5e9619d39299fc6f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39931.json"}}],"schema_version":"1.7.5"}