CVE-2026-23386 (GCVE-0-2026-23386)

Vulnerability from cvelistv5 – Published: 2026-03-25 10:28 – Updated: 2026-03-25 10:28
VLAI?
Title
gve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL
Summary
In the Linux kernel, the following vulnerability has been resolved: gve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL In DQ-QPL mode, gve_tx_clean_pending_packets() incorrectly uses the RDA buffer cleanup path. It iterates num_bufs times and attempts to unmap entries in the dma array. This leads to two issues: 1. The dma array shares storage with tx_qpl_buf_ids (union). Interpreting buffer IDs as DMA addresses results in attempting to unmap incorrect memory locations. 2. num_bufs in QPL mode (counting 2K chunks) can significantly exceed the size of the dma array, causing out-of-bounds access warnings (trace below is how we noticed this issue). UBSAN: array-index-out-of-bounds in drivers/net/ethernet/drivers/net/ethernet/google/gve/gve_tx_dqo.c:178:5 index 18 is out of range for type 'dma_addr_t[18]' (aka 'unsigned long long[18]') Workqueue: gve gve_service_task [gve] Call Trace: <TASK> dump_stack_lvl+0x33/0xa0 __ubsan_handle_out_of_bounds+0xdc/0x110 gve_tx_stop_ring_dqo+0x182/0x200 [gve] gve_close+0x1be/0x450 [gve] gve_reset+0x99/0x120 [gve] gve_service_task+0x61/0x100 [gve] process_scheduled_works+0x1e9/0x380 Fix this by properly checking for QPL mode and delegating to gve_free_tx_qpl_bufs() to reclaim the buffers.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 , < 71511dae56a75ce161aa746741e5c498feaea393 (git)
Affected: a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 , < c171f90f58974c784db25e0606051541cb71b7f0 (git)
Affected: a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 , < 07e0c80e17ef781799e7cd5c41a7bf44f1bf6a5f (git)
Affected: a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 , < 3744ebd8ffaa542ae8110fb449adcac0202f4cc8 (git)
Affected: a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 , < fb868db5f4bccd7a78219313ab2917429f715cea (git)
Create a notification for this product.
    Linux Linux Affected: 6.6
