Kernel Kit / Infix / v26.10.0latest
CVE-2026-43042
7.1highlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
mpls: add seqcount to protect the platform_label{,s} pair
The RCU-protected codepaths (mpls_forward, mpls_dump_routes) can have an inconsistent view of platform_labels vs platform_label in case of a concurrent resize (resize_platform_label_table, under platform_mutex). This can lead to OOB accesses.
This patch adds a seqcount, so that we get a consistent snapshot.
Note that mpls_label_ok is also susceptible to this, so the check against RTA_DST in rtm_to_route_config, done outside platform_mutex, is not sufficient. This value gets passed to mpls_label_ok once more in both mpls_route_add and mpls_route_del, so there is no issue, but that additional check must not be removed.
Published 2026-05-01NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
References 5
- git.kernel.org/stable/c/0d377825548fe598595b5a5fa4a309fb593d8fb4
- git.kernel.org/stable/c/5bb3caf0bbfb56f1a00d2af072ac3d8395a3b9ef
- git.kernel.org/stable/c/629ec78ef8608d955ce217880cdc3e1873af3a15
- git.kernel.org/stable/c/6b9184ebc936f791631e51e783ab30320b3770e4
- git.kernel.org/stable/c/8adc5b6fc876928d8c95555d30b66fa50b07421e
Fable 5.1 · high confidence · 2026-11-05
The vulnerable code is in this build: net/mpls/af_mpls.c in linux-6.18.60 has no seqcount around the platform_label/platform_labels pair (resize_platform_label_table still updates them unprotected at ~L2585-2586) and none of the 139 Buildroot patches touch MPLS.
CONFIG_MPLS_ROUTING=m produces mpls_router.ko, but it is not loaded at boot (no modprobe/modules-load entry in the rootfs; only on-demand aliases net-pf-28 / rtnl-lwt-MPLS exist) and Infix's management plane does not expose MPLS at all: infix-ospf.yang deviates ospf:mpls as not-supported and confd forces ldpd=no in the FRR daemons file.
Even with the module loaded, platform_labels defaults to 0 and the racing resize only happens when a privileged process writes the net.mpls.platform_labels sysctl, which nothing in the product does; triggering this requires a root shell on the device.
Evidence 10
platform_labels and platform_label updated without seqcount — fix from CVE commits is absent
output/build/linux-6.18.60/net/mpls/af_mpls.c:2585-2586 (resize_platform_label_table)
no seqcount symbol anywhere in the file; vulnerable upstream code shape
output/build/linux-6.18.60/net/mpls/af_mpls.c (grep seqcount)
no patch mentioning mpls
output/build/linux-6.18.60/.applied_patches_list
CONFIG_MPLS=y, CONFIG_MPLS_ROUTING=m, CONFIG_MPLS_IPTUNNEL=m — af_mpls.c compiled as module mpls_router.ko
output/build/linux-6.18.60/.config:1531-1534
net/mpls/af_mpls.o and mpls_router.o were built
output/objects.txt:24218-24220
mpls_router is only loaded on demand; no static load entry found under board/common/rootfs/etc
output/target/lib/modules/6.18.60/modules.alias (net-pf-28, rtnl-lwt-MPLS)
ospf:mpls container deviated 'not-supported' — no YANG path for MPLS
src/confd/yang/confd/infix-ospf.yang:214-216
confd writes ldpd=no into FRR daemons; no label-distribution daemon runs
src/confd/src/routing.c:604
platform_labels initialised to 0; table is empty until a root sysctl write
output/build/linux-6.18.60/net/mpls/af_mpls.c:2667
resize_platform_label_table (the racing writer) only invoked from a sysctl write
output/build/linux-6.18.60/net/mpls/af_mpls.c:2607-2625 (mpls_platform_labels)
Version and patches
Upstream fix is in the referenced stable commits (0d37782…, 5bb3caf…, 629ec78…, 6b9184e…, 8adc5b6…); linux 6.18.60 as shipped here does not contain it (no seqcount in net/mpls/af_mpls.c). No Buildroot/Infix patch addresses it.
Recommendation
Document as N/A for the shipped configuration (MPLS routing not loadable or configurable via YANG/CLI/web; requires root shell to modprobe mpls_router and write net.mpls.platform_labels). Pick up the fix with the next routine kernel bump; no urgent backport needed.
Open questions
None material. If a future Infix release enables MPLS/LDP in FRR or adds an MPLS YANG model, re-evaluate as USED_WHEN_ENABLED.
Members of Kernel Kit decide. Sign in if you are one.