{"id":117,"date":"2026-11-15T13:49:51","date_gmt":"2026-11-15T02:49:51","guid":{"rendered":"https:\/\/davidshoon.com\/?p=117"},"modified":"2026-11-15T13:49:51","modified_gmt":"2026-11-15T02:49:51","slug":"c-c-use-after-free-control-flow-graph-mapper","status":"publish","type":"post","link":"https:\/\/davidshoon.com\/?p=117","title":{"rendered":"C\/C++ Use-after-free Control-Flow Graph Mapper"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Github project, vibe coded:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/davidshoon\/uaf-cfg-mapper\">https:\/\/github.com\/davidshoon\/uaf-cfg-mapper<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The idea is to use such a mapper to automatically identify use-after-frees.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After which, another modification (yet to be done) could be made which identifies where its &#8220;allocated&#8221; a new chunk after the free, and but before being &#8220;used-after-free&#8221;, thereby enabling analysis of potential read\/write primitives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After which, applying heap grooming techniques, it could lead to an exploit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The final result: auto use-after-free exploit finder\/maker. No need for LLMs\/AI to do it for you. Well, that&#8217;s the idea, anyway.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Github project, vibe coded: https:\/\/github.com\/davidshoon\/uaf-cfg-mapper The idea is to use such a mapper to automatically identify use-after-frees. After which, another modification (yet to be done) could be made which identifies where its &#8220;allocated&#8221; a new chunk after the free, and but before being &#8220;used-after-free&#8221;, thereby enabling analysis of potential read\/write primitives. After which, applying heap [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/davidshoon.com\/index.php?rest_route=\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidshoon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidshoon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidshoon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidshoon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":1,"href":"https:\/\/davidshoon.com\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":118,"href":"https:\/\/davidshoon.com\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions\/118"}],"wp:attachment":[{"href":"https:\/\/davidshoon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidshoon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidshoon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}