---
id: CVE-2025-68761
title: |-
  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 nex…
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 nex…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
published: '2026-01-05'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T16:10:00.250'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68761'
references:
  - url: 'https://git.kernel.org/stable/c/40a1e0142096dd7dd6cb5373841222b528698588'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00134
epssPercentile: 0.02531
ingestedAt: '2026-10-14T16:40:32.061Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
