Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187401; b=wSQSUP/WK0m7uP0tAduQVF7g2Rk4hoLzTId1Q3eghlllLm+K7WSeRb20kJzi/767jUa3 c8UiI4aDL75bemEhJxWqYAZQ0UpoGHinBt80bx3Cn0+Muxzfnut2M5xEab4820MKveCyn Um67XfYzLnNHSYoymoblBKT7l0jdBoE9FwHdovOUVFGxCVLyoF4FnBH8u/LfHiB0cyd/z cXtbC++ip3oSr1d/Dn8uIntvi0MH96fTnr7icx04OvsyuzJ0qdFV6v0NfN6dkPjAleIXJ ZS+vbRYx3WAi92guO59tt/hnAAUQxW09pPPZVV/7ruBmgHZEYX+Y5ng/dl+kqkCEYRw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187401; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=dRPyVa6qg+hri2NKwmb1ePgXhIjPxkwxEDIUkRXErsE=; b=CRLtUC9NPHujLa9PcEuRV39IfCrYe6IWCltOL0dlPZMxniJVUnWfxLz1eC6+Fwa5s+yS Yzm5E8koMAb+f3wq0ruWHlvR116rLEVkYzqI568WJATQfiJNbQcmtvwFTSsGO/FVd3U9z z2T4ZKUqulvmCtCTEEulTCRaTJpAfyBK5eAQvyrCV16u5s1ehc1d63L2jrmfbybO/1dhM TF8WV4qbgYQt7OnVwdWj9qSwczsSOZc/NvLhhVf3t05HwHcSp3HlxVYFvM7yYBRhxlIla l49QajHWD2Nll8mq0PssvYqxmQDnqO7AzuRz/4nZlZDxvEAHVFPrgWlbXW+dKkiB0/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=dHKiQUDJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 020A2606A31D for ; Wed, 28 Oct 2026 11:36:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=dHKiQUDJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 069EC1F01825; Wed, 28 Oct 2026 11:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187400; bh=dRPyVa6qg+hri2NKwmb1ePgXhIjPxkwxEDIUkRXErsE=; h=From:To:Cc:Subject:Date:Reply-To; b=dHKiQUDJPSgGEbsJItdFNYXlZIPxfe7oWkFzf31xKiN+1soul4fXBC1E60MOsMIX1 8d4XqNxBA2PMUqxeKVBLfKIBrcpq5onX3+7PujJ7szpG0pOkfdjdyVZ3yeeHDkz79x UnM8BtmEKqdCgzcS4nKdO9caF4zv+bGAz1OowOTw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99112: net/sched: cls_flower: validate mask pointer after nla_next() Date: Wed, 28 Oct 2026 11:34:59 +0100 Message-ID: <2026102854-CVE-2026-99112-f9aa@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3614; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7rpUwgqUm7P47S/zx4rJ5oAPKMaPL4rPWD1Cx1Cwa6g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz5/rTvdw77dsv/U0LMmt683xVTbbZn6ZFHUmtdzz3 pM/C5S0OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiG1QY5sov+ujE8MC9InnW k1nHPzvPXsmhyMSwYGa4e2/ysmJ+19P2p3YfMK0Srr94CAA= 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: net/sched: cls_flower: validate mask pointer after nla_next() fl_set_enc_opt() iterates the key's nested tunnel-option attributes with nla_for_each_attr() while advancing a single mask pointer via nla_next() at the bottom of each loop, so the mask cursor is driven by the number of key attributes rather than by the mask's own attributes. The nla_ok() added by commit c96adff956191 ("cls_flower: call nla_ok() before nla_next()") only validates the mask pointer that was just consumed; the pointer produced by nla_next() is used by the next iteration (fl_set_geneve_opt() and siblings) without any validation. The mask's nested attributes are validated with NL_VALIDATE_LIBERAL, which merely warns on trailing bytes that do not form a complete attribute. A mask carrying one valid attribute plus 1-3 residue bytes (or a non-aligned attribute length making msk_depth negative) therefore reaches the next iteration with msk_depth != 0, so neither the !msk_depth check in fl_set_enc_opt() nor the !depth check in the per-type helpers fires. nla_type() then reads past the mask payload and nla_parse_nested_deprecated() iterates with an nla_len taken from those bytes, reading well beyond the mask attribute (KASAN: slab-out-of-bounds read in __nla_validate_parse from fl_change()). Validate the advanced mask pointer as well: when the mask is not legitimately exhausted (msk_depth != 0) and the new pointer fails nla_ok(), reject the filter with -EINVAL. An exactly exhausted mask still skips the check, preserving exact-match behaviour for the remaining key attributes. The Linux kernel CVE team has assigned CVE-2026-99112 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit c96adff95619178e2118925578343ad54857c80c and fixed in 6.18.59 with commit 45e60747a9db2307929260d9aa9c1c6cbb70ee77 Issue introduced in 5.11 with commit c96adff95619178e2118925578343ad54857c80c and fixed in 7.2.13 with commit bb187146c7e5c666874784e4f3fc1bc5126e6e92 Issue introduced in 5.11 with commit c96adff95619178e2118925578343ad54857c80c and fixed in 7.3 with commit fee10655709c5c597e8e9f722f3035d9ea31ff3a Issue introduced in 5.10.11 with commit 238b5ebdb6a6e4bc90810b9f8ec0063b3dfda41a 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-99112 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/sched/cls_flower.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/45e60747a9db2307929260d9aa9c1c6cbb70ee77 https://git.kernel.org/stable/c/bb187146c7e5c666874784e4f3fc1bc5126e6e92 https://git.kernel.org/stable/c/fee10655709c5c597e8e9f722f3035d9ea31ff3a