<story><title>Linux Kernel Through 4.20.10 Found Vulnerable to Arbitrary Code Execution</title><url>https://coocoor.com/advisory/cve/CVE-2019-8912</url></story><parent_chain><item><author>doctorpangloss</author><text>Is there a reason the kernel style doesn&amp;#x27;t always require curly braces after &amp;quot;if&amp;quot; statements?</text></item><item><author>ptrincr</author><text>Looks like this is the fix:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;torvalds&amp;#x2F;linux&amp;#x2F;commit&amp;#x2F;9060cb719e61b685ec0102574e10337fa5f445ea&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;torvalds&amp;#x2F;linux&amp;#x2F;commit&amp;#x2F;9060cb719e61b685ec0...&lt;/a&gt;</text></item></parent_chain><comment><author>gvb</author><text>Note that the problem was not missing curly braces, it was the missing line&lt;p&gt;&lt;pre&gt;&lt;code&gt;    sock-&amp;gt;sk = NULL;
&lt;/code&gt;&lt;/pre&gt;
The curly braces were added as well because the single statement &amp;quot;if&amp;quot; turned into a two statement block.</text></comment>
<story><title>Linux Kernel Through 4.20.10 Found Vulnerable to Arbitrary Code Execution</title><url>https://coocoor.com/advisory/cve/CVE-2019-8912</url></story><parent_chain><item><author>doctorpangloss</author><text>Is there a reason the kernel style doesn&amp;#x27;t always require curly braces after &amp;quot;if&amp;quot; statements?</text></item><item><author>ptrincr</author><text>Looks like this is the fix:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;torvalds&amp;#x2F;linux&amp;#x2F;commit&amp;#x2F;9060cb719e61b685ec0102574e10337fa5f445ea&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;torvalds&amp;#x2F;linux&amp;#x2F;commit&amp;#x2F;9060cb719e61b685ec0...&lt;/a&gt;</text></item></parent_chain><comment><author>a-wu</author><text>&amp;quot;Do not unnecessarily use braces where a single statement will do.&amp;quot;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.kernel.org&amp;#x2F;doc&amp;#x2F;html&amp;#x2F;v4.10&amp;#x2F;process&amp;#x2F;coding-style.html#placing-braces-and-spaces&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.kernel.org&amp;#x2F;doc&amp;#x2F;html&amp;#x2F;v4.10&amp;#x2F;process&amp;#x2F;coding-style.h...&lt;/a&gt;</text></comment>