Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E15364D0A19 for ; Sun, 18 Oct 2026 15:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337210; cv=none; b=WuGZn/xKDBNitBF0qLBwxprm2Obn+nKMI/5A6i00G5DVOdgEgRKK3vYih16KIAFaO1RUM3XshFV/WRmeLBa5x5xxD22y46czEwImA9hBmJjqtgohnn90xteK4tpvcwK58DndgcNWAvJH9EOu2pQf6q6CCL/S+CNHDh2KJMnhnh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337210; c=relaxed/simple; bh=56ihPGxhobCCGVXO8kRud/yPTRZif4P/1cwC3R9ZygM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jsc4K4Dt1kEw/IkJWzBP8KgJPAnl43hV33u5SLm742uJGmU3MAND8jgCiVr3G3h6IuDWuYOId103qBcRAMrS4QtILmgt/pObVW450wcmgLxgwI02eR+CDR+FamMsYwc/N+w5QmZAC9CnNaSTnMMah19WQ/oU00eNGKcGB9e6OVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p2yHzYte; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="p2yHzYte" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12BDD1F000C5; Sun, 18 Oct 2026 15:26:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337208; bh=7hLDW0KayQfjnlshOloQIoavkZj/TW1zpIkxcE0FV+k=; h=From:To:Cc:Subject:Date:Reply-To; b=p2yHzYteTbsO0/gcfB1tCfZ8DbKpcZznLuF04JM7m4mf4p+sFbQYSj/zmktBD1oNF RSrsRcUkwNPd+OsU/07I7auzSM+Bis9kG6+66AIcu0FTZupifQiRLHztVscnjjOqzZ 4ahbiZdIV6cAONHaFP2nshNz0qxuwvyQfziJrqMw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98541: fou: reject omitted FOU_ATTR_IPPROTO on FOU_ENCAP_DIRECT Date: Sun, 18 Oct 2026 17:16:45 +0200 Message-ID: <2026101826-CVE-2026-98541-0813@gregkh> X-Mailer: git-send-email 2.56.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=4831; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KX1n+4APDJhhprel1YXzi5ZxRMsVikIWWe8IoovOVfU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHvVN3fx05b3bzxgS3u0/oJvOy1USpnjGY/XiIyzOd YbXVY4adcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEpOwZ5rvMFn7vGOAu4X/+ LpfzJat999burWKYp5X7yND1nfLuae/1dq0TdVv57ff07QA= 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: fou: reject omitted FOU_ATTR_IPPROTO on FOU_ENCAP_DIRECT Commit 7a9bc9e3f423 ("fou: Don't allow 0 for FOU_ATTR_IPPROTO.") added NLA_POLICY_MIN(NLA_U8, 1) to fou_nl_policy[FOU_ATTR_IPPROTO], which rejects an explicitly supplied FOU_ATTR_IPPROTO == 0 attribute with -ERANGE. However, FOU_ATTR_IPPROTO is an optional netlink attribute. When a user sends FOU_CMD_ADD with FOU_ATTR_TYPE set to FOU_ENCAP_DIRECT and omits FOU_ATTR_IPPROTO entirely, nla_policy validation succeeds and parse_nl_config() leaves cfg->protocol as 0 (from memset(cfg, 0, sizeof(*cfg))). fou_create() then creates a FOU_ENCAP_DIRECT socket with fou->protocol == 0. In fou_udp_recv(), returning -fou->protocol to udp_queue_rcv_one_skb() triggers IP protocol resubmission when fou->protocol > 0, whereas returning 0 tells the UDP tunnel layer that the skb was consumed without freeing it. When fou->protocol == 0, every packet received on the socket returns 0 from fou_udp_recv() and leaks the sk_buff. Reject FOU_ENCAP_DIRECT when !cfg->protocol in fou_create() so that creating a direct encapsulation port without FOU_ATTR_IPPROTO fails with -EINVAL while leaving FOU_CMD_DEL and FOU_CMD_GET (which share parse_nl_config()) unaffected. Tested in QEMU against Linux 7.3.0-rc3 by sending a FOU_CMD_ADD Generic Netlink request with FOU_ATTR_PORT = 5555 and FOU_ATTR_TYPE = FOU_ENCAP_DIRECT while omitting FOU_ATTR_IPPROTO. On the unfixed kernel, FOU_CMD_ADD succeeds (err = 0), FOU_CMD_GET reports fou->type = 1 and fou->protocol = 0, and sending 4000 UDP packets to 127.0.0.1:5555 leaks all 4000 sk_buffs (SUnreclaim in /proc/meminfo grows from 41456 kB to 59008 kB, +17552 kB); with this patch applied, FOU_CMD_ADD is rejected with -EINVAL (-22). The Linux kernel CVE team has assigned CVE-2026-98541 to this issue. Affected and fixed versions =========================== Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 5.10.271 with commit fd20220f86947d66d4dba2d76f13a28dbd86ef30 Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 5.15.222 with commit 46b1ffb7e169c7e401dd890b29e55dbc261f8f01 Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 6.1.189 with commit 7f4ba56f5d310dd018972916167985010a5d66a1 Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 6.6.158 with commit 3bcc1624cc1cdcc05b566475d6e848093ab2a8f6 Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 6.12.112 with commit 8b43f40798bb2758489fbbcae7e841ad4443c213 Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 6.18.55 with commit b1229b210ef5a39c58be665e6798203751411842 Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 7.2.9 with commit 520cf06b8ea0ba5bcc1b8b982ef07f02b5e56221 Issue introduced in 3.18 with commit 23461551c00628c3f3fe9cf837bf53cf8f212b63 and fixed in 7.3-rc5 with commit d22609f3d13fc5baacd92c222731b03c593401db 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-98541 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/ipv4/fou_core.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/fd20220f86947d66d4dba2d76f13a28dbd86ef30 https://git.kernel.org/stable/c/46b1ffb7e169c7e401dd890b29e55dbc261f8f01 https://git.kernel.org/stable/c/7f4ba56f5d310dd018972916167985010a5d66a1 https://git.kernel.org/stable/c/3bcc1624cc1cdcc05b566475d6e848093ab2a8f6 https://git.kernel.org/stable/c/8b43f40798bb2758489fbbcae7e841ad4443c213 https://git.kernel.org/stable/c/b1229b210ef5a39c58be665e6798203751411842 https://git.kernel.org/stable/c/520cf06b8ea0ba5bcc1b8b982ef07f02b5e56221 https://git.kernel.org/stable/c/d22609f3d13fc5baacd92c222731b03c593401db