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 6F9CF366048 for ; Sat, 25 Apr 2026 08:47:46 +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=1777106866; cv=none; b=o0PZV4mnEYRuw9oYUZca+W4VDa5RmaEmtPZhIcLpNewENX4olUwikdI7FBysDYY6SgcNdVltEJSSdQuR+VN7aUU9P/gaYejX5ItLa72uOJQUTNfWLgF+XO7Lu1K1UYEvU/OgtTgLQ8XMGlPwqBpSgRwziw2ZEKgf3UplyLdNu/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777106866; c=relaxed/simple; bh=YlkH9SEZq8bT5QVkIMvKCFEmlNROrI7ZclOJihxBwH0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Wq8wbqp6s3uONNQWIaYYKUZ0LKGGgSo9wD4jxvvzZpQMJAO8ehtR+L9yJElwCx8A2sXNYLeFcqTURSZKKQqWtK0tU8Vb+fYVySBMHhlUSnmeHu+N2jKCBM2vSG8SBKMDIUk2xPVxUimd87CWmlkG1YRriHbxxS6kztKLghSEQbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WkZ3TYbh; 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="WkZ3TYbh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4142C2BCB0; Sat, 25 Apr 2026 08:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777106866; bh=YlkH9SEZq8bT5QVkIMvKCFEmlNROrI7ZclOJihxBwH0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WkZ3TYbhz3vvdaTNT3LmklVybpEWEsI8H9HfNv+pwr/bxBsUUq4ifpOrp/z+k58cS t2ZwC7lJfUuyk59iW8ImeSBa/4YbM/QFD0hYv0fXKDuTossTSJEODT0SQW7OneW37a OqUWVXoHemoYDP4IZkqpvMzAb/w4pOHB2dn9GwSY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31679: openvswitch: validate MPLS set/set_masked payload length Date: Sat, 25 Apr 2026 10:46:46 +0200 Message-ID: <2026042544-CVE-2026-31679-7f32@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=3477; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZzyLcRHIi/FeE57iABT3UU53/o+182qdQYp8RWGqoak=; b=kA0DAAIRMUfUDdst+ykByyZiAGnsf3Si8pHUVzthsNMqsvoyg3hiy74NLeQba/+l4u6N02im5 ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmnsf3QACgkQMUfUDdst+yl+9ACeMpK1 YZUDk9FsYSpNVMiPySMBj1oAoJF4U56vAcjTh1HK2Q8LYtw7guzL 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: openvswitch: validate MPLS set/set_masked payload length validate_set() accepted OVS_KEY_ATTR_MPLS as variable-sized payload for SET/SET_MASKED actions. In action handling, OVS expects fixed-size MPLS key data (struct ovs_key_mpls). Use the already normalized key_len (masked case included) and reject non-matching MPLS action key sizes. Reject invalid MPLS action payload lengths early. The Linux kernel CVE team has assigned CVE-2026-31679 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 5.10.253 with commit 68f32ef0683c8d1c05cd2e4f16818fa63ff59c6f Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 5.15.203 with commit 4cae986225f8b8679ad86b924918e7d75a96aa61 Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 6.1.168 with commit 8ed7b9930cbc3bc71f868fa79a68700ac88d586a Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 6.6.131 with commit c1f97152df8dfb17e855ddf0fc409b7bd13e9700 Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 6.12.80 with commit 98de18d327ef8cbbb704980e359e4872d8c28997 Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 6.18.21 with commit bd50c7484c3bb34097571c1334174fb8b7408036 Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 6.19.11 with commit 2ca33b88a79ca42f017ae0f7011280325655438e Issue introduced in 5.5 with commit fbdcdd78da7c95f1b970d371e1b23cbd3aa990f3 and fixed in 7.0 with commit 546b68ac893595877ffbd7751e5c55fd1c43ede6 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-31679 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: net/openvswitch/flow_netlink.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/68f32ef0683c8d1c05cd2e4f16818fa63ff59c6f https://git.kernel.org/stable/c/4cae986225f8b8679ad86b924918e7d75a96aa61 https://git.kernel.org/stable/c/8ed7b9930cbc3bc71f868fa79a68700ac88d586a https://git.kernel.org/stable/c/c1f97152df8dfb17e855ddf0fc409b7bd13e9700 https://git.kernel.org/stable/c/98de18d327ef8cbbb704980e359e4872d8c28997 https://git.kernel.org/stable/c/bd50c7484c3bb34097571c1334174fb8b7408036 https://git.kernel.org/stable/c/2ca33b88a79ca42f017ae0f7011280325655438e https://git.kernel.org/stable/c/546b68ac893595877ffbd7751e5c55fd1c43ede6