bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-43042

7.1high

linux6.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
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-17 · settles 8 of 8

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
  1. 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)

  2. no seqcount symbol anywhere in the file; vulnerable upstream code shape

    output/build/linux-6.18.60/net/mpls/af_mpls.c (grep seqcount)

  3. no patch mentioning mpls

    output/build/linux-6.18.60/.applied_patches_list

  4. 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

  5. net/mpls/af_mpls.o and mpls_router.o were built

    output/objects.txt:24218-24220

  6. 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)

  7. ospf:mpls container deviated 'not-supported' — no YANG path for MPLS

    src/confd/yang/confd/infix-ospf.yang:214-216

  8. confd writes ldpd=no into FRR daemons; no label-distribution daemon runs

    src/confd/src/routing.c:604

  9. 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

  10. 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.