{"id":"CVE-2025-39931","aliases":["CVE-2025-39931"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: af_alg - Set merge to zero early in af_alg_sendmsg","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncrypto: af_alg - Establecer merge a cero al principio en af_alg_sendmsg\n\nSi un error causa que af_alg_sendmsg aborte, ctx->merge puede contener un valor basura del bucle anterior. Esto puede entonces desencadenar un bloqueo en la siguiente entrada en af_alg_sendmsg cuando intente hacer un merge que no se puede hacer.\n\nCorregir esto estableciendo ctx->merge a cero cerca del inicio del bucle.","source":"nvd"}],"published":"2025-10-04T07:30:55.964Z","modified":"2026-11-10T13:17:52.447Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2","fixed":"28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf","status":"affected"},{"type":"git","introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2","fixed":"db2b42425dfbde4983b0c20fb7cfa05f70e6a745","status":"affected"},{"type":"git","introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2","fixed":"6241b9e2809b12da9130894cf5beddf088dc1b8a","status":"affected"},{"type":"git","introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2","fixed":"2374c11189ef704a3e4863646369f1b8e6a27d71","status":"affected"},{"type":"git","introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2","fixed":"24c1106504c625fabd3b7229611af617b4c27ac7","status":"affected"},{"type":"git","introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2","fixed":"045ee26aa3920a47ec46d7fcb302420bf01fd753","status":"affected"},{"type":"git","introduced":"8ff590903d5fc7f5a0a988c38267a3d08e6393a2","fixed":"9574b2330dbd2b5459b74d3b5e9619d39299fc6f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.38","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.38","status":"unaffected"},{"type":"semver","introduced":"5.10.260","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.211","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.154","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.108","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.49","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.9","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.38","fixed":"6.1.154"},{"status":"affected","introduced":"6.2","fixed":"6.6.108"},{"status":"affected","introduced":"6.7","fixed":"6.12.49"},{"status":"affected","introduced":"6.13","fixed":"6.16.9"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db2b42425dfbde4983b0c20fb7cfa05f70e6a745","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6241b9e2809b12da9130894cf5beddf088dc1b8a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2374c11189ef704a3e4863646369f1b8e6a27d71","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24c1106504c625fabd3b7229611af617b4c27ac7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/045ee26aa3920a47ec46d7fcb302420bf01fd753","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9574b2330dbd2b5459b74d3b5e9619d39299fc6f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:54:45.882Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39931","url":"https://www.cve.org/CVERecord?id=CVE-2025-39931","licence":"CVE Terms of Use","modified":"2026-11-10T12:37:16.988Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39931","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39931","licence":"Public domain","modified":"2026-11-10T13:17:52.447Z"}],"updatedAt":"2026-11-25T22:59:05.515Z","epss":{"score":0.00169,"percentile":0.06562,"date":"2026-12-01T12:00:22.000Z"}}