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.
Product status
a06ec283e125e334155fe13005c76c9f484ce759 (git) before 40a1e0142096dd7dd6cb5373841222b528698588
a06ec283e125e334155fe13005c76c9f484ce759 (git) before c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08
6.18
Any version before 6.18
6.18.2 (semver)
6.19-rc1 (original_commit_for_fix)
References
git.kernel.org/...c/40a1e0142096dd7dd6cb5373841222b528698588
git.kernel.org/...c/c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08
Data based on CVE®. Copyright © 1999-2025, The MITRE Corporation. All rights reserved.