CVE-2026-74577
net: mpls: initialize rtm_tos in mpls_getroute()
Reported by linux · Published August 15, 2026
In the Linux kernel, the following vulnerability has been resolved: net: mpls: initialize rtm_tos in mpls_getroute() 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: r = nlmsg_data(nlh); r->rtm_family = AF_MPLS; r->rtm_dst_len = 20; r->rtm_src_len = 0; r->rtm_table = RT_TABLE_MAIN; r->rtm_type = RTN_UNICAST; r->rtm_scope = RT_SCOPE_UNIVERSE; r->rtm_protocol = rt->rt_protocol; r->rtm_flags = 0; 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. Initialize rtm_tos to 0, matching mpls_dump_route(). Reproduced with KMSAN by adding an MPLS route and issuing a non-RTM_F_FIB_MATCH RTM_GETROUTE for its label: 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 (byte 19 = nlmsghdr(16) + rtmsg offset 3 = rtm_tos)
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | ba56f88aab18d982f2a21f11390f4d8a8897782a, 466b474a8deb0c93b5280c6d261e5eda6482eca7, 4.13 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 397fc9e5cefee0c33b86811fbddb0decb7288c52, 397fc9e5cefee0c33b86811fbddb0decb7288c52, 397fc9e5cefee0c33b86811fbddb0decb7288c52 |
| Linux | Linux | 4.13, 0, 5.10.265 |
| Linux | Linux | 397fc9e5cefee0c33b86811fbddb0decb7288c52, 397fc9e5cefee0c33b86811fbddb0decb7288c52, 397fc9e5cefee0c33b86811fbddb0decb7288c52 |
| amazon:2023 | kernel-livepatch-6.1.186-228.374 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| linux | linux_kernel | 4.13, 4.13, 4.13 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.44-99.149 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | bpftool | 0 |
…and 18 more
Timeline
- Aug 15, 2026 CVE Published
- Aug 16, 2026 EPSS Score (12 in total, the first dated here)
- Aug 19, 2026 Security Advisory
- Nov 6, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-74577
vulnetix vdb fixes CVE-2026-74577
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-74577/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart