# CVE-2023-53862: hfs: fix missing hfs\_bnode\_get() in \_\_hfs\_bnode\_create

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **Published:** 2025-12-09T01:30:30.902Z
- **Modified:** 2026-08-05T09:16:26.547Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 062af3e9930762d1fd22946748d34e0d859e4a8e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3a9065a33988c02789722be612f7c42fb8ebbb22; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< eda6879272e4df5456afc36642052ea066f58410; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dc9f78b6d254427a06e568f2887b1011ef3143ef; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2cab8db14566cf6a516c1f103a60cf6b7f54b1e5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8140cdc57bc5844cd5e1392673ec2dbf8fdc6940; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 38d72e6604b9f96dffcc0565090cc01622a37b2a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a9dc087fd3c484fd1ed18c5efb290efaaf44ce03
- Anyone running Linux 2.6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

hfs: fix missing hfs\_bnode\_get() in \_\_hfs\_bnode\_create

Syzbot found a kernel BUG in hfs\_bnode\_put():

 kernel BUG at fs/hfs/bnode.c:466!
 invalid opcode: 0000 \[\#1\] PREEMPT SMP KASAN
 CPU: 0 PID: 3634 Comm: kworker/u4:5 Not tainted 6.1.0-rc7-syzkaller-00190-g97ee9d1c1696 \#0
 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
 Workqueue: writeback wb\_workfn (flush-7:0)
 RIP: 0010:hfs\_bnode\_put+0x46f/0x480 fs/hfs/bnode.c:466
 Code: 8a 80 ff e9 73 fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c a0 fe ff ff 48 89 df e8 db 8a 80 ff e9 93 fe ff ff e8 a1 68 2c ff \<0f\> 0b e8 9a 68 2c ff 0f 0b 0f 1f 84 00 00 00 00 00 55 41 57 41 56
 RSP: 0018:ffffc90003b4f258 EFLAGS: 00010293
 RAX: ffffffff825e318f RBX: 0000000000000000 RCX: ffff8880739dd7c0
 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
 RBP: ffffc90003b4f430 R08: ffffffff825e2d9b R09: ffffed10045157d1
 R10: ffffed10045157d1 R11: 1ffff110045157d0 R12: ffff8880228abe80
 R13: ffff88807016c000 R14: dffffc0000000000 R15: ffff8880228abe00
 FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007fa6ebe88718 CR3: 000000001e93d000 CR4: 00000000003506f0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  \<TASK\>
  hfs\_write\_inode+0x1bc/0xb40
  write\_inode fs/fs-writeback.c:1440 \[inline\]
  \_\_writeback\_single\_inode+0x4d6/0x670 fs/fs-writeback.c:1652
  writeback\_sb\_inodes+0xb3b/0x18f0 fs/fs-writeback.c:1878
  \_\_writeback\_inodes\_wb+0x125/0x420 fs/fs-writeback.c:1949
  wb\_writeback+0x440/0x7b0 fs/fs-writeback.c:2054
  wb\_check\_start\_all fs/fs-writeback.c:2176 \[inline\]
  wb\_do\_writeback fs/fs-writeback.c:2202 \[inline\]
  wb\_workfn+0x827/0xef0 fs/fs-writeback.c:2235
  process\_one\_work+0x877/0xdb0 kernel/workqueue.c:2289
  worker\_thread+0xb14/0x1330 kernel/workqueue.c:2436
  kthread+0x266/0x300 kernel/kthread.c:376
  ret\_from\_fork+0x1f/0x30 arch/x86/entry/entry\_64.S:306
  \</TASK\>

The BUG\_ON() is triggered at here:

/\* Dispose of resources used by a node \*/
void hfs\_bnode\_put(struct hfs\_bnode \*node)
{
	if (node) {
 		\<skipped\>
 		BUG\_ON(!atomic\_read(&node-\>refcnt)); \<- we have issue here!!!!
 		\<skipped\>
 	}
}

By tracing the refcnt, I found the node is created by hfs\_bmap\_alloc()
with refcnt 1.  Then the node is used by hfs\_btree\_write().  There is a
missing of hfs\_bnode\_get() after find the node.  The issue happened in
following path:

\<alloc\>
 hfs\_bmap\_alloc
   hfs\_bnode\_find
     \_\_hfs\_bnode\_create   \<- allocate a new node with refcnt 1.
   hfs\_bnode\_put          \<- decrease the refcnt

\<write\>
 hfs\_btree\_write
   hfs\_bnode\_find
     \_\_hfs\_bnode\_create
       hfs\_bnode\_findhash \<- find the node without refcnt increased.
   hfs\_bnode\_put	  \<- trigger the BUG\_ON() since refcnt is 0.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 062af3e9930762d1fd22946748d34e0d859e4a8e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3a9065a33988c02789722be612f7c42fb8ebbb22; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< eda6879272e4df5456afc36642052ea066f58410; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dc9f78b6d254427a06e568f2887b1011ef3143ef; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2cab8db14566cf6a516c1f103a60cf6b7f54b1e5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8140cdc57bc5844cd5e1392673ec2dbf8fdc6940; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 38d72e6604b9f96dffcc0565090cc01622a37b2a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a9dc087fd3c484fd1ed18c5efb290efaaf44ce03 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53862. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53862.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 062af3e9930762d1fd22946748d34e0d859e4a8e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3a9065a33988c02789722be612f7c42fb8ebbb22; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < eda6879272e4df5456afc36642052ea066f58410; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 062af3e9930762d1fd22946748d34e0d859e4a8e, Linux 3a9065a33988c02789722be612f7c42fb8ebbb22, Linux 2cab8db14566cf6a516c1f103a60cf6b7f54b1e5, Linux 8140cdc57bc5844cd5e1392673ec2dbf8fdc6940, Linux 38d72e6604b9f96dffcc0565090cc01622a37b2a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53862 being exploited?

There is no confirmed exploitation: CVE-2023-53862 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53862?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53862?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 062af3e9930762d1fd22946748d34e0d859e4a8e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3a9065a33988c02789722be612f7c42fb8ebbb22; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< eda6879272e4df5456afc36642052ea066f58410; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dc9f78b6d254427a06e568f2887b1011ef3143ef; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2cab8db14566cf6a516c1f103a60cf6b7f54b1e5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8140cdc57bc5844cd5e1392673ec2dbf8fdc6940; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 38d72e6604b9f96dffcc0565090cc01622a37b2a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a9dc087fd3c484fd1ed18c5efb290efaaf44ce03; Linux 2.6.12.

### Is there a fix for CVE-2023-53862?

Yes. Fixed in Linux 062af3e9930762d1fd22946748d34e0d859e4a8e, Linux 3a9065a33988c02789722be612f7c42fb8ebbb22, Linux 2cab8db14566cf6a516c1f103a60cf6b7f54b1e5, Linux 8140cdc57bc5844cd5e1392673ec2dbf8fdc6940, Linux 38d72e6604b9f96dffcc0565090cc01622a37b2a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53862?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/062af3e9930762d1fd22946748d34e0d859e4a8e>
- other: <https://git.kernel.org/stable/c/3a9065a33988c02789722be612f7c42fb8ebbb22>
- other: <https://git.kernel.org/stable/c/eda6879272e4df5456afc36642052ea066f58410>
- other: <https://git.kernel.org/stable/c/dc9f78b6d254427a06e568f2887b1011ef3143ef>
- other: <https://git.kernel.org/stable/c/2cab8db14566cf6a516c1f103a60cf6b7f54b1e5>
- other: <https://git.kernel.org/stable/c/8140cdc57bc5844cd5e1392673ec2dbf8fdc6940>
- other: <https://git.kernel.org/stable/c/38d72e6604b9f96dffcc0565090cc01622a37b2a>
- other: <https://git.kernel.org/stable/c/a9dc087fd3c484fd1ed18c5efb290efaaf44ce03>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53862>

HTML: <https://flawdb.com/CVE-2023-53862> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53862>
