GHSA-QCCP-4V6Q-RVJM

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

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

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

This is a followup of commit 5b483f7791b0 ("net/sched: act_ife: 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 tcf_ife_is_eth_skb() 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. tcf_ife_encode() then calls ife_encode(), which copies ETH_HLEN 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 mac_len 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 ife_encode() 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 pskb_may_pull(skb, ETH_HLEN) before encoding, which ensures the Ethernet header is present in the linear data ife_encode() copies from; the ingress mac_len check is unchanged. A short egress skb is now dropped instead of being encoded.

Conditions to recreate the bug: CONFIG_NET_ACT_IFE=y, CONFIG_NET_CLS_MATCHALL=y, CONFIG_NET_SCH_INGRESS=y, CONFIG_TUN=y, CONFIG_NET_ACT_MIRRED=y. In two user and network namespaces (a victim and an attacker), open a TUN device in IFF_TUN 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 clsact tc qdisc add dev lo clsact tc filter add dev 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 ETH_HLEN (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 CAP_NET_ADMIN 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 hdr_len=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.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143129"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:45Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_ife: require a full Ethernet header on egress\n\nThis is a followup of commit 5b483f7791b0 (\"net/sched: act_ife: Only\noperate on Ethernet frames\") as reported by Sashiko.\n\nThe finding was raised by both Sashiko providers (nipa and gemini)\nwhile reviewing the parent patchset. shaos \u003cshawnq1@163.com\u003e\nindependently reported the same undersized-egress path with a\nreproducer, which was reproduced and verified in our test environment.\n\nThe issue:\nOn egress tcf_ife_is_eth_skb() only checks the device type; it does not\ncheck that the skb carries a full Ethernet header. For an Ethernet or\nloopback device it returns true even when the skb has no Ethernet\nheader. tcf_ife_encode() then calls ife_encode(), which copies ETH_HLEN\nbytes from skb-\u003edata. A short skb therefore reads past its linear data\nand the copied bytes, including stale kernel memory, are emitted in the\nouter Ethernet header.\n\nThe parent commit fixed the reported ingress mac_len case but left the\negress path without a length check.\n\nA total-length test is not sufficient: a non-GSO TUN skb can have a\nlarge total length while only a single byte sits in the linear area, so\nife_encode() still reads past the linear header. Require instead that\nthe Ethernet header the encoder copies is present in the linear part of\nthe skb.\n\nThe Fix:\nOn egress require pskb_may_pull(skb, ETH_HLEN) before encoding, which\nensures the Ethernet header is present in the linear data ife_encode()\ncopies from; the ingress mac_len check is unchanged. A short egress skb\nis now dropped instead of being encoded.\n\nConditions to recreate the bug:\nCONFIG_NET_ACT_IFE=y, CONFIG_NET_CLS_MATCHALL=y, CONFIG_NET_SCH_INGRESS=y,\nCONFIG_TUN=y, CONFIG_NET_ACT_MIRRED=y. In two user and network\nnamespaces (a victim and an attacker), open a TUN device in IFF_TUN mode\nand attach clsact to it and to lo. Redirect ingress traffic from the TUN\ndevice to lo egress with mirred, and install an ife encode action on lo\negress:\n\n  tc qdisc add dev \u003ctun\u003e clsact\n  tc qdisc add dev lo clsact\n  tc filter add dev \u003ctun\u003e ingress matchall action mirred egress \\\n      redirect dev lo\n  tc filter add dev lo egress matchall action ife encode use mark 1 \\\n      action ok\n\nSend a TUN packet shorter than ETH_HLEN (a one-byte payload is enough)\nand receive the emitted frame on the other side. Without the fix the\nouter Ethernet header contains bytes copied past the short packet; with\nthe fix the short skb is dropped. The attacker needs CAP_NET_ADMIN in\nits user namespace; no init-net privilege is required.\n\nThe same path is reachable when the total length is large but the\nEthernet header is not linear: write a non-GSO virtio header with\nhdr_len=1 followed by an 8192-byte packet so that only one byte stays\nlinear. Without the fix the copied header reads past the linear data;\nwith the fix the header is pulled into the linear area before the copy.",
  "id": "GHSA-qccp-4v6q-rvjm",
  "modified": "2026-12-03T12:31:06Z",
  "published": "2026-12-03T12:31:06Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143129"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/11dbce09083473249c3843ff31bf8d8fa01bdeef"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/280ef33ca775a4507adf3fd120956e51b30ed585"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7d44d80e7b89a8ab083156036163cb7c340ea934"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a88dae565a7adfb8b3d5cfb31523c8fddbb503cc"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.