{"id":41013,"date":"2026-10-19T00:31:49","date_gmt":"2026-10-18T16:31:49","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98541"},"modified":"2026-10-19T00:31:49","modified_gmt":"2026-10-18T16:31:49","slug":"cve-2026-98541","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98541","title":{"rendered":"CVE-2026-98541 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nfou: reject omitted F"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>fou: reject omitted FOU_ATTR_IPPROTO on FOU_ENCAP_DIRECT<\/p>\n<p>Commit 7a9bc9e3f423 (&#8220;fou: Don&#8217;t allow 0 for FOU_ATTR_IPPROTO.&#8221;) added<br \/>\nNLA_POLICY_MIN(NLA_U8, 1) to fou_nl_policy[FOU_ATTR_IPPROTO], which<br \/>\nrejects an explicitly supplied FOU_ATTR_IPPROTO == 0 attribute with<br \/>\n-ERANGE.<\/p>\n<p>However, FOU_ATTR_IPPROTO is an optional netlink attribute. When a user<br \/>\nsends FOU_CMD_ADD with FOU_ATTR_TYPE set to FOU_ENCAP_DIRECT and omits<br \/>\nFOU_ATTR_IPPROTO entirely, nla_policy validation succeeds and<br \/>\nparse_nl_config() leaves cfg-&gt;protocol as 0 (from memset(cfg, 0,<br \/>\nsizeof(*cfg))). fou_create() then creates a FOU_ENCAP_DIRECT socket with<br \/>\nfou-&gt;protocol == 0.<\/p>\n<p>In fou_udp_recv(), returning -fou-&gt;protocol to udp_queue_rcv_one_skb()<br \/>\ntriggers IP protocol resubmission when fou-&gt;protocol &gt; 0, whereas<br \/>\nreturning 0 tells the UDP tunnel layer that the skb was consumed without<br \/>\nfreeing it. When fou-&gt;protocol == 0, every packet received on the socket<br \/>\nreturns 0 from fou_udp_recv() and leaks the sk_buff.<\/p>\n<p>Reject FOU_ENCAP_DIRECT when !cfg-&gt;protocol in fou_create() so that<br \/>\ncreating a direct encapsulation port without FOU_ATTR_IPPROTO fails with<br \/>\n-EINVAL while leaving FOU_CMD_DEL and FOU_CMD_GET (which share<br \/>\nparse_nl_config()) unaffected.<\/p>\n<p>Tested in QEMU against Linux 7.3.0-rc3 by sending a FOU_CMD_ADD Generic<br \/>\nNetlink request with FOU_ATTR_PORT = 5555 and FOU_ATTR_TYPE =<br \/>\nFOU_ENCAP_DIRECT while omitting FOU_ATTR_IPPROTO. On the unfixed kernel,<br \/>\nFOU_CMD_ADD succeeds (err = 0), FOU_CMD_GET reports fou-&gt;type = 1 and<br \/>\nfou-&gt;protocol = 0, and sending 4000 UDP packets to 127.0.0.1:5555 leaks<br \/>\nall 4000 sk_buffs (SUnreclaim in \/proc\/meminfo grows from 41456 kB to<br \/>\n59008 kB, +17552 kB); with this patch applied, FOU_CMD_ADD is rejected<br \/>\nwith -EINVAL (-22).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>fou: reject omitted FOU_ATTR_IPPROTO on FOU_ENCAP_DIRECT<\/p>\n<p>Commit 7a9bc9e3f423 (&#8220;fou: Don&#8217;t allow 0 for FOU_ATTR_IPPROTO.&#8221;) added<br \/>\nNL<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41013","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}