
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."