<?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://vulnerability.circl.lu</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>Wed, 30 Sep 2026 07:39:41 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-74577 — net: mpls: initialize rtm_tos in mpls_getroute()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-74577</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: mpls: initialize rtm_tos in mpls_getroute()&lt;/p&gt;
&lt;p&gt;mpls_getroute() builds the RTM_NEWROUTE reply to an RTM_GETROUTE
request by filling a struct rtmsg allocated from an skb whose data
area is not zeroed (alloc_skb(NLMSG_GOODSIZE, ...)). It sets every
field of the header except rtm_tos:&lt;/p&gt;
&lt;p&gt;r = nlmsg_data(nlh);
	r-&amp;gt;rtm_family	 = AF_MPLS;
	r-&amp;gt;rtm_dst_len	= 20;
	r-&amp;gt;rtm_src_len	= 0;
	r-&amp;gt;rtm_table	= RT_TABLE_MAIN;
	r-&amp;gt;rtm_type	= RTN_UNICAST;
	r-&amp;gt;rtm_scope	= RT_SCOPE_UNIVERSE;
	r-&amp;gt;rtm_protocol = rt-&amp;gt;rt_protocol;
	r-&amp;gt;rtm_flags	= 0;&lt;/p&gt;
&lt;p&gt;struct rtmsg has no padding, so the one uninitialised byte rtm_tos
(offset 3) is copied straight to user space on recvmsg(), leaking a
byte of uninitialised heap memory. This is in contrast to
mpls_dump_route(), which fills the very same header and does set
rtm_tos = 0.&lt;/p&gt;
&lt;p&gt;Initialize rtm_tos to 0, matching mpls_dump_route().&lt;/p&gt;
&lt;p&gt;Reproduced with KMSAN by adding an MPLS route and issuing a
non-RTM_F_FIB_MATCH RTM_GETROUTE for its label:&lt;/p&gt;
&lt;p&gt;BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x36c/0x33f0
   _copy_to_iter+0x36c/0x33f0
   __skb_datagram_iter+0x196/0x12c0
   skb_copy_datagram_iter+0x5b/0x210
   netlink_recvmsg+0x37b/0xef0
   ...
  Uninit was created at:
   __alloc_skb+0x8ca/0x10e0
   mpls_getroute+0x1280/0x3a40
   rtnetlink_rcv_msg+0x1138/0x15a0
   ...
  Byte 19 of 64 is uninitialized&lt;/p&gt;
&lt;p&gt;(byte 19 = nlmsghdr(16) + rtmsg offset 3 = rtm_tos)&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: mpls: initialize rtm_tos in mpls_getroute()&lt;/p&gt;
&lt;p&gt;mpls_getroute() builds the RTM_NEWROUTE reply to an RTM_GETROUTE
request by filling a struct rtmsg allocated from an skb whose data
area is not zeroed (alloc_skb(NLMSG_GOODSIZE, ...)). It sets every
field of the header except rtm_tos:&lt;/p&gt;
&lt;p&gt;r = nlmsg_data(nlh);
	r-&amp;gt;rtm_family	 = AF_MPLS;
	r-&amp;gt;rtm_dst_len	= 20;
	r-&amp;gt;rtm_src_len	= 0;
	r-&amp;gt;rtm_table	= RT_TABLE_MAIN;
	r-&amp;gt;rtm_type	= RTN_UNICAST;
	r-&amp;gt;rtm_scope	= RT_SCOPE_UNIVERSE;
	r-&amp;gt;rtm_protocol = rt-&amp;gt;rt_protocol;
	r-&amp;gt;rtm_flags	= 0;&lt;/p&gt;
&lt;p&gt;struct rtmsg has no padding, so the one uninitialised byte rtm_tos
(offset 3) is copied straight to user space on recvmsg(), leaking a
byte of uninitialised heap memory. This is in contrast to
mpls_dump_route(), which fills the very same header and does set
rtm_tos = 0.&lt;/p&gt;
&lt;p&gt;Initialize rtm_tos to 0, matching mpls_dump_route().&lt;/p&gt;
&lt;p&gt;Reproduced with KMSAN by adding an MPLS route and issuing a
non-RTM_F_FIB_MATCH RTM_GETROUTE for its label:&lt;/p&gt;
&lt;p&gt;BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x36c/0x33f0
   _copy_to_iter+0x36c/0x33f0
   __skb_datagram_iter+0x196/0x12c0
   skb_copy_datagram_iter+0x5b/0x210
   netlink_recvmsg+0x37b/0xef0
   ...
  Uninit was created at:
   __alloc_skb+0x8ca/0x10e0
   mpls_getroute+0x1280/0x3a40
   rtnetlink_rcv_msg+0x1138/0x15a0
   ...
  Byte 19 of 64 is uninitialized&lt;/p&gt;
&lt;p&gt;(byte 19 = nlmsghdr(16) + rtmsg offset 3 = rtm_tos)&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-74577</guid>
    </item>
  </channel>
</rss>
