# CVE-2025-38176: binder: fix use-after-free in binderfs\_evict\_inode()

> 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-07-04T10:39:57.229Z
- **Modified:** 2026-08-05T12:00:07.428Z

## Who should check

- Anyone running Linux \>= e77aff5528a183462714f750e45add6cc71e276a, \< 80ed8ab8efa0d18c03968a2321154f10e2d1a2e3; \>= e77aff5528a183462714f750e45add6cc71e276a, \< aea61a1a77613d4184d7ebe7c1d7cb606458b43b; \>= e77aff5528a183462714f750e45add6cc71e276a, \< 8c0a559825281764061a127632e5ad273f0466ad
- Anyone running Linux 6.14

## Description

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

binder: fix use-after-free in binderfs\_evict\_inode()

Running 'stress-ng --binderfs 16 --timeout 300' under KASAN-enabled
kernel, I've noticed the following:

BUG: KASAN: slab-use-after-free in binderfs\_evict\_inode+0x1de/0x2d0
Write of size 8 at addr ffff88807379bc08 by task stress-ng-binde/1699

CPU: 0 UID: 0 PID: 1699 Comm: stress-ng-binde Not tainted 6.14.0-rc7-g586de92313fc-dirty \#13
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-3.fc41 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x1c2/0x2a0
 ? \_\_pfx\_dump\_stack\_lvl+0x10/0x10
 ? \_\_pfx\_\_printk+0x10/0x10
 ? \_\_pfx\_lock\_release+0x10/0x10
 ? \_\_virt\_addr\_valid+0x18c/0x540
 ? \_\_virt\_addr\_valid+0x469/0x540
 print\_report+0x155/0x840
 ? \_\_virt\_addr\_valid+0x18c/0x540
 ? \_\_virt\_addr\_valid+0x469/0x540
 ? \_\_phys\_addr+0xba/0x170
 ? binderfs\_evict\_inode+0x1de/0x2d0
 kasan\_report+0x147/0x180
 ? binderfs\_evict\_inode+0x1de/0x2d0
 binderfs\_evict\_inode+0x1de/0x2d0
 ? \_\_pfx\_binderfs\_evict\_inode+0x10/0x10
 evict+0x524/0x9f0
 ? \_\_pfx\_lock\_release+0x10/0x10
 ? \_\_pfx\_evict+0x10/0x10
 ? do\_raw\_spin\_unlock+0x4d/0x210
 ? \_raw\_spin\_unlock+0x28/0x50
 ? iput+0x697/0x9b0
 \_\_dentry\_kill+0x209/0x660
 ? shrink\_kill+0x8d/0x2c0
 shrink\_kill+0xa9/0x2c0
 shrink\_dentry\_list+0x2e0/0x5e0
 shrink\_dcache\_parent+0xa2/0x2c0
 ? \_\_pfx\_shrink\_dcache\_parent+0x10/0x10
 ? \_\_pfx\_lock\_release+0x10/0x10
 ? \_\_pfx\_do\_raw\_spin\_lock+0x10/0x10
 do\_one\_tree+0x23/0xe0
 shrink\_dcache\_for\_umount+0xa0/0x170
 generic\_shutdown\_super+0x67/0x390
 kill\_litter\_super+0x76/0xb0
 binderfs\_kill\_super+0x44/0x90
 deactivate\_locked\_super+0xb9/0x130
 cleanup\_mnt+0x422/0x4c0
 ? lockdep\_hardirqs\_on+0x9d/0x150
 task\_work\_run+0x1d2/0x260
 ? \_\_pfx\_task\_work\_run+0x10/0x10
 resume\_user\_mode\_work+0x52/0x60
 syscall\_exit\_to\_user\_mode+0x9a/0x120
 do\_syscall\_64+0x103/0x210
 ? asm\_sysvec\_apic\_timer\_interrupt+0x1a/0x20
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0xcac57b
Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 31 f6 e9 05 00 00 00 0f 1f 44 00 00 f3 0f 1e fa b8
RSP: 002b:00007ffecf4226a8 EFLAGS: 00000246 ORIG\_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007ffecf422720 RCX: 0000000000cac57b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffecf422850
RBP: 00007ffecf422850 R08: 0000000028d06ab1 R09: 7fffffffffffffff
R10: 3fffffffffffffff R11: 0000000000000246 R12: 00007ffecf422718
R13: 00007ffecf422710 R14: 00007f478f87b658 R15: 00007ffecf422830
 \</TASK\>

