Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18BB23CA483 for ; Fri, 1 May 2026 14:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645312; cv=none; b=PMTh3gr6oWql3R8OmMvwVBGPDeXaVHDKH8Gn8W8cwmqiEBH+w1sF8dLKQb0rxO/XkwM7jtqGVK4JgaS6Bzs9ul27vIkQBaKrOklM+6d9e6A3S/bOnx5+vjcvyT0wEw0JQRwvCX3kW/NdNOW/qwRfSVwnND/BVA9OMgNLhQOLOYg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645312; c=relaxed/simple; bh=EMUtEvy4WYsvjfNo1frS0+hhXvwswc5B8nLKD2rFrOE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qpumoEGMO8r6SQkfnCt3StMpiN8/h3vkQGKq0y0UnoHH5QqU1IrckqKg3BW+0NkJWImx5xSsC+vZ4FROHb+go6ZdK3VafMluQyzgyBDB1eFVXunaqndsXrIXSwjyATZcMxs8lXF91cR3dbd1X6YmEO5TdW7uHX1S82z1KLnQHUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CeE8m3NE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CeE8m3NE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6F09C2BCB9; Fri, 1 May 2026 14:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645312; bh=EMUtEvy4WYsvjfNo1frS0+hhXvwswc5B8nLKD2rFrOE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=CeE8m3NEMvgqGioNky2993qfmE39D/5CxAZfBWyIAn1xVE4ce1W6GZVgNXr25jFAA n/4O98y3fAWMr31Hy7B98+YH8ebaQN1cm1CSk2uloQrfp4Q69XnevcRe2YQrZkxerV Abt74L5+Qanc1Dcnqs18FQNdBn2JJghZJL4ZbNQ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43042: mpls: add seqcount to protect the platform_label{,s} pair Date: Fri, 1 May 2026 16:16:15 +0200 Message-ID: <2026050104-CVE-2026-43042-8e66@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2421; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jrbzcz1t5fbsxohejpBJcVOej2g+3OqK0JPtB4WEPDY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftmYcOHv2uYN4zsknX5awrZpyzMzznD2D/sdZFZNMz ynViC1q6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ5BcxzPdcs/Lof+692urp umIGhl9SE1+/+sywYJfUIZn+uJsaMcnfJJgqFrDcFGQ+DAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: 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. The Linux kernel CVE team has assigned CVE-2026-43042 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit 7720c01f3f590116882e251f13c7e1d5602f8643 and fixed in 6.19.12 with commit 5bb3caf0bbfb56f1a00d2af072ac3d8395a3b9ef Issue introduced in 4.1 with commit 7720c01f3f590116882e251f13c7e1d5602f8643 and fixed in 7.0 with commit 629ec78ef8608d955ce217880cdc3e1873af3a15 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43042 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: include/net/netns/mpls.h net/mpls/af_mpls.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/5bb3caf0bbfb56f1a00d2af072ac3d8395a3b9ef https://git.kernel.org/stable/c/629ec78ef8608d955ce217880cdc3e1873af3a15