CWE-416: Use After Free
18 real-world CVEs classified as CWE-416: Use After Free. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2025-49844critical 9.92025
RediShell Lua parser use-after-free
Redis failed to root a Lua parser string across garbage collection, allowing a crafted authenticated script to reclaim a still-referenced object and potentially execute code.
- CVE-2024-9680critical 9.82024
Firefox animation timeline: reentrant Tick leaves dangling removals
AnimationTimeline::Tick retained raw Animation pointers across callback-capable animation processing, so script could cancel and release an animation before the deferred removal loop used its dangling pointer.
- CVE-2024-22252critical 9.32024
VMware XHCI: mutable slot identity strands a live USB request
A privileged guest can readdress an XHCI slot while non-control endpoint state survives, making transfer-ring cleanup resolve the wrong virtual USB device and leaving a live URB with a pointer into the freed ring.
- CVE-2024-1086high 7.82024
Linux nf_tables double-free via unvalidated verdict (CVE-2024-1086)
A packet-verdict validator checks only the masked action bits, so a DROP verdict carrying a positive error field slips through; the drop path then frees the packet and returns that positive value as an accept, freeing it a second time.
- CVE-2023-3269high 7.82023
StackRot: maple-tree VMA node freed under the read lock
During stack expansion the kernel replaces a node in the RCU-safe VMA tree and frees the old node, while holding only the shared read lock, so a concurrent read-lock-only lookup can dereference the freed node.
- CVE-2021-0920medium 6.42021
AF_UNIX MSG_PEEK garbage-collection race
A MSG_PEEK receive could duplicate SCM_RIGHTS file references without synchronizing with AF_UNIX garbage collection, allowing GC to free a message buffer that the peeking receiver still used.
- CVE-2020-9715high 7.82020
Adobe Reader Data ESObject stale-cache use-after-free
The Data object cache inserts an ANSI name but attempts deletion with a Unicode name, leaving a freed object address available to a later lookup.
- CVE-2020-1380high 8.82020
Internet Explorer JScript9: aliased argument enables detached-buffer use
JScript9 optimized a typed-array store under the stale assumption that a named argument remained numeric, even though arguments.push could replace that aliased formal with an object whose numeric conversion detached the destination buffer.
- CVE-2020-0674high 7.52020
Internet Explorer JScript: named sort-callback arguments evade GC
Legacy JScript failed to trace named formal parameters during an Array.sort callback, so an object referenced only through a parameter could be reclaimed and then used through the stale VAR slot.
- CVE-2019-13720high 8.82019
Chrome WebAudio: Convolver buffer reset races the audio thread
The main thread could free a ConvolverNode's reverb engine without taking the same mutex used by the audio rendering thread, leaving Process to call through reclaimed storage.
- CVE-2019-2215high 7.82019
Bad Binder: freed binder thread still on an epoll waitlist
A device thread hands its wait queue to epoll, then a thread-exit path frees the thread without removing that registration, so epoll cleanup later dereferences freed kernel memory.
- CVE-2019-1367high 7.52019
Internet Explorer JScript: Array.sort callback arguments escape GC tracking
A value referenced only through the arguments object of an Array.sort callback could be reclaimed by legacy JScript's garbage collector and then accessed through the stale slot.
- CVE-2019-0708critical 9.82019
BlueKeep: Windows RDP MS_T120 pre-auth use-after-free (CVE-2019-0708)
RDP binds the internal channel MS_T120 to a fixed slot, but a client can bind that same name to a second slot too. On teardown the channel object is freed once while the duplicate binding still points at it, so a later channel operation dereferences a dangling pointer: a pre-authentication, wormable use-after-free. So dangerous that Microsoft shipped out-of-band patches even for out-of-support Windows XP and Server 2003, and the NSA issued a rare public advisory urging patching for fear of a WannaCry-scale worm.
- CVE-2019-5786medium 6.52019
Chrome FileReader: partial results share one transferable backing store
Repeated FileReader result access during a narrow asynchronous-progress window can create distinct JavaScript ArrayBuffer wrappers over the same backing allocation, allowing a transfer of one wrapper to leave another with dangling storage.
- CVE-2018-8174high 7.52018
Double Kill: VBScript Class_Terminate use-after-free
A re-entrant class destructor can create a new reference after the engine's only reference-count check, yet the release path still frees the object and leaves the new reference dangling.
- CVE-2017-9798high 7.52017
Optionsbleed: a request-pool method enters a global table
An unrecognized method in a per-directory Limit directive was registered globally using memory owned by temporary `.htaccess` processing. After that pool was freed, an OPTIONS response walked stale method-name pointers and could reflect process memory in its Allow header.
- CVE-2016-4657high 8.82016
Trident: JavaScriptCore descriptor use-after-free
A ninth non-cell argument moves a descriptor buffer to the heap without registering it as a garbage-collector root, so a conversion callback can collect objects that later descriptor processing still uses.
- CVE-2015-5119critical 9.82015
Hacking Team Flash ByteArray valueOf use-after-free
ByteArray element assignment retained the native buffer pointer across attacker-defined numeric coercion, allowing valueOf to reallocate the ByteArray before the pending write used the stale pointer.