CVE-2025-39931
JSON

7.8high

crypto: af_alg - Set merge to zero early in af_alg_sendmsg

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 before 28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf, from 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 before db2b42425dfbde4983b0c20fb7cfa05f70e6a745, from 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 before 6241b9e2809b12da9130894cf5beddf088dc1b8a, from 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 before 2374c11189ef704a3e4863646369f1b8e6a27d71, from 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 before 24c1106504c625fabd3b7229611af617b4c27ac7, from 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 before 045ee26aa3920a47ec46d7fcb302420bf01fd753, from 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 before 9574b2330dbd2b5459b74d3b5e9619d39299fc6f, 2.6.38
Not affected: before 2.6.38, from 5.10.260 up to 5.10.*, from 5.15.211 up to 5.15.*, from 6.1.154 up to 6.1.*, from 6.6.108 up to 6.6.*, from 6.12.49 up to 6.12.*
CVE List
linux linux_kernelfrom 2.6.38 before 6.1.154, from 6.2 before 6.6.108, from 6.7 before 6.12.49, from 6.13 before 6.16.9, 6.17NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-908

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: crypto: af_alg - Establecer merge a cero al principio en af_alg_sendmsg Si 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. Corregir esto estableciendo ctx->merge a cero cerca del inicio del bucle.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39931 changed 2026-11-10CVE Terms of Use
NVDCVE-2025-39931 changed 2026-11-10Public domain