Skip to content
Heist/ feed
Critical

udp: do not accept non-tunnel GSO skbs landing in a tunnel

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: udp: do not accept non-tunnel GSO skbs landing in a tunnel When rx-udp-gro-forwarding is enabled UDP packets might be GROed when being forwarded. If such packets might land in a tunnel this can cause various issues and udp_gro_receive makes sure this isn't the case by looking for a matching socket. This is performed in udp4/6_gro_lookup_skb but only in the current netns. This is an issue with tunneled packets when the endpoint is in another netns. In such cases the packets will be GROed at the UDP level, which leads to various issues later on. The same thing can happen with rx-gro-list. We saw this with geneve packets being GROed at the UDP level. In such case gso_size is set; later the packet goes through the geneve rx path, the geneve header is pulled, the offset are adjusted and frag_list skbs are not adjusted with regard to geneve. When those skbs hit skb_fragment, it will misbehave. Different outcomes are possible depending on what the GROed skbs look like; from corrupted packets to kernel crashes. One example is a BUG_ON[1] triggered in skb_segment while processing the frag_list. Because gso_size is wrong (geneve header was pulled) skb_segment thinks there is "geneve header size" of data in frag_list, although it's in fact the next packet. The BUG_ON itself has nothing to do with the issue. This is only one of the potential issues. Looking up for a matching socket in udp_gro_receive is fragile: the look

Announced Source revision 1
Original source ↗

CVE-2024-35884

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-35884

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "9fd1ff5d2ac7181844735806b0a703c942365291",
        "lessThan": "3391b157780bbedf8ef9f202cbf10ee90bf6b0f8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9fd1ff5d2ac7181844735806b0a703c942365291",
        "lessThan": "d49ae15a5767d4e9ef8bbb79e42df1bfebc94670",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9fd1ff5d2ac7181844735806b0a703c942365291",
        "lessThan": "d12245080cb259d82b34699f6cd4ec11bdb688bd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9fd1ff5d2ac7181844735806b0a703c942365291",
        "lessThan": "3001e7aa43d6691db2a878b0745b854bf12ddd19",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9fd1ff5d2ac7181844735806b0a703c942365291",
        "lessThan": "35fe0e0b5c00bef7dde74842a2564c43856fbce4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9fd1ff5d2ac7181844735806b0a703c942365291",
        "lessThan": "3d010c8031e39f5fa1e8b13ada77e0321091011f",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "include/linux/udp.h",
      "net/ipv4/udp.c",
      "net/ipv4/udp_offload.c",
      "net/ipv6/udp.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.6"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.6",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.215",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.154",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.85",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.26",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.5",
        "versionType": "semver",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "include/linux/udp.h",
      "net/ipv4/udp.c",
      "net/ipv4/udp_offload.c",
      "net/ipv6/udp.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-35884

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#26528 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement