Skip to content
Heist/ feed
Back to feed
HighFix available

crypto: algif_hash - fix double free in hash_accept

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: crypto: algif_hash - fix double free in hash_accept If accept(2) is called on socket type algif_hash with MSG_MORE flag set and crypto_ahash_import fails, sk2 is freed. However, it is also freed in af_alg_release, leading to slab-use-after-free error.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.238, 5.15.185, 5.4.294, 6.1.141, 6.12.31, 6.14.9, 6.6.93
CVEs
CVE-2025-38079
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:11 UTC · Revision 1

Source evidence

crypto: algif_hash - fix double free in hash_accept

core-osv · Original source

Published 18 Jun 2025, 09:33 UTC

In the Linux kernel, the following vulnerability has been resolved: crypto: algif_hash - fix double free in hash_accept If accept(2) is called on socket type algif_hash with MSG_MORE flag set and crypto_ahash_import fails, sk2 is freed. However, it is also freed in af_alg_release, leading to slab-use-after-free error.

osv:CVE-2025-38079

Kernel

Fixed versions: 5.4.294, 5.10.238, 5.15.185, 6.1.141, 6.6.93, 6.12.31, 6.14.9

Complete source record
{
  "id": "9fff2e344ed06abe2a7eb5f0ac152fd2bb80dc74f13433bd3ad1027b5e15edde",
  "url": "https://osv.dev/vulnerability/CVE-2025-38079",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "crypto: algif_hash - fix double free in hash_accept",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: crypto: algif_hash - fix double free in hash_accept If accept(2) is called on socket type algif_hash with MSG_MORE flag set and crypto_ahash_import fails, sk2 is freed. However, it is also freed in af_alg_release, leading to slab-use-after-free error.",
    "evidence": "osv:CVE-2025-38079",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.294",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.238",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.185",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.141",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.93",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.31",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-38079",
      "aliases": [
        "CVE-2025-38079"
      ],
      "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": "fe869cdb89c95d060c77eea20204d6c91f233b53"
                },
                {
                  "fixed": "5bff312b59b3f2a54ff504e4f4e47272b64f3633"
                },
                {
                  "fixed": "bf7bba75b91539e93615f560893a599c1e1c98bf"
                },
                {
                  "fixed": "c3059d58f79fdfb2201249c2741514e34562b547"
                },
                {
                  "fixed": "f0f3d09f53534ea385d55ced408f2b67059b16e4"
                },
                {
                  "fixed": "134daaba93193df9e988524b5cd2f52d15eb1993"
                },
                {
                  "fixed": "2f45a8d64fb4ed4830a4b3273834ecd6ca504896"
                },
                {
                  "fixed": "0346f4b742345d1c733c977f3a7aef5a6419a967"
                },
                {
                  "fixed": "b2df03ed4052e97126267e8c13ad4204ea6ba9b6"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38079.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.38"
                },
                {
                  "fixed": "5.4.294"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.238"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.185"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.141"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.93"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.31"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.14.9"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38079.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.679149933Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-082556.html",
        "https://git.kernel.org/stable/c/0346f4b742345d1c733c977f3a7aef5a6419a967",
        "https://git.kernel.org/stable/c/134daaba93193df9e988524b5cd2f52d15eb1993",
        "https://git.kernel.org/stable/c/2f45a8d64fb4ed4830a4b3273834ecd6ca504896",
        "https://git.kernel.org/stable/c/5bff312b59b3f2a54ff504e4f4e47272b64f3633",
        "https://git.kernel.org/stable/c/b2df03ed4052e97126267e8c13ad4204ea6ba9b6",
        "https://git.kernel.org/stable/c/bf7bba75b91539e93615f560893a599c1e1c98bf",
        "https://git.kernel.org/stable/c/c3059d58f79fdfb2201249c2741514e34562b547",
        "https://git.kernel.org/stable/c/f0f3d09f53534ea385d55ced408f2b67059b16e4",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38079.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38079",
        "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/38xxx/CVE-2025-38079.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38079",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507867,
  "published_at": "2025-06-18T09:33:53.251+00:00"
}