CVE-2026-143129: net/sched: act_ife: require a full Ethernet header on egress

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net/sched: actife: require a full Ethernet header on egress

This is a followup of commit 5b483f7791b0 ("net/sched: actife: Only operate on Ethernet frames") as reported by Sashiko.

The finding was raised by both Sashiko providers (nipa and gemini) while reviewing the parent patchset. shaos <shawnq1@163.com> independently reported the same undersized-egress path with a reproducer, which was reproduced and verified in our test environment.

The issue: On egress tcfifeisethskb() only checks the device type; it does not check that the skb carries a full Ethernet header. For an Ethernet or loopback device it returns true even when the skb has no Ethernet header. tcfifeencode() then calls ifeencode(), which copies ETHHLEN bytes from skb->data. A short skb therefore reads past its linear data and the copied bytes, including stale kernel memory, are emitted in the outer Ethernet header.

The parent commit fixed the reported ingress maclen case but left the egress path without a length check.

A total-length test is not sufficient: a non-GSO TUN skb can have a large total length while only a single byte sits in the linear area, so ifeencode() still reads past the linear header. Require instead that the Ethernet header the encoder copies is present in the linear part of the skb.

The Fix: On egress require pskbmaypull(skb, ETHHLEN) before encoding, which ensures the Ethernet header is present in the linear data ifeencode() copies from; the ingress maclen check is unchanged. A short egress skb is now dropped instead of being encoded.

Conditions to recreate the bug: CONFIGNETACTIFE=y, CONFIGNETCLSMATCHALL=y, CONFIGNETSCHINGRESS=y, CONFIGTUN=y, CONFIGNETACTMIRRED=y. In two user and network namespaces (a victim and an attacker), open a TUN device in IFFTUN mode and attach clsact to it and to lo. Redirect ingress traffic from the TUN device to lo egress with mirred, and install an ife encode action on lo egress:

tc qdisc add dev <tun> clsact tc qdisc add dev lo clsact tc filter add dev <tun> ingress matchall action mirred egress \ redirect dev lo tc filter add dev lo egress matchall action ife encode use mark 1 \ action ok

Send a TUN packet shorter than ETHHLEN (a one-byte payload is enough) and receive the emitted frame on the other side. Without the fix the outer Ethernet header contains bytes copied past the short packet; with the fix the short skb is dropped. The attacker needs CAPNETADMIN in its user namespace; no init-net privilege is required.

The same path is reachable when the total length is large but the Ethernet header is not linear: write a non-GSO virtio header with hdrlen=1 followed by an 8192-byte packet so that only one byte stays linear. Without the fix the copied header reads past the linear data; with the fix the header is pulled into the linear area before the copy.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    On egress, require pskb_may_pull(skb, ETH_HLEN) before encoding so the full Ethernet header is present in the linear data; drop the skb if the check fails.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description

Frequently Asked Questions

1

Which deployments are exposed?

Exposure is limited to egress processing where the act_ife traffic-control action handles packets on Ethernet or loopback devices. The affected path can treat a packet as Ethernet based on device type even when no complete Ethernet header is present.

2

What is required to trigger the issue?

A packet with less than a full Ethernet header in its linear data must reach the egress act_ife encoding path. A large total packet length alone does not prevent the condition; the report specifically notes that a non-GSO TUN skb can have a large total length while its linear data is short.

3

What can be done while patching is pending?

Remove or disable egress act_ife rules on interfaces that may process short or non-linear packets. This prevents packets from reaching the vulnerable act_ife encoding path.

4

How can I determine whether a system needs attention?

Review traffic-control configuration for act_ife actions applied on egress, particularly on Ethernet or loopback devices. The provided information does not identify affected kernel versions, so version-based determination is not possible from this data alone.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203