CVE-2025-68761
published high CVSS 3.1 · 7.8hfs: fix potential use after free in hfs_correct_next_unused_CNID()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa06ec283e125e334155fe13005c76c9f484ce759 to < 40a1e0142096dd7dd6cb5373841222b528698588 · a06ec283e125e334155fe13005c76c9f484ce759 to < c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.2 through 6.18.* (unaffected · semver) · 6.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
Show 20 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermaarch64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermppc64le | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longterms390x | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermx86_64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermaarch64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermppc64le | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longterms390x | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermx86_64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 6.18.5-1.1 | OPENSUSE-SU-2026:10039-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is reached locally through unlink, rmdir, or an overwriting rename on a writable, already-mounted HFS filesystem. AC:L - An attacker can create thread-only catalog tail nodes, repeatedly delete the highest-CNID object, induce reclaim pressure, and heap-spray the freed node; no condition fundamentally outside attacker control is required. PR:L - Mounting HFS requires CAP_SYS_ADMIN in the initial user namespace, but an ordinary user with write and search permission on an existing HFS directory can trigger the vulnerable deletion path. UI:N - The attacker directly invokes the filesystem operations, requiring no action by another user once a writable HFS volume is available. S:U - Exploitation compromises the host kernel within the same security authority and does not inherently cross a virtualization or comparable isolation boundary. C:H - Reclaim and heap spraying can replace the freed B-tree node, after which attacker-controlled tree and page fields may be dereferenced, supporting kernel-memory disclosure. I:H - The use-after-free can progress beyond the initial stale prev read into reuse of attacker-sprayed pointer, refcount, and lock fields, supporting arbitrary memory modification or control-flow hijacking. A:H - Dereferencing a reclaimed node can cause a kernel oops or panic, while a manipulated traversal can also loop or corrupt critical HFS state.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a06ec283e125e334155fe13005c76c9f484ce759 to < 40a1e0142096dd7dd6cb5373841222b528698588 (affected · git)a06ec283e125e334155fe13005c76c9f484ce759 to < c105e76bb17cf4b55fe89c6ad4f6a0e3972b5b08 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.2 through 6.18.* (unaffected · semver)6.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
hfs: fix potential use after free in hfs_correct_next_unused_CNID()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 853e31efd95018a44a267c555478f77025aaa8eea14741fda9f9ae38a51fed6f
- Ingested
- 23 Sep 2026, 08:57:14 UTC
- Source record
- Official CVE record