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 EBA073AE6E9 for ; Thu, 28 May 2026 09:38:51 +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=1779961133; cv=none; b=WvvlsTAUzMAUPxfaJEwqtRAnrpu1pqL749GMin9pTeb3plLz7712VO8v37i1nZDFzRAK/cSI03VGZnpOMcn9QdPIVr6WNoSAf8lvzGBxdnnJC47dXGYRpX7azA7OjmbpStWG3vVo7B5Diul0uIzNF9+bHYdgVT4PtxmeQi8DtKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961133; c=relaxed/simple; bh=BX+xORqhwNrikcX7JPUtrAO8lupUUmHWWRgmGfWgPdo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YdZp/2GFg0BZs/NDIA5dhpUy4yrakD5IkrmWdkZc6Me0DPFsMb+Bia791pq0EZWdNjBI+iLH4w4NN8Jyl4vvsyWRuaMILRhh3x/1d0XwJMz+vcIZnig8O129BQIYCJuY1xfoYtLxJV2vcRAXnxLIzpQ41pvkLEtnfSbyKKrHldc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RtKNBgI5; 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="RtKNBgI5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAC441F000E9; Thu, 28 May 2026 09:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961131; bh=Zxq1qmmKBbqMjyq3tmNTD2MkRdOyLPf6jsAmKYciif4=; h=From:To:Cc:Subject:Date:Reply-To; b=RtKNBgI5a6ofIMlfT6+joj+M5H9/p7Zn0p50DsjbrkQtSRppKcqdAxIZRXQB3nMmZ FvCvvjj4PmBkINuqGrvPScQvAA68qBNxpjT/kIGVQCFO/RWommiKCnitWgKM+Yy9os 7Ir5sgRP/BDCH51wzLuIWWIUntQdp0h4xOmWqDoY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46132: net: rtnetlink: zero ifla_vf_broadcast to avoid stack infoleak in rtnl_fill_vfinfo Date: Thu, 28 May 2026 11:36:37 +0200 Message-ID: <2026052817-CVE-2026-46132-9410@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=4194; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ily58OXvg9Qb5ackkQ5r10F1gA0SCrprDNazsP8GpAI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPBOXNCj9PPnm5IfjzT2xRqVv6h0VX1TtLYl85PPu/ +dJSra6HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRDWoMC45N0+Jz9Zx5O6l5 w0Fju/xem9uebgwL9rraT164LmNa8IZQnokhYZx/Dr9aBQA= 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: rtnetlink: zero ifla_vf_broadcast to avoid stack infoleak in rtnl_fill_vfinfo rtnl_fill_vfinfo() declares struct ifla_vf_broadcast on the stack without initialisation: struct ifla_vf_broadcast vf_broadcast; The struct contains a single fixed 32-byte field: /* include/uapi/linux/if_link.h */ struct ifla_vf_broadcast { __u8 broadcast[32]; }; The function then copies dev->broadcast into it using dev->addr_len as the length: memcpy(vf_broadcast.broadcast, dev->broadcast, dev->addr_len); On Ethernet devices (the overwhelming majority of SR-IOV NICs) dev->addr_len is 6, so only the first 6 bytes of broadcast[] are written. The remaining 26 bytes retain whatever was previously on the kernel stack. The full struct is then handed to userspace via: nla_put(skb, IFLA_VF_BROADCAST, sizeof(vf_broadcast), &vf_broadcast) leaking up to 26 bytes of uninitialised kernel stack per VF per RTM_GETLINK request, repeatable. The other vf_* structs in the same function are explicitly zeroed for exactly this reason - see the memset() calls for ivi, vf_vlan_info, node_guid and port_guid a few lines above. vf_broadcast was simply missed when it was added. Reachability: any unprivileged local process can open AF_NETLINK / NETLINK_ROUTE without capabilities and send RTM_GETLINK with an IFLA_EXT_MASK attribute carrying RTEXT_FILTER_VF. The kernel walks each VF and emits IFLA_VF_BROADCAST, leaking 26 bytes of stack per VF per request. Stack residue at this call site can include return addresses and transient sensitive data; KASAN with stack instrumentation, or KMSAN, will flag the nla_put() when reproduced. Zero the on-stack struct before the partial memcpy, matching the existing pattern used for the other vf_* structs in the same function. The Linux kernel CVE team has assigned CVE-2026-46132 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 75345f888f700c4ab2448287e35d48c760b202e6 and fixed in 6.6.140 with commit 0653c0516234c8258975d268a749115fc0f0ff00 Issue introduced in 5.3 with commit 75345f888f700c4ab2448287e35d48c760b202e6 and fixed in 6.12.88 with commit c5b1b92ab7eff1a6e8c507ddde6fd02fabd0cfa8 Issue introduced in 5.3 with commit 75345f888f700c4ab2448287e35d48c760b202e6 and fixed in 6.18.30 with commit fbe0e6197225e6a83cf113a67a4b425f8de0bcd5 Issue introduced in 5.3 with commit 75345f888f700c4ab2448287e35d48c760b202e6 and fixed in 7.0.7 with commit 38bcc21f52246badb3154b6158dcb381d98de011 Issue introduced in 5.3 with commit 75345f888f700c4ab2448287e35d48c760b202e6 and fixed in 7.1-rc3 with commit 4b9e327991815e128ad3af75c3a04630a63ce3e0 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-46132 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/core/rtnetlink.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/0653c0516234c8258975d268a749115fc0f0ff00 https://git.kernel.org/stable/c/c5b1b92ab7eff1a6e8c507ddde6fd02fabd0cfa8 https://git.kernel.org/stable/c/fbe0e6197225e6a83cf113a67a4b425f8de0bcd5 https://git.kernel.org/stable/c/38bcc21f52246badb3154b6158dcb381d98de011 https://git.kernel.org/stable/c/4b9e327991815e128ad3af75c3a04630a63ce3e0