Skip to content
Heist/ feed
Back to feed
HighFix available

crypto: af_alg - Set merge to zero early in af_alg_sendmsg

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.260, 5.15.211, 6.1.154, 6.12.49, 6.16.9, 6.6.108
CVEs
CVE-2025-39931
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 12:29 UTC · Revision 1

Source evidence

crypto: af_alg - Set merge to zero early in af_alg_sendmsg

core-osv · Original source

Published 4 Oct 2025, 07:30 UTC

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.

osv:CVE-2025-39931

Kernel

Fixed versions: 5.10.260, 5.15.211, 6.1.154, 6.6.108, 6.12.49, 6.16.9

Complete source record
{
  "id": "b4eca022be536a9acc276eb42614a4b014eb12067b5eaedaf29d694a3e71a7c2",
  "url": "https://osv.dev/vulnerability/CVE-2025-39931",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "crypto: af_alg - Set merge to zero early in af_alg_sendmsg",
    "summary": "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.",
    "evidence": "osv:CVE-2025-39931",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.260",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.211",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.154",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.108",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.49",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-39931",
      "aliases": [
        "CVE-2025-39931"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39931.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.547262609Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-082556.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
        "https://git.kernel.org/stable/c/045ee26aa3920a47ec46d7fcb302420bf01fd753",
        "https://git.kernel.org/stable/c/2374c11189ef704a3e4863646369f1b8e6a27d71",
        "https://git.kernel.org/stable/c/24c1106504c625fabd3b7229611af617b4c27ac7",
        "https://git.kernel.org/stable/c/28f6f37abca7c5c9eb3959c66310f1d4d98b8aaf",
        "https://git.kernel.org/stable/c/6241b9e2809b12da9130894cf5beddf088dc1b8a",
        "https://git.kernel.org/stable/c/9574b2330dbd2b5459b74d3b5e9619d39299fc6f",
        "https://git.kernel.org/stable/c/db2b42425dfbde4983b0c20fb7cfa05f70e6a745",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39931.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-39931",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39931.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-39931",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 495402,
  "published_at": "2025-10-04T07:30:55.964+00:00"
}