Skip to content
Heist/ feed
Back to feed
HighFix available

hfs: fix potential use after free in hfs_correct_next_unused_CNID()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: hfs: fix potential use after free in hfs_correct_next_unused_CNID() This code calls hfs_bnode_put(node) which drops the refcount and then dreferences "node" on the next line. It's only safe to use "node" when we're holding a reference so flip these two lines around.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.18.2
CVEs
CVE-2025-68761
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:53 UTC · Revision 1

Source evidence

hfs: fix potential use after free in hfs_correct_next_unused_CNID()

core-osv · Original source

Published 5 Jan 2026, 09:32 UTC

In the Linux kernel, the following vulnerability has been resolved: hfs: fix potential use after free in hfs_correct_next_unused_CNID() This code calls hfs_bnode_put(node) which drops the refcount and then dreferences "node" on the next line. It's only safe to use "node" when we're holding a reference so flip these two lines around.

osv:CVE-2025-68761

Kernel

Fixed versions: 6.18.2

Complete source record
{
  "id": "20c9666bb96e6e4d2f3e4902a29d7026e3e2f28beb21279754da75a640340926",
  "url": "https://osv.dev/vulnerability/CVE-2025-68761",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "hfs: fix potential use after free in hfs_correct_next_unused_CNID()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: hfs: fix potential use after free in hfs_correct_next_unused_CNID() This code calls hfs_bnode_put(node) which drops the refcount and then dreferences \"node\" on the next line. It's only safe to use \"node\" when we're holding a reference so flip these two lines around.",
    "evidence": "osv:CVE-2025-68761",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.18.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-68761",
      "aliases": [
        "CVE-2025-68761"
      ],
      "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": "a06ec283e125e334155fe13005c76c9f484ce759"
                },
                {
                  "fixed": "40a1e0142096dd7dd6cb5373841222b528698588"
                },
                {
                  "fixed": "c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68761.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.18.0"
                },
                {
                  "fixed": "6.18.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68761.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.421358484Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/40a1e0142096dd7dd6cb5373841222b528698588",
        "https://git.kernel.org/stable/c/c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68761.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-68761",
        "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/68xxx/CVE-2025-68761.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-68761",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521973,
  "published_at": "2026-01-05T09:32:33.814+00:00"
}