CVE-2026-74577

Source
https://cve.org/CVERecord?id=CVE-2026-74577
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74577.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-74577
Downstream
Published
2026-08-15T12:28:14.408Z
Modified
2026-08-18T03:30:51.219361237Z
Summary
net: mpls: initialize rtm_tos in mpls_getroute()
Details

In the Linux kernel, the following vulnerability has been resolved:

net: mpls: initialize rtmtos in mplsgetroute()

mplsgetroute() builds the RTMNEWROUTE reply to an RTMGETROUTE request by filling a struct rtmsg allocated from an skb whose data area is not zeroed (allocskb(NLMSGGOODSIZE, ...)). It sets every field of the header except rtmtos:

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 rtmtos (offset 3) is copied straight to user space on recvmsg(), leaking a byte of uninitialised heap memory. This is in contrast to mplsdumproute(), which fills the very same header and does set rtmtos = 0.

Initialize rtmtos to 0, matching mplsdump_route().

Reproduced with KMSAN by adding an MPLS route and issuing a non-RTMFFIBMATCH RTMGETROUTE for its label:

BUG: KMSAN: kernel-infoleak in copytoiter+0x36c/0x33f0 copytoiter+0x36c/0x33f0 __skbdatagramiter+0x196/0x12c0 skbcopydatagramiter+0x5b/0x210 netlinkrecvmsg+0x37b/0xef0 ... Uninit was created at: __allocskb+0x8ca/0x10e0 mplsgetroute+0x1280/0x3a40 rtnetlinkrcvmsg+0x1138/0x15a0 ... Byte 19 of 64 is uninitialized

(byte 19 = nlmsghdr(16) + rtmsg offset 3 = rtm_tos)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74577.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
397fc9e5cefee0c33b86811fbddb0decb7288c52
Fixed
95651461cf77cc6590fa08c87667717e5dcfa55d
Fixed
1fea5ff0eb4aa7e951bb3d380248566c473aa377
Fixed
a5cdd2407dd890f741f59b8367e4c6c101cce154
Fixed
2dc2fffc704a4365cae1aae078ba62223aaeff93
Fixed
295dd295e2137e10e9a5b1891d97e0f08de76f03

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74577.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.13.0
Fixed
6.6.151
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.103
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.44
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74577.json"