CVE-2026-143130: net/sched: act_ife: encode configured zero metadata values
In the Linux kernel, the following vulnerability has been resolved:
net/sched: actife: encode configured zero metadata values
Reported by shaos <shawnq1@163.com> with a reproducer for the 32-bit case, which was reproduced and verified in our test environment.
The issue: ifecheckmetau32() and ifecheckmetau16() both reserve eight bytes of metadata for a configured value even when that value is zero, but the matching encoder returns without calling ifetlvmetaencode(). The encoder therefore writes neither the TLV header nor its value, while the enclosing IFE length still includes the reserved bytes, exposing stale skb headroom contents to the peer.
The 32-bit helper has been present since the IFE action was introduced (v4.6); the 16-bit helper was added with the 16-bit metadata helpers used by the skbtcindex callback (v4.9). Both defects predate the oldest supported stable kernel (5.10), so they are fixed together in this patch. Each hunk keeps its own Fixes: tag for provenance.
The fix: Encode any configured value, including zero; skip the TLV only when there is neither a configured nor a runtime value. The runtime fallback is unchanged.
A raw TCAIFEMETALST netlink request is needed to express the configured zero: the IFEMETASKBMARK attribute carries four zero payload bytes for the u32 helper, and IFEMETATCINDEX two zero payload bytes for the 16-bit helper (not an absent or zero-length attribute). Stock tc cannot build these requests; "use mark 0x0" emits no mark attribute and "allow mark" emits a zero-length one.
Conditions to recreate the bug: CONFIGNETACTIFE=y, CONFIGNETIFESKBMARK=y, CONFIGNETIFESKBTCINDEX=y, CONFIGNETCLSMATCHALL=y, CONFIGNETSCHINGRESS=y, CONFIGUSERNS=y, CONFIGNETNS=y, CONFIGVETH=y. In a fresh user and network namespace create a veth pair and attach clsact to the egress side. Install a matchall filter whose ife encode action carries a zero skb mark (or a zero tcindex) in TCAIFEMETALST. Send a frame through the veth and inspect the IFE metadata in the received frame. The metadata region is eight bytes but holds neither a valid TLV header nor a value; it exposes prior headroom contents. Setting the value to a nonzero one does not trigger the leak. The namespace needs CAPNETADMIN; no additional privilege is required. With the fix the zero TLVs are 0001000800000000 (u32) and 0005000600000000 (u16).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Which systems are exposed to the information leak?
Systems using the IFE traffic-control action with configured 16-bit or 32-bit metadata values set to zero are affected. In that condition, the outgoing IFE length includes space for metadata that the encoder does not write.
What information may be disclosed?
The peer can receive stale contents from skb headroom in place of the omitted metadata TLV header and value.
How far back does the affected code exist?
The 32-bit helper has existed since IFE was introduced in Linux kernel v4.6, and the 16-bit helper since v4.9. Both issues predate the oldest supported stable kernel, 5.10.
What behavior changes after the fix?
Configured metadata values are encoded even when the configured value is zero. A metadata TLV is skipped only when neither a configured value nor a runtime value is present.