# CVE-2025-68761: hfs: fix potential use after free in hfs_correct_next_unused_CNID()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-01-05T09:32:33.814Z
- Modified: 2026-10-14T16:10:00.250Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a06ec283e125e334155fe13005c76c9f484ce759 before 40a1e0142096dd7dd6cb5373841222b528698588; from a06ec283e125e334155fe13005c76c9f484ce759 before c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08; 6.18 (not affected: before 6.18; from 6.18.2 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/40a1e0142096dd7dd6cb5373841222b528698588>
- <https://git.kernel.org/stable/c/c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08>

## Sources

- CVE List: [CVE-2025-68761](https://www.cve.org/CVERecord?id=CVE-2025-68761), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-68761](https://nvd.nist.gov/vuln/detail/CVE-2025-68761), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-68761 · Whole record: https://cve.day/CVE-2025-68761.json · Rebuilt by cve.day 2026-11-25T22:59:10.267Z
