logo

MindshaRE: Using Binary Ninja API to Detect Potential Use-After-Free Vulnerabilities

ID: 15378870-e578-5690-9c94-68de0aa31b41

STIX ID: report--15378870-e578-5690-9c94-68de0aa31b41

Feed Name: Zero Day Initiative (ZDI) Blog

Date Published: 2025-03-27

Date Updated: 2026-05-01

Author: Reno Robert

...
...

This document describes an inter-procedural static analysis approach to detect use-after-free and double-free conditions by analyzing reachability between “Free” and “Use” basic blocks within the last common function on the call stack, while mitigating loop-induced false positives by removing incoming edges to allocator blocks. It also presents a method to automatically discover allocator and deallocator wrappers (e.g., around malloc/free) using Binary Ninja’s dataflow (EntryValue) and def–use chains, enabling enrichment of a JSON-driven configuration and demonstrating results on OpenSLP.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.