CVE-2026-53211: netfilter: nft_meta_bridge: fix stale stack leak via IIFHWADDR register
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nft_meta_bridge: fix stale stack leak via IIFHWADDR register
NFT_META_BRI_IIFHWADDR declares its destination register with len = ETH_ALEN (6 bytes), which the register-init tracking rounds up to two 32-bit registers (8 bytes). nft_meta_bridge_get_eval() then does memcpy(dest, br_dev->dev_addr, ETH_ALEN), writing only 6 bytes and leaving the upper 2 bytes of the second register as uninitialised nft_do_chain() stack. A downstream load of that register span leaks those stale bytes to userspace.
Zero the second register before the memcpy so the full declared span is written.
The Linux kernel CVE team has assigned CVE-2026-53211 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit cbd2257dc96e3e46217540fcb095a757ffa20d96 and fixed in 6.18.36 with commit 07acb9798477535933bd658ac9fa85b6cb10d995 Issue introduced in 6.18 with commit cbd2257dc96e3e46217540fcb095a757ffa20d96 and fixed in 7.0.13 with commit f1e81d571e375d10e50e852223593493d98c1bac Issue introduced in 6.18 with commit cbd2257dc96e3e46217540fcb095a757ffa20d96 and fixed in 7.1 with commit c7d573551f9286100a055ef696cde6af54549677
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-53211
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/bridge/netfilter/nft_meta_bridge.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/07acb9798477535933bd658ac9fa85b6cb10d995 https://git.kernel.org/stable/c/f1e81d571e375d10e50e852223593493d98c1bac https://git.kernel.org/stable/c/c7d573551f9286100a055ef696cde6af54549677