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=1792758206; b=Um3vpKuA/ieCP7kGuXFibCpQfUd4/19bUSB1C1iQpow8Nu3Rh1z98TozUN91aDfJTbyj 5MMCeuJ4wVCbo/YqBtzyQOWjUo3p53CHk08ldEkaTpzg1m2zx+wV/nUZZC1GBRAP4RxNq EZSRL9l3JeY5hkLatupkRXu3MltkdVIZ8gH5ekrPKStmVUVFkbfrVU/EmyVjeEizzP2e6 MlhZeZ5o1YU7XqxXeUz2sn+Vu1sanhOskrsevJ9Fgm12VybMV1opOUJX2ww7AxBdY12dt L68l6zJpS630eW2yvt963CAaoBnfNILEE2QLVWi/bu6XgzY+ShJS8/vILkqmwWZDphQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758206; 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=KEHKNMnj32AtXsM2RTTWGUceTSdy98GxWEm3lLvWWUg=; b=A3DBXSn72xZrHAX1XpzG9wYxYH9HKvFMyv4WuqXyIsFfXGceqXpm/mQABciT4xReTf3S A+1FQY1YGbml12yiunHpF0Vl5/sQtFtN3kDLnDyLtSlys3lEe53eusisKb/VfSBBPPEkS 5QNH4VUxRVHHq7ATiL3b0kQ5AIfsXqqWDiGA0hjPviqJgwPTzRpw67eD6KLVbW0liOT6/ mF9vVe8Btoub0xI1Nbw4ELT4/DYW+XcYG+sfhaHHDwAP28RFNSmognICeefJh14jF+3mh B5RTI/CHDsFi9JC0HLjYQA77wXGjpRS7P+1Nf5jYtuhyK0ZuAjtKzENLEmo3dEikrWg== 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=v00sVWUg; 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 6A58E606A31B for ; Fri, 23 Oct 2026 12:23:26 +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=v00sVWUg Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D8941F01825; Fri, 23 Oct 2026 12:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758206; bh=KEHKNMnj32AtXsM2RTTWGUceTSdy98GxWEm3lLvWWUg=; h=From:To:Cc:Subject:Date:Reply-To; b=v00sVWUgDgiHeP5gBQtFPYeSUlKPUhMjF5LafHNAdZZM4IsO6czNAmq6aa/Seof2P q43MDs9wX9i1vMyVaEP+rybe1MjZSP/8Ehqb8ytVH50ohBZyK9J8l/2gVJ7TX/rqZu P7rO8mCZwqAcqYF3MK+aMLrWO3M3yy44AzCrpKMM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98929: macsec: initialize SecY before registering the netdevice Date: Fri, 23 Oct 2026 14:08:24 +0200 Message-ID: <2026102322-CVE-2026-98929-e30f@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=3025; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MImb5/3iIOk7yJJ2sbo+nM2BVfNsWLnfHB9FzW1g6D4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3/czmhXLyppkn2M6Z0tPYZ7wlrvmzQO9kM8nUZ+EfD 9ovvJzREcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMxEGCYZ/z816LAZ5yPOA0X HKuekyoyndMzlmF+xO0dT13Pf5hpInJc//6mhU8l6o2/AAA= 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: macsec: initialize SecY before registering the netdevice Creating a MACsec device with MAC offload over an LRO-capable lower device triggers a warning in rtmsg_ifinfo_build_skb() when IPv4 forwarding is enabled by default. register_netdevice() invokes inetdev_init(), which disables LRO and emits a NETDEV_FEAT_CHANGE notification. This reaches macsec_fill_info() before macsec_add_dev() initializes the SecY. key_len is still zero, so macsec_fill_info() returns -EMSGSIZE and trips the WARN_ON in rtmsg_ifinfo_build_skb(), even though the skb has enough space. Even without the warning, notifications during registration can report uninitialized SecY attributes, including the SCI. This ordering has existed since the driver was introduced. Initialize the SecY and apply the new-link attributes before registration. Move MAC address inheritance into macsec_newlink() so the SCI can also be initialized before registration-time notifications report it. Move the per-CPU statistics and metadata destination allocation into ndo_init(), and release partial allocations on failure. The Linux kernel CVE team has assigned CVE-2026-98929 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit c09440f7dcb304002dfced8c0fea289eb25f2da0 and fixed in 6.18.55 with commit 2b42adf3b8ee9a0e1d2629aca3c5a02a1c438066 Issue introduced in 4.6 with commit c09440f7dcb304002dfced8c0fea289eb25f2da0 and fixed in 7.2.9 with commit b07bea42bf590edb0fd507ab25622a74af09548b Issue introduced in 4.6 with commit c09440f7dcb304002dfced8c0fea289eb25f2da0 and fixed in 7.3 with commit c2de369c5c5b8599ca10fd5ca8d11fcd845c1331 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-98929 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: drivers/net/macsec.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/2b42adf3b8ee9a0e1d2629aca3c5a02a1c438066 https://git.kernel.org/stable/c/b07bea42bf590edb0fd507ab25622a74af09548b https://git.kernel.org/stable/c/c2de369c5c5b8599ca10fd5ca8d11fcd845c1331