<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 16:08:34 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50780 — net: fix UAF issue in nfqnl_nf_hook_drop() when ops_init() failed</title>
      <link>https://db.gcve.eu/vuln/cve-2022-50780</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;net: fix UAF issue in nfqnl_nf_hook_drop() when ops_init() failed&lt;/p&gt;
&lt;p&gt;When the ops_init() interface is invoked to initialize the net, but
ops-&amp;gt;init() fails, data is released. However, the ptr pointer in
net-&amp;gt;gen is invalid. In this case, when nfqnl_nf_hook_drop() is invoked
to release the net, invalid address access occurs.&lt;/p&gt;
&lt;p&gt;The process is as follows:
setup_net()
	ops_init()
		data = kzalloc(...)   ---&amp;gt; alloc &amp;#34;data&amp;#34;
		net_assign_generic()  ---&amp;gt; assign &amp;#34;date&amp;#34; to ptr in net-&amp;gt;gen
		...
		ops-&amp;gt;init()           ---&amp;gt; failed
		...
		kfree(data);          ---&amp;gt; ptr in net-&amp;gt;gen is invalid
	...
	ops_exit_list()
		...
		nfqnl_nf_hook_drop()
			*q = nfnl_queue_pernet(net) ---&amp;gt; q is invalid&lt;/p&gt;
&lt;p&gt;The following is the Call Trace information:
BUG: KASAN: use-after-free in nfqnl_nf_hook_drop+0x264/0x280
Read of size 8 at addr ffff88810396b240 by task ip/15855
Call Trace:
&amp;lt;TASK&amp;gt;
dump_stack_lvl+0x8e/0xd1
print_report+0x155/0x454
kasan_report+0xba/0x1f0
nfqnl_nf_hook_drop+0x264/0x280
nf_queue_nf_hook_drop+0x8b/0x1b0
__nf_unregister_net_hook+0x1ae/0x5a0
nf_unregister_net_hooks+0xde/0x130
ops_exit_list+0xb0/0x170
setup_net+0x7ac/0xbd0
copy_net_ns+0x2e6/0x6b0
create_new_namespaces+0x382/0xa50
unshare_nsproxy_namespaces+0xa6/0x1c0
ksys_unshare+0x3a4/0x7e0
__x64_sys_unshare+0x2d/0x40
do_syscall_64+0x35/0x80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
&amp;lt;/TASK&amp;gt;&lt;/p&gt;
&lt;p&gt;Allocated by task 15855:
kasan_save_stack+0x1e/0x40
kasan_set_track+0x21/0x30
__kasa…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;net: fix UAF issue in nfqnl_nf_hook_drop() when ops_init() failed&lt;/p&gt;
&lt;p&gt;When the ops_init() interface is invoked to initialize the net, but
ops-&amp;gt;init() fails, data is released. However, the ptr pointer in
net-&amp;gt;gen is invalid. In this case, when nfqnl_nf_hook_drop() is invoked
to release the net, invalid address access occurs.&lt;/p&gt;
&lt;p&gt;The process is as follows:
setup_net()
	ops_init()
		data = kzalloc(...)   ---&amp;gt; alloc &amp;#34;data&amp;#34;
		net_assign_generic()  ---&amp;gt; assign &amp;#34;date&amp;#34; to ptr in net-&amp;gt;gen
		...
		ops-&amp;gt;init()           ---&amp;gt; failed
		...
		kfree(data);          ---&amp;gt; ptr in net-&amp;gt;gen is invalid
	...
	ops_exit_list()
		...
		nfqnl_nf_hook_drop()
			*q = nfnl_queue_pernet(net) ---&amp;gt; q is invalid&lt;/p&gt;
&lt;p&gt;The following is the Call Trace information:
BUG: KASAN: use-after-free in nfqnl_nf_hook_drop+0x264/0x280
Read of size 8 at addr ffff88810396b240 by task ip/15855
Call Trace:
&amp;lt;TASK&amp;gt;
dump_stack_lvl+0x8e/0xd1
print_report+0x155/0x454
kasan_report+0xba/0x1f0
nfqnl_nf_hook_drop+0x264/0x280
nf_queue_nf_hook_drop+0x8b/0x1b0
__nf_unregister_net_hook+0x1ae/0x5a0
nf_unregister_net_hooks+0xde/0x130
ops_exit_list+0xb0/0x170
setup_net+0x7ac/0xbd0
copy_net_ns+0x2e6/0x6b0
create_new_namespaces+0x382/0xa50
unshare_nsproxy_namespaces+0xa6/0x1c0
ksys_unshare+0x3a4/0x7e0
__x64_sys_unshare+0x2d/0x40
do_syscall_64+0x35/0x80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
&amp;lt;/TASK&amp;gt;&lt;/p&gt;
&lt;p&gt;Allocated by task 15855:
kasan_save_stack+0x1e/0x40
kasan_set_track+0x21/0x30
__kasa…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-50780</guid>
    </item>
  </channel>
</rss>
