# CVE-2025-39931: crypto: af_alg - Set merge to zero early in af_alg_sendmsg

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-04T07:30:55.964Z
- Modified: 2026-11-10T13:17:52.447Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.16.9 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 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.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf>
- <https://git.kernel.org/stable/c/db2b42425dfbde4983b0c20fb7cfa05f70e6a745>
- <https://git.kernel.org/stable/c/6241b9e2809b12da9130894cf5beddf088dc1b8a> (patch)
- <https://git.kernel.org/stable/c/2374c11189ef704a3e4863646369f1b8e6a27d71> (patch)
- <https://git.kernel.org/stable/c/24c1106504c625fabd3b7229611af617b4c27ac7> (patch)
- <https://git.kernel.org/stable/c/045ee26aa3920a47ec46d7fcb302420bf01fd753> (patch)
- <https://git.kernel.org/stable/c/9574b2330dbd2b5459b74d3b5e9619d39299fc6f> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-39931](https://www.cve.org/CVERecord?id=CVE-2025-39931), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-39931](https://nvd.nist.gov/vuln/detail/CVE-2025-39931), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-39931 · Whole record: https://cve.day/CVE-2025-39931.json · Rebuilt by cve.day 2026-11-25T22:59:05.515Z
