---
title: "CWE-416: Use After Free"
slug: cwe-416
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 256
url: https://morningstarsecurity.com/wiki/cwe-416
exported: 2026-11-25 01:29 UTC
---

# CWE-416: Use After Free
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-416: Use After Free, a snapshot taken on 25 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-416: Use After Free (a snapshot from 25 Nov 2026): https://morningstarsecurity.com/wiki/cwe-416". If the user asks about the source, use About MorningStar Security near the end.

## Summary
Referencing memory after it has been freed can cause a crash or code execution.

## Entry
Use after free (UAF) is a memory-safety vulnerability class where a program references memory after it has been deallocated [1].

### Consequences

The vulnerability can lead to diverse security impacts depending on context and exploitability. Reported consequences include memory corruption [2], crash or denial of service [3], information disclosure [4], and arbitrary code execution [5]. In kernel contexts, attackers may achieve privilege escalation [6] or kernel code execution [7]. Some instances enable container escape [8].

Specific manifestations vary: type confusion when freed objects are reused by different types [9], race conditions exposing freed memory to concurrent access [10], and timing-dependent visibility of stale data through concurrency [11]. Device drivers may access freed memory during removal [12], and asynchronous implementations (such as HTTP/2) can suffer memory corruption when handlers reference deallocated objects [13].

### Technical Details

Use after free occurs when:
- Memory is explicitly freed (via `free()`, `delete`, or similar)
- A pointer to that memory remains accessible
- Code dereferences the stale pointer

The freed memory may be reallocated for different purposes, causing the stale reference to corrupt unrelated data structures. In multithreaded or asynchronous contexts, race conditions can widen the window between deallocation and detection.

Detection tools like KASAN (Kernel Address Sanitizer) identify kernel-space instances [14]. Mitigation strategies include use-after-free-resistant memory management patterns, static analysis, and runtime bounds checking.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-416
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (50 of 256)
1. ZDI-26-571: Linux Kernel Net Scheduler Packet Classifier API Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative · 13 Aug 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-571/
2. Linux Cgroup Namespace Race Could Expose a Freed Root Object · LinuxSecurity: Features · 24 Sep 2026 · https://linuxsecurity.com/features/linux-cgroup-namespace-race-freed-root-object
3. Apache Struts2 Spring Plugin Uses a Previously Closed Resource · Full Disclosure · 2 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/5
4. ZDI-26-660: Adobe Acrobat Reader DC Font Parsing Use-After-Free Information Disclosure Vulnerability · Zero Day Initiative · 10 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-660/
5. ZDI-26-405: X.Org Server GLX Extension Use-After-Free Privilege Escalation Vulnerability · Zero Day Initiative · 15 Jul 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-405/
6. Linux Device Driver Fix Prevents Clock Lookups From Reading Freed Memory · LinuxSecurity: Articles · 1 Oct 2026 · https://linuxsecurity.com/features/linux-device-driver-rtc-provider-use-after-free
7. ZDI-26-835: Linux Kernel Logitech HIDPP Protocol Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative · 29 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-835/
8. CVE-2026-53361 AF_Unix GC vs. MSG_PEEK use-after-free container escape · Hacker News (YC) · 12 Aug 2026 · https://github.com/sgkdev/bad_garbage
9. Static Allocation, Constant Work · Lobsters · 2 Sep 2026 · https://matklad.github.io/2026/09/02/static-allocation-constant-work.html
10. BPF Congestion Control Exposed Two Linux TCP Use-After-Free Paths · LinuxSecurity: Features · 24 Aug 2026 · https://linuxsecurity.com/features/bpf-congestion-control-linux-tcp-use-after-free
11. New Linux Kernel Testing Tool Can Force Race Conditions · LinuxSecurity: Articles · 9 Sep 2026 · https://linuxsecurity.com/features/linux-kernel-testing-maccconc-race-conditions
12. Linux Fixes Two Memory Safety Bugs in DMA Cleanup · LinuxSecurity: Features · 22 Sep 2026 · https://linuxsecurity.com/features/linux-dma-teardown-use-after-free
13. Builders & Breakers | No more AI SLOP reports - Daniel Stenberg on AI reports · STÖK (video) · 30 Oct 2026 · https://www.youtube.com/watch?v=06Qjai8RQKw
14. Proposed Linux IPsec Fix Addresses IP-TFS Packet Cleanup Race · LinuxSecurity: Articles · 2 Oct 2026 · https://linuxsecurity.com/features/linux-ipsec-queue-bug-device-use-after-free

Not cited above. Other coverage that mentions CWE-416: Use After Free, for context only:

15. NGINX HTTP/2 Use-After-Free: CVE-2026-123633 · Unit 42 · 24 Nov 2026 · https://unit42.paloaltonetworks.com/cve-2026-123633-nginx-http2-vulnerability/
16. ZDI-26-1051: (0Day) Soda PDF Desktop App Object Use-After-Free Remote Code Execution Vulnerability · Zero Day Initiative · 24 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-1051/
17. ZDI-26-1102: (Pwn2Own) NVIDIA GPU Display Drivers Resource Manager Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative · 24 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-1102/
18. Schneider Electric EcoStruxure Power Build Rapsody software · CISA Advisories · 23 Nov 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-328-02
19. Syslog Timestamps; GL.iNet GoodCloud Breach; Ghostscript Upload2Shell RCE (CVE-2026-125396) (Nov 23rd 2026) · SANS ISC: Daily Podcast (podcast) · 23 Nov 2026 · https://isc.sans.edu/podcastdetail/10190
20. PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution · The Hacker News · 19 Nov 2026 · https://thehackernews.com/2026/11/php-fixes-7-critical-flaws-including.html
21. Unauthenticated Remote Code Execution in NGINX: CVE-2026-123633 and CVE-2026-123007 · Wiz Research · 18 Nov 2026 · https://www.wiz.io/blog/nginx-http2-rce-vulnerabilities
22. NoisyTCP bug gives Linux servers a remote crash problem 11 years in the making · The Register: Security · 16 Nov 2026 · https://www.theregister.com/security/2026/11/16/noisytcp-bug-gives-linux-servers-a-remote-crash-problem-11-years-in-the-making/5310144
23. ZDI-26-990: open62541 Subscription Use-After-Free Remote Code Execution Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-990/
24. ZDI-26-999: Linux Kernel Proc File System Pagemap Scan Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-999/
25. APPLE-SA-11-09-2026-9 visionOS 27.2.1 · Full Disclosure · 13 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/32
26. APPLE-SA-11-09-2026-7 watchOS 27.2.1 · Full Disclosure · 13 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/30
27. APPLE-SA-11-09-2026-6 macOS Sequoia 15.8.3 · Full Disclosure · 13 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/29
28. Linux Kernel TCP Flaw (CVE-2026-98432) · Okta Security · 13 Nov 2026 · https://sec.okta.com/articles/2026/11/linux-kernel-tcp-flaw-cve-2026-98432/
29. Critical Pre-Auth MongoDB Flaw (CVE-2026-118383) Can Crash Lagging Servers on Failover · The Hacker News · 12 Nov 2026 · https://thehackernews.com/2026/11/critical-pre-auth-mongodb-flaw-cve-2026.html
30. Siemens RUGGEDCOM APE1808 · CISA Advisories · 12 Nov 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-316-05
31. Siemens Building Automation and Energy Products · CISA Advisories · 12 Nov 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-316-01
32. Update Chrome on Linux After an Actively Exploited XML Flaw Has Been Reported by Google · LinuxSecurity: Articles · 11 Nov 2026 · https://linuxsecurity.com/news/desktop-security/how-to-update-chrome-linux
33. Lessons from 59 Linux Kernel Bug Reports · Microsoft Security Blog · 11 Nov 2026 · https://www.microsoft.com/en-us/security/blog/2026/11/11/lessons-from-59-linux-kernel-bug-reports/
34. CISA Adds Six Known Exploited Vulnerabilities to Catalog · CISA Advisories · 10 Nov 2026 · https://www.cisa.gov/news-events/alerts/2026/11/10/cisa-adds-six-known-exploited-vulnerabilities-catalog
35. Chrome zero-day whack-a-mole continues as 2026 tally hits 8 · The Register: Security · 10 Nov 2026 · https://www.theregister.com/security/2026/11/10/chrome-zero-day-whack-a-mole-continues-as-2026-tally-hits-8/5308732
36. Google Issues Chrome Security Update for Eighth Actively Exploited Zero-Day of 2026 · The Hacker News · 10 Nov 2026 · https://thehackernews.com/2026/11/google-issues-chrome-security-update.html
37. PHP2Shell — Deep Dive · Lobsters · 8 Nov 2026 · https://djad04.github.io/php2shell-deep-dive/
38. This Week in Security: More Linux Bugs, Biggest Crypto Theft Ever, Prusa Printers, Residential Proxies · Hackaday · 6 Nov 2026 · https://hackaday.com/2026/11/06/this-week-in-security-more-linux-bugs-biggest-crypto-theft-ever-prusa-printers-residential-proxies/
39. Practical guide on out of tree mitigations on Linux · Lobsters · 6 Nov 2026 · https://clehaxze.tw/gemlog/2026/11-04-practical-guide-on-out-of-tree-mitigations-on-linux.gmi
40. ZDI-26-893: Trimble SketchUp SKP File Parsing Use-After-Free Remote Code Execution Vulnerability · Zero Day Initiative · 6 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-893/
41. ZDI-26-872: (0Day) Ashlar-Vellum Cobalt XE File Parsing Use-After-Free Remote Code Execution Vulnerability · Zero Day Initiative · 4 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-872/
42. ZDI-26-874: (0Day) Ashlar-Vellum Cobalt XE File Parsing Use-After-Free Remote Code Execution Vulnerability · Zero Day Initiative · 4 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-874/
43. Red Hat Patches 9.8-Rated Linux TCP RCE Flaw While Ubuntu Releases Fixes for Testing · The Hacker News · 3 Nov 2026 · https://thehackernews.com/2026/11/red-hat-patches-98-rated-linux-tcp-rce.html
44. Linux Kernel TCP Flaw With 9.8 CVSS Score Affects Ubuntu, Red Hat and Other Distributions · Lobsters · 30 Oct 2026 · https://thehackernews.com/2026/10/linux-kernel-tcp-flaw-with-98-cvss.html
45. Protecting against CVE-2026-98432 · Lobsters · 30 Oct 2026 · https://groups.google.com/g/golang-announce/c/PCoQcdxoScw
46. Anthropic AI model finds Linux kernel bug that leads to remote root access · CSO Online · 30 Oct 2026 · https://www.csoonline.com/article/4242724/anthropic-ai-model-finds-linux-kernel-bug-that-leads-to-remote-root-access.html
47. Linux Kernel TCP Flaw With 9.8 CVSS Score Affects Ubuntu, Red Hat and Other Distributions · The Hacker News · 29 Oct 2026 · https://thehackernews.com/2026/10/linux-kernel-tcp-flaw-with-98-cvss.html
48. Obstacles to Weaponizing PHP2Shell Likely Constrain Immediate Widespread Exploitation · CrowdStrike Counter Adversary Operations · 29 Oct 2026 · https://www.crowdstrike.com/en-us/blog/obstacles-to-weaponizing-php2shell-likely-constrain-exploitation/
49. ZDI-26-836: Linux Kernel CIFS File System Use-After-Free Privilege Escalation Vulnerability · Zero Day Initiative · 29 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-836/
50. ZDI-26-837: Linux Kernel XFRM Subsystem Use-After-Free Local Privilege Escalation Vulnerability · Zero Day Initiative · 29 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-837/

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-416 taken 25 Nov 2026 01:29 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-416
