{"schema_version":"1.7.5","id":"CVE-2025-39931","published":"2025-10-04T07:30:55.964Z","modified":"2026-07-16T03:31:03.299911233Z","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","SUSE-SU-2026:20560-1","openSUSE-SU-2025:20081-1"],"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->merge 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->merge to zero near the start of the loop.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2"},{"fixed":"28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf"},{"fixed":"db2b42425dfbde4983b0c20fb7cfa05f70e6a745"},{"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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.38"},{"fixed":"5.10.260"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.211"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.154"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.108"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.49"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.16.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39931.json"}}],"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html"},{"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/28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6241b9e2809b12da9130894cf5beddf088dc1b8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9574b2330dbd2b5459b74d3b5e9619d39299fc6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db2b42425dfbde4983b0c20fb7cfa05f70e6a745"},{"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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39931.json"}}