Linux Kernel Binder Subsystem Use-After-Free Vulnerability in BinderFS

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's binder subsystem, specifically within the binderfs file system. This vulnerability arises in the 'binderfs_evict_inode' function, where improper memory management can lead to a slab-use-after-free condition. The issue was observed while running a 'stress-ng' workload that targeted binderfs, under a kernel version that had KASAN (Kernel Address Sanitizer) enabled. The workload caused concurrent deletions from 'binder_devices', highlighting the need for proper synchronization to prevent memory corruption.

Impact

Exploitation of this vulnerability can lead to memory corruption issues, allowing for potential arbitrary code execution or causing the system to become unresponsive.

Reproduction

The vulnerability can be reproduced by running the 'stress-ng' tool with the '--binderfs' option, targeting version 16, and a timeout of 300 seconds. This should be done under a KASAN-enabled kernel, which will help expose the use-after-free condition in the binderfs file system.

Added: Jul 4, 2025, 11:17 AM
Updated: Jul 4, 2025, 11:17 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
0.2
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.