7.8high
hfs: fix potential use after free in hfs_correct_next_unused_CNID()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: hfs: corrección de posible uso después de liberar en hfs_correct_next_unused_CNID() Este código llama a hfs_bnode_put(node) lo que decrementa el contador de referencias y luego desreferencia 'node' en la siguiente línea. Solo es seguro usar 'node' cuando mantenemos una referencia, así que invierta estas dos líneas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68761 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-68761 changed 2026-10-14 | Public domain |