CVE-2025-68761
Linux Ubuntu vulnerability analysis and mitigation

Overview

CVE-2025-68761 is a use-after-free vulnerability in the Linux kernel's HFS (Hierarchical File System) filesystem implementation, specifically within the hfs_correct_next_unused_CNID() function. The flaw arises because hfs_bnode_put(node) is called to drop the reference count before the node structure is dereferenced on the subsequent line, creating a window where freed memory may be accessed. It was published on January 5, 2026, and affects the Linux kernel. NVD has not yet assigned a CVSS score, but Feedly estimates the severity as HIGH (Red Hat Advisory, Red Hat Bugzilla).

Technical details

The root cause is improper reference counting in the HFS filesystem driver (CWE-416: Use After Free). In hfs_correct_next_unused_CNID(), the code calls hfs_bnode_put(node) which decrements the node's reference count and may free the associated memory, then immediately dereferences the node pointer on the next line — a classic use-after-free pattern. The fix involves reordering these two operations so that the node is dereferenced before hfs_bnode_put() is called, ensuring the reference is held during memory access. Exploitation requires local access and the ability to mount or interact with an HFS filesystem, potentially via a crafted filesystem image (Red Hat Bugzilla, kernel.org patch 1, kernel.org patch 2).

Impact

A local attacker with access to mount or interact with an HFS filesystem could exploit this use-after-free condition to potentially execute arbitrary code with kernel privileges, cause a kernel panic (denial of service), or leak sensitive kernel memory. The impact is confined to systems where HFS filesystem support is enabled and accessible to unprivileged or semi-privileged users. Successful kernel-level code execution could enable full system compromise and lateral movement within the affected host (Red Hat Advisory).

Mitigation and workarounds

The Linux kernel upstream has released patches addressing this vulnerability, available at the two kernel.org stable commits (kernel.org patch 1, kernel.org patch 2). Users should apply the patched kernel version as soon as it is available for their distribution. As interim mitigations: (1) disable or unmount HFS filesystems if not required, (2) restrict filesystem mount permissions to trusted users only, (3) implement access controls to limit exposure to potentially malicious HFS filesystem images, and (4) monitor kernel logs for HFS-related errors or crashes (Red Hat Bugzilla).

Additional resources


SourceThis report was generated using AI

Related Linux Ubuntu vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-50737CRITICAL9
  • Linux Debian logoLinux Debian
  • pglogical
NoNoJul 28, 2026
CVE-2026-50736CRITICAL9
  • Linux Debian logoLinux Debian
  • pglogical
NoNoJul 28, 2026
CVE-2026-50738HIGH7.7
  • Linux Debian logoLinux Debian
  • pglogical
NoNoJul 28, 2026
CVE-2026-61547NONEN/A
  • Linux Debian logoLinux Debian
  • librabbitmq
NoYesJul 29, 2026
CVE-2026-59986NONEN/A
  • Linux Debian logoLinux Debian
  • librabbitmq
NoYesJul 29, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management