cve-2024-58099
Vulnerability from cvelistv5
Published
2025-04-29 11:45
Modified
2025-04-29 11:45
Severity ?
Summary
vmxnet3: Fix packet corruption in vmxnet3_xdp_xmit_frame
Impacted products
LinuxLinux
LinuxLinux
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/vmxnet3/vmxnet3_xdp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "59ba6cdadb9c26b606a365eb9c9b25eb2052622d",
              "status": "affected",
              "version": "54f00cce11786742bd11e5e68c3bf85e6dc048c9",
              "versionType": "git"
            },
            {
              "lessThan": "f82eb34fb59a8fb96c19f4f492c20eb774140bb5",
              "status": "affected",
              "version": "54f00cce11786742bd11e5e68c3bf85e6dc048c9",
              "versionType": "git"
            },
            {
              "lessThan": "4678adf94da4a9e9683817b246b58ce15fb81782",
              "status": "affected",
              "version": "54f00cce11786742bd11e5e68c3bf85e6dc048c9",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/vmxnet3/vmxnet3_xdp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.59",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.12",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvmxnet3: Fix packet corruption in vmxnet3_xdp_xmit_frame\n\nAndrew and Nikolay reported connectivity issues with Cilium\u0027s service\nload-balancing in case of vmxnet3.\n\nIf a BPF program for native XDP adds an encapsulation header such as\nIPIP and transmits the packet out the same interface, then in case\nof vmxnet3 a corrupted packet is being sent and subsequently dropped\non the path.\n\nvmxnet3_xdp_xmit_frame() which is called e.g. via vmxnet3_run_xdp()\nthrough vmxnet3_xdp_xmit_back() calculates an incorrect DMA address:\n\n  page = virt_to_page(xdpf-\u003edata);\n  tbi-\u003edma_addr = page_pool_get_dma_addr(page) +\n                  VMXNET3_XDP_HEADROOM;\n  dma_sync_single_for_device(\u0026adapter-\u003epdev-\u003edev,\n                             tbi-\u003edma_addr, buf_size,\n                             DMA_TO_DEVICE);\n\nThe above assumes a fixed offset (VMXNET3_XDP_HEADROOM), but the XDP\nBPF program could have moved xdp-\u003edata. While the passed buf_size is\ncorrect (xdpf-\u003elen), the dma_addr needs to have a dynamic offset which\ncan be calculated as xdpf-\u003edata - (void *)xdpf, that is, xdp-\u003edata -\nxdp-\u003edata_hard_start."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-04-29T11:45:30.997Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/59ba6cdadb9c26b606a365eb9c9b25eb2052622d"
        },
        {
          "url": "https://git.kernel.org/stable/c/f82eb34fb59a8fb96c19f4f492c20eb774140bb5"
        },
        {
          "url": "https://git.kernel.org/stable/c/4678adf94da4a9e9683817b246b58ce15fb81782"
        }
      ],
      "title": "vmxnet3: Fix packet corruption in vmxnet3_xdp_xmit_frame",
      "x_generator": {
        "engine": "bippy-1.1.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-58099",
    "datePublished": "2025-04-29T11:45:30.997Z",
    "dateReserved": "2025-03-06T15:52:09.189Z",
    "dateUpdated": "2025-04-29T11:45:30.997Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-58099\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-04-29T12:15:31.053\",\"lastModified\":\"2025-04-29T13:52:10.697\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nvmxnet3: Fix packet corruption in vmxnet3_xdp_xmit_frame\\n\\nAndrew and Nikolay reported connectivity issues with Cilium\u0027s service\\nload-balancing in case of vmxnet3.\\n\\nIf a BPF program for native XDP adds an encapsulation header such as\\nIPIP and transmits the packet out the same interface, then in case\\nof vmxnet3 a corrupted packet is being sent and subsequently dropped\\non the path.\\n\\nvmxnet3_xdp_xmit_frame() which is called e.g. via vmxnet3_run_xdp()\\nthrough vmxnet3_xdp_xmit_back() calculates an incorrect DMA address:\\n\\n  page = virt_to_page(xdpf-\u003edata);\\n  tbi-\u003edma_addr = page_pool_get_dma_addr(page) +\\n                  VMXNET3_XDP_HEADROOM;\\n  dma_sync_single_for_device(\u0026adapter-\u003epdev-\u003edev,\\n                             tbi-\u003edma_addr, buf_size,\\n                             DMA_TO_DEVICE);\\n\\nThe above assumes a fixed offset (VMXNET3_XDP_HEADROOM), but the XDP\\nBPF program could have moved xdp-\u003edata. While the passed buf_size is\\ncorrect (xdpf-\u003elen), the dma_addr needs to have a dynamic offset which\\ncan be calculated as xdpf-\u003edata - (void *)xdpf, that is, xdp-\u003edata -\\nxdp-\u003edata_hard_start.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/4678adf94da4a9e9683817b246b58ce15fb81782\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/59ba6cdadb9c26b606a365eb9c9b25eb2052622d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f82eb34fb59a8fb96c19f4f492c20eb774140bb5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...
  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.