GHSA-WW4R-FJW7-GP4H

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

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

net: gro: invalidate frag0 after a pull

Since commit bd56a29c7a4e ("net: gro: change skb_gro_network_header()"), skb_gro_header_slow() no longer invalidates NAPI_GRO_CB(skb)->frag0 after pskb_may_pull(). skb_gro_may_pull() keeps comparing against the frag0_len value set in skb_gro_reset_offset(), assuming that after a slow pull, all later accesses are beyond frag0_len.

This is not true:

  • udp4_gro_receive() and udp6_gro_receive() read the network header with skb_gro_network_header() after udp_gro_udphdr() pulled the UDP header.

  • vxlan_gro_receive() calls skb_gro_remcsum_cleanup() at a lower offset after the inner handlers pulled their headers.

  • skb_gro_remcsum_process() can pull beyond the inner Ethernet header before eth_gro_receive() reads it.

  • napi_frags_skb() calls __skb_pull(skb, ETH_HLEN) after a slow pull, so frag0 still points to the Ethernet header.

If the pull consumed the first page fragment, __skb_pull_tail() released it. If the head had to grow, pskb_expand_head() freed the old one. These reads, and the 2-byte write in skb_gro_remcsum_cleanup(), then access memory the skb no longer holds a reference on.

esp4_gro_receive(), esp6_gro_receive(), skb_gro_receive_list() and udp_gro_receive_segment() also pull directly and never invalidated frag0.

Add skb_gro_frag0_invalidate(), which only clears frag0_len, and call it before each of these pulls. This is a single store in the slow path, and frag0 stays non NULL, so skb_gro_network_header() does not need a NULL test.

frag0 must be invalidated even if the pull fails: __pskb_pull_tail() can return NULL after pskb_expand_head() freed the old head, for instance if a frag_list member has to be cloned or pulled.

As frag0 is now invalidated before a pull that can fail, gro_try_pull_from_frag0() can see an skb whose linear part does not cover skb_gro_offset() while frag0 still points to the start of the packet, for instance after skb_gro_remcsum_cleanup() pulled a shorter length. Copying from frag0 would then corrupt the headers: only use frag0 while frag0_len is not zero, and use pskb_may_pull() otherwise. If this pull fails, for instance after a failed pskb_pull() in esp4_gro_receive(), do not hold the packet: later GRO lookups and gro_complete() handlers expect its headers in the linear part.

This was found by Taesoo Kim and Cen Zhang, using LLM assisted code analysis, and confirmed with reproducers.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143136"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:47Z",
    "severity": "HIGH"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: gro: invalidate frag0 after a pull\n\nSince commit bd56a29c7a4e (\"net: gro: change skb_gro_network_header()\"),\nskb_gro_header_slow() no longer invalidates NAPI_GRO_CB(skb)-\u003efrag0\nafter pskb_may_pull(). skb_gro_may_pull() keeps comparing against the\nfrag0_len value set in skb_gro_reset_offset(), assuming that after a\nslow pull, all later accesses are beyond frag0_len.\n\nThis is not true:\n\n- udp4_gro_receive() and udp6_gro_receive() read the network header\n  with skb_gro_network_header() after udp_gro_udphdr() pulled the\n  UDP header.\n\n- vxlan_gro_receive() calls skb_gro_remcsum_cleanup() at a lower\n  offset after the inner handlers pulled their headers.\n\n- skb_gro_remcsum_process() can pull beyond the inner Ethernet header\n  before eth_gro_receive() reads it.\n\n- napi_frags_skb() calls __skb_pull(skb, ETH_HLEN) after a slow pull,\n  so frag0 still points to the Ethernet header.\n\nIf the pull consumed the first page fragment, __skb_pull_tail() released\nit. If the head had to grow, pskb_expand_head() freed the old one.\nThese reads, and the 2-byte write in skb_gro_remcsum_cleanup(), then\naccess memory the skb no longer holds a reference on.\n\nesp4_gro_receive(), esp6_gro_receive(), skb_gro_receive_list() and\nudp_gro_receive_segment() also pull directly and never invalidated\nfrag0.\n\nAdd skb_gro_frag0_invalidate(), which only clears frag0_len, and call\nit before each of these pulls. This is a single store in the slow path,\nand frag0 stays non NULL, so skb_gro_network_header() does not need\na NULL test.\n\nfrag0 must be invalidated even if the pull fails: __pskb_pull_tail()\ncan return NULL after pskb_expand_head() freed the old head, for\ninstance if a frag_list member has to be cloned or pulled.\n\nAs frag0 is now invalidated before a pull that can fail,\ngro_try_pull_from_frag0() can see an skb whose linear part does not\ncover skb_gro_offset() while frag0 still points to the start of the\npacket, for instance after skb_gro_remcsum_cleanup() pulled a shorter\nlength. Copying from frag0 would then corrupt the headers: only use\nfrag0 while frag0_len is not zero, and use pskb_may_pull() otherwise.\nIf this pull fails, for instance after a failed pskb_pull() in\nesp4_gro_receive(), do not hold the packet: later GRO lookups and\ngro_complete() handlers expect its headers in the linear part.\n\nThis was found by Taesoo Kim and Cen Zhang, using LLM assisted code\nanalysis, and confirmed with reproducers.",
  "id": "GHSA-ww4r-fjw7-gp4h",
  "modified": "2026-12-04T06:31:08Z",
  "published": "2026-12-03T12:31:06Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143136"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/98d949a15ff9d3fffaa6983223178374aab92db6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cb5c7e185101448d0551890da3a3fde53bf3eb13"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e5da3b8cec34860146bf7049b9475a70d77457a4"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}



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.