CVE-2025-39931

crypto: af_alg - Set merge to zero early in af_alg_sendmsg

At a glance

Severity
HIGH 7.8
EPSS
EPSS 0.17 % · percentile 6 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 < 28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf ; affected 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 < db2b42425dfbde4983b0c20fb7cfa05f70e6a745 ; affected 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 < 6241b9e2809b12da9130894cf5beddf088dc1b8a ; affected 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 < 2374c11189ef704a3e4863646369f1b8e6a27d71 ; affected 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 < 24c1106504c625fabd3b7229611af617b4c27ac7 ; affected 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 < 045ee26aa3920a47ec46d7fcb302420bf01fd753
Linux · Linuxaffected 2.6.38 ; unaffected 0 < 2.6.38 ; unaffected 5.10.260 ≤ 5.10.* ; unaffected 5.15.211 ≤ 5.15.* ; unaffected 6.1.154 ≤ 6.1.* ; unaffected 6.6.108 ≤ 6.6.*

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD