<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://kernsec.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Bug_Classes%2FUninitialized_variables</id>
	<title>Bug Classes/Uninitialized variables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://kernsec.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Bug_Classes%2FUninitialized_variables"/>
	<link rel="alternate" type="text/html" href="http://kernsec.org/wiki/index.php?title=Bug_Classes/Uninitialized_variables&amp;action=history"/>
	<updated>2026-05-07T12:03:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>http://kernsec.org/wiki/index.php?title=Bug_Classes/Uninitialized_variables&amp;diff=3733&amp;oldid=prev</id>
		<title>KeesCook: Created page with &quot;= Details = When variables (on either stack or heap) are used without being explicitly initialized, behavior is &quot;undefined&quot;. In reality, &quot;uninitialized&quot; just means &quot;still has ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://kernsec.org/wiki/index.php?title=Bug_Classes/Uninitialized_variables&amp;diff=3733&amp;oldid=prev"/>
		<updated>2015-11-04T22:44:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Details = When variables (on either stack or heap) are used without being explicitly initialized, behavior is &amp;quot;undefined&amp;quot;. In reality, &amp;quot;uninitialized&amp;quot; just means &amp;quot;still has ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Details =&lt;br /&gt;
When variables (on either stack or heap) are used without being explicitly initialized, behavior is &amp;quot;undefined&amp;quot;. In reality, &amp;quot;uninitialized&amp;quot; just means &amp;quot;still has the prior value&amp;quot;. When an attacker can control prior values, this can lead to exploitation or leaks, either through regular techniques or through &amp;quot;data-only&amp;quot; attacks.&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
&lt;br /&gt;
* [https://outflux.net/slides/2011/defcon/kernel-exploitation.pdf Kernel Exploitation via Uninitialized Stack]&lt;br /&gt;
&lt;br /&gt;
= Mitigations =&lt;br /&gt;
&lt;br /&gt;
* clear kernel stack between system calls (e.g. PAX_MEMORY_STACKLEAK)&lt;br /&gt;
* instrument compiler to fully initialize all structures (e.g. PAX_MEMORY_STRUCTLEAK)&lt;/div&gt;</summary>
		<author><name>KeesCook</name></author>
	</entry>
</feed>