CVE-2025-68761

hfs: fix potential use after free in hfs_correct_next_unused_CNID()

State
Published
Severity
7.8 High
Published
Jan 5, 2026
Updated
Aug 5, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a06ec283e125e334155fe13005c76c9f484ce759 to before 40a1e0142096dd7dd6cb5373841222b528698588Affected
  • a06ec283e125e334155fe13005c76c9f484ce759 to before c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08Affected
LinuxLinux
  • 6.18Affected
  • before 6.18Not affected
  • 6.18.2 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.