Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
CWE-416: Use After Free
Referencing memory after it has been freed can cause a crash or code execution.
Use after free (UAF) is a memory-safety vulnerability where a program references memory after it has been deallocated 1. The freed memory may be reallocated for other purposes, causing the program to read or modify unintended data.
Consequences
UAF vulnerabilities enable multiple attack outcomes depending on context and exploitation technique:
Code Execution: Attackers can achieve arbitrary code execution 2, including kernel-level execution 3 4. Type confusion—where freed memory is reused for objects of different types—can lead to arbitrary code execution 5. Information disclosure combined with UAF can enable code execution when chained.
Privilege Escalation: Kernel-space UAF frequently enables privilege escalation, sometimes combined with arbitrary kernel code execution. Container escape has been demonstrated in specific contexts.
Memory Corruption: UAF causes memory corruption, which may manifest as crashes, undefined behavior, or denial of service. Concurrent access patterns can create race conditions where stale memory access becomes visible through timing.
Information Disclosure: Freed memory may retain sensitive data accessible through UAF, enabling information leaks.
Specific Manifestations
Concurrency-related UAF occurs when synchronization mechanisms fail—such as mismatched RCU grace-period domains, concurrent BPF updates accessing freed congestion-control memory, or producer-consumer races on ring contexts. Device driver UAF can occur during removal when handlers still reference freed objects. Kernel detection tools like KASAN identify UAF through memory access tracking.
In the news 5
- ZDI-26-571: Linux Kernel Net Scheduler Packet Classifier API Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative
- ZDI-26-405: X.Org Server GLX Extension Use-After-Free Privilege Escalation Vulnerability · Zero Day Initiative
- ZDI-26-683: Linux Kernel IPv6 VTI Subsystem Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative
- ZDI-26-835: Linux Kernel Logitech HIDPP Protocol Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative
- Static Allocation, Constant Work · Lobsters
Sign in for the full story cards: summaries, tags and starring.