Unaffected: 0 , < 6.6 (semver)
Unaffected: 6.6.130 , ≤ 6.6.* (semver)
Unaffected: 6.12.78 , ≤ 6.12.* (semver)
Unaffected: 6.18.17 , ≤ 6.18.* (semver)
Unaffected: 6.19.7 , ≤ 6.19.* (semver)
Unaffected: 7.0-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/google/gve/gve_tx_dqo.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "71511dae56a75ce161aa746741e5c498feaea393",
              "status": "affected",
              "version": "a6fb8d5a8b6925f1e635818d3dd2d89531d4a058",
              "versionType": "git"
            },
            {
              "lessThan": "c171f90f58974c784db25e0606051541cb71b7f0",
              "status": "affected",
              "version": "a6fb8d5a8b6925f1e635818d3dd2d89531d4a058",
              "versionType": "git"
            },
            {
              "lessThan": "07e0c80e17ef781799e7cd5c41a7bf44f1bf6a5f",
              "status": "affected",
              "version": "a6fb8d5a8b6925f1e635818d3dd2d89531d4a058",
              "versionType": "git"
            },
            {
              "lessThan": "3744ebd8ffaa542ae8110fb449adcac0202f4cc8",
              "status": "affected",
              "version": "a6fb8d5a8b6925f1e635818d3dd2d89531d4a058",
              "versionType": "git"
            },
            {
              "lessThan": "fb868db5f4bccd7a78219313ab2917429f715cea",
              "status": "affected",
              "version": "a6fb8d5a8b6925f1e635818d3dd2d89531d4a058",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/google/gve/gve_tx_dqo.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.130",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.78",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.130",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.78",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.17",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.7",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0-rc2",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ngve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL\n\nIn DQ-QPL mode, gve_tx_clean_pending_packets() incorrectly uses the RDA\nbuffer cleanup path. It iterates num_bufs times and attempts to unmap\nentries in the dma array.\n\nThis leads to two issues:\n1. The dma array shares storage with tx_qpl_buf_ids (union).\n Interpreting buffer IDs as DMA addresses results in attempting to\n unmap incorrect memory locations.\n2. num_bufs in QPL mode (counting 2K chunks) can significantly exceed\n the size of the dma array, causing out-of-bounds access warnings\n(trace below is how we noticed this issue).\n\nUBSAN: array-index-out-of-bounds in\ndrivers/net/ethernet/drivers/net/ethernet/google/gve/gve_tx_dqo.c:178:5 index 18 is out of\nrange for type \u0027dma_addr_t[18]\u0027 (aka \u0027unsigned long long[18]\u0027)\nWorkqueue: gve gve_service_task [gve]\nCall Trace:\n\u003cTASK\u003e\ndump_stack_lvl+0x33/0xa0\n__ubsan_handle_out_of_bounds+0xdc/0x110\ngve_tx_stop_ring_dqo+0x182/0x200 [gve]\ngve_close+0x1be/0x450 [gve]\ngve_reset+0x99/0x120 [gve]\ngve_service_task+0x61/0x100 [gve]\nprocess_scheduled_works+0x1e9/0x380\n\nFix this by properly checking for QPL mode and delegating to\ngve_free_tx_qpl_bufs() to reclaim the buffers."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-03-25T10:28:04.118Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/71511dae56a75ce161aa746741e5c498feaea393"
        },
        {
          "url": "https://git.kernel.org/stable/c/c171f90f58974c784db25e0606051541cb71b7f0"
        },
        {
          "url": "https://git.kernel.org/stable/c/07e0c80e17ef781799e7cd5c41a7bf44f1bf6a5f"
        },
        {
          "url": "https://git.kernel.org/stable/c/3744ebd8ffaa542ae8110fb449adcac0202f4cc8"
        },
        {
          "url": "https://git.kernel.org/stable/c/fb868db5f4bccd7a78219313ab2917429f715cea"
        }
      ],
      "title": "gve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-23386",
    "datePublished": "2026-03-25T10:28:04.118Z",
    "dateReserved": "2026-01-13T15:37:46.008Z",
    "dateUpdated": "2026-03-25T10:28:04.118Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-23386\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-03-25T11:16:38.960\",\"lastModified\":\"2026-03-25T15:41:33.977\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ngve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL\\n\\nIn DQ-QPL mode, gve_tx_clean_pending_packets() incorrectly uses the RDA\\nbuffer cleanup path. It iterates num_bufs times and attempts to unmap\\nentries in the dma array.\\n\\nThis leads to two issues:\\n1. The dma array shares storage with tx_qpl_buf_ids (union).\\n Interpreting buffer IDs as DMA addresses results in attempting to\\n unmap incorrect memory locations.\\n2. num_bufs in QPL mode (counting 2K chunks) can significantly exceed\\n the size of the dma array, causing out-of-bounds access warnings\\n(trace below is how we noticed this issue).\\n\\nUBSAN: array-index-out-of-bounds in\\ndrivers/net/ethernet/drivers/net/ethernet/google/gve/gve_tx_dqo.c:178:5 index 18 is out of\\nrange for type \u0027dma_addr_t[18]\u0027 (aka \u0027unsigned long long[18]\u0027)\\nWorkqueue: gve gve_service_task [gve]\\nCall Trace:\\n\u003cTASK\u003e\\ndump_stack_lvl+0x33/0xa0\\n__ubsan_handle_out_of_bounds+0xdc/0x110\\ngve_tx_stop_ring_dqo+0x182/0x200 [gve]\\ngve_close+0x1be/0x450 [gve]\\ngve_reset+0x99/0x120 [gve]\\ngve_service_task+0x61/0x100 [gve]\\nprocess_scheduled_works+0x1e9/0x380\\n\\nFix this by properly checking for QPL mode and delegating to\\ngve_free_tx_qpl_bufs() to reclaim the buffers.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/07e0c80e17ef781799e7cd5c41a7bf44f1bf6a5f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3744ebd8ffaa542ae8110fb449adcac0202f4cc8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/71511dae56a75ce161aa746741e5c498feaea393\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c171f90f58974c784db25e0606051541cb71b7f0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fb868db5f4bccd7a78219313ab2917429f715cea\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…