Allocated by task 1705:
 kasan\_save\_track+0x3e/0x80
 \_\_kasan\_kmalloc+0x8f/0xa0
 \_\_kmalloc\_cache\_noprof+0x213/0x3e0
 binderfs\_binder\_device\_create+0x183/0xa80
 binder\_ctl\_ioctl+0x138/0x190
 \_\_x64\_sys\_ioctl+0x120/0x1b0
 do\_syscall\_64+0xf6/0x210
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Freed by task 1705:
 kasan\_save\_track+0x3e/0x80
 kasan\_save\_free\_info+0x46/0x50
 \_\_kasan\_slab\_free+0x62/0x70
 kfree+0x194/0x440
 evict+0x524/0x9f0
 do\_unlinkat+0x390/0x5b0
 \_\_x64\_sys\_unlink+0x47/0x50
 do\_syscall\_64+0xf6/0x210
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

This 'stress-ng' workload causes the concurrent deletions from
'binder\_devices' and so requires full-featured synchronization
to prevent list corruption.

I've found this issue independently but pretty sure that syzbot did
the same, so Reported-by: and Closes: should be applicable here as well.

## Affected and fixed versions

- Linux: \>= e77aff5528a183462714f750e45add6cc71e276a, \< 80ed8ab8efa0d18c03968a2321154f10e2d1a2e3; \>= e77aff5528a183462714f750e45add6cc71e276a, \< aea61a1a77613d4184d7ebe7c1d7cb606458b43b; \>= e77aff5528a183462714f750e45add6cc71e276a, \< 8c0a559825281764061a127632e5ad273f0466ad (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 8c0a559825281764061a127632e5ad273f0466ad or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38176.md
Affected: Linux >= e77aff5528a183462714f750e45add6cc71e276a, < 80ed8ab8efa0d18c03968a2321154f10e2d1a2e3; >= e77aff5528a183462714f750e45add6cc71e276a, < aea61a1a77613d4184d7ebe7c1d7cb606458b43b; >= e77aff5528a183462714f750e45add6cc71e276a, < 8c0a559825281764061a127632e5ad273f0466ad; Linux 6.14
Fixed in: Linux 80ed8ab8efa0d18c03968a2321154f10e2d1a2e3, Linux 8c0a559825281764061a127632e5ad273f0466ad

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-2025-38176 being exploited?

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

### How serious is CVE-2025-38176?

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

### Which versions are affected by CVE-2025-38176?

Linux \>= e77aff5528a183462714f750e45add6cc71e276a, \< 80ed8ab8efa0d18c03968a2321154f10e2d1a2e3; \>= e77aff5528a183462714f750e45add6cc71e276a, \< aea61a1a77613d4184d7ebe7c1d7cb606458b43b; \>= e77aff5528a183462714f750e45add6cc71e276a, \< 8c0a559825281764061a127632e5ad273f0466ad; Linux 6.14.

### Is there a fix for CVE-2025-38176?

Yes. Fixed in Linux 80ed8ab8efa0d18c03968a2321154f10e2d1a2e3, Linux 8c0a559825281764061a127632e5ad273f0466ad. Upgrade Linux to 8c0a559825281764061a127632e5ad273f0466ad or later.

### How do I check if I'm affected by CVE-2025-38176?

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

- patch: <https://git.kernel.org/stable/c/80ed8ab8efa0d18c03968a2321154f10e2d1a2e3>
- patch: <https://git.kernel.org/stable/c/aea61a1a77613d4184d7ebe7c1d7cb606458b43b>
- patch: <https://git.kernel.org/stable/c/8c0a559825281764061a127632e5ad273f0466ad>

## 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-2025-38176>

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