PT-2026-166988
CVE-2026-143130
·
Publicado
2026-12-03
·
Atualizado
2026-12-03
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act ife: 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:
ife check meta u32() and ife check meta u16() both reserve eight bytes
of metadata for a configured value even when that value is zero, but the
matching encoder returns without calling ife tlv meta encode(). 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 TCA IFE METALST netlink request is needed to express the
configured zero: the IFE META SKBMARK attribute carries four zero
payload bytes for the u32 helper, and IFE META TCINDEX 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:
CONFIG NET ACT IFE=y, CONFIG NET IFE SKBMARK=y,
CONFIG NET IFE SKBTCINDEX=y, CONFIG NET CLS MATCHALL=y,
CONFIG NET SCH INGRESS=y, CONFIG USER NS=y, CONFIG NET NS=y,
CONFIG VETH=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
TCA IFE METALST. 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 CAP NET ADMIN; no additional privilege is required.
With the fix the zero TLVs are 0001000800000000 (u32) and
0005000600000000 (u16).
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