GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-72138 (GCVE-0-2026-72138)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:53 – Updated: 2026-08-17 05:08
VLAI
Title
xen/gntdev: fix error handling in ioctl
Summary
In the Linux kernel, the following vulnerability has been resolved: xen/gntdev: fix error handling in ioctl When gntdev_ioctl_map_grant_ref() fails to copy the operation result back to userspace after successfully adding the mapping to the list, the error path returns -EFAULT without releasing the reference acquired by gntdev_alloc_map(). The mapping remains in priv->maps with a refcount of 1, causing a memory leak and a dangling list entry. Additionally, gntdev_add_map() may modify map->index to avoid overlap with existing mappings. Therefore, the index returned to userspace must be obtained after gntdev_add_map() completes. Fix this by holding the mutex across gntdev_add_map(), retrieving the correct index, and copy_to_user(). If copy_to_user() fails, remove the mapping from the list and release the reference while still holding the lock. Fix these issues by properly handling all error cases.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 52dc40ef0cfee6ae89b7524967e73f0ba37906d7 (git)
Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 1dd9cb98fe228e017fff9efb33862ff38c741b65 (git)
Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 6df926130aee6cab9b5d2e5b7862e49ccac348dc (git)
Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 311011f8cc206c5af2877b03e3f627ee1b8fe024 (git)
Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 18a693733f7ad004e1ab0466693121ca70cd95dd (git)
Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454 (git)
Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 6883269a323609f68f6faa903f8f8ff3d191cec8 (git)
Affected: 68b025c813c2eb41ff25628e3d4952d5185eb1a4 , < 45ca1afe2fd14c04e37227e79d3f8455831d8408 (git)
guessed Create a notification for this product.
Linux Linux Affected: 2.6.39
Unaffected: 0 , < 2.6.39 (semver)
Unaffected: 5.10.261 , ≤ 5.10.* (semver)
Unaffected: 5.15.212 , ≤ 5.15.* (semver)
Unaffected: 6.1.178 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.97 , ≤ 6.12.* (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/xen/gntdev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "52dc40ef0cfee6ae89b7524967e73f0ba37906d7",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            },
            {
              "lessThan": "1dd9cb98fe228e017fff9efb33862ff38c741b65",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            },
            {
              "lessThan": "6df926130aee6cab9b5d2e5b7862e49ccac348dc",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            },
            {
              "lessThan": "311011f8cc206c5af2877b03e3f627ee1b8fe024",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            },
            {
              "lessThan": "18a693733f7ad004e1ab0466693121ca70cd95dd",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            },
            {
              "lessThan": "16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            },
            {
              "lessThan": "6883269a323609f68f6faa903f8f8ff3d191cec8",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            },
            {
              "lessThan": "45ca1afe2fd14c04e37227e79d3f8455831d8408",
              "status": "affected",
              "version": "68b025c813c2eb41ff25628e3d4952d5185eb1a4",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/xen/gntdev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.39"
            },
            {
              "lessThan": "2.6.39",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.261",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.212",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.261",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.212",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.178",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.97",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "2.6.39",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxen/gntdev: fix error handling in ioctl\n\nWhen gntdev_ioctl_map_grant_ref() fails to copy the operation result\nback to userspace after successfully adding the mapping to the list,\nthe error path returns -EFAULT without releasing the reference\nacquired by gntdev_alloc_map(). The mapping remains in priv-\u003emaps\nwith a refcount of 1, causing a memory leak and a dangling list\nentry.\n\nAdditionally, gntdev_add_map() may modify map-\u003eindex to avoid overlap\nwith existing mappings. Therefore, the index returned to userspace\nmust be obtained after gntdev_add_map() completes.\n\nFix this by holding the mutex across gntdev_add_map(), retrieving\nthe correct index, and copy_to_user(). If copy_to_user() fails,\nremove the mapping from the list and release the reference while\nstill holding the lock.\n\n\nFix these issues by properly handling all error cases."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:08:56.108Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/52dc40ef0cfee6ae89b7524967e73f0ba37906d7"
        },
        {
          "url": "https://git.kernel.org/stable/c/1dd9cb98fe228e017fff9efb33862ff38c741b65"
        },
        {
          "url": "https://git.kernel.org/stable/c/6df926130aee6cab9b5d2e5b7862e49ccac348dc"
        },
        {
          "url": "https://git.kernel.org/stable/c/311011f8cc206c5af2877b03e3f627ee1b8fe024"
        },
        {
          "url": "https://git.kernel.org/stable/c/18a693733f7ad004e1ab0466693121ca70cd95dd"
        },
        {
          "url": "https://git.kernel.org/stable/c/16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454"
        },
        {
          "url": "https://git.kernel.org/stable/c/6883269a323609f68f6faa903f8f8ff3d191cec8"
        },
        {
          "url": "https://git.kernel.org/stable/c/45ca1afe2fd14c04e37227e79d3f8455831d8408"
        }
      ],
      "title": "xen/gntdev: fix error handling in ioctl",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72138",
    "datePublished": "2026-08-15T05:53:12.549Z",
    "dateReserved": "2026-08-09T03:40:39.908Z",
    "dateUpdated": "2026-08-17T05:08:56.108Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72138",
      "date": "2026-09-05",
      "epss": "0.00216",
      "percentile": "0.1198"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72138\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:21:31.337\",\"lastModified\":\"2026-08-17T06:18:13.703\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nxen/gntdev: fix error handling in ioctl\\n\\nWhen gntdev_ioctl_map_grant_ref() fails to copy the operation result\\nback to userspace after successfully adding the mapping to the list,\\nthe error path returns -EFAULT without releasing the reference\\nacquired by gntdev_alloc_map(). The mapping remains in priv-\u003emaps\\nwith a refcount of 1, causing a memory leak and a dangling list\\nentry.\\n\\nAdditionally, gntdev_add_map() may modify map-\u003eindex to avoid overlap\\nwith existing mappings. Therefore, the index returned to userspace\\nmust be obtained after gntdev_add_map() completes.\\n\\nFix this by holding the mutex across gntdev_add_map(), retrieving\\nthe correct index, and copy_to_user(). If copy_to_user() fails,\\nremove the mapping from the list and release the reference while\\nstill holding the lock.\\n\\n\\nFix these issues by properly handling all error cases.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/xen/gntdev.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"52dc40ef0cfee6ae89b7524967e73f0ba37906d7\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"1dd9cb98fe228e017fff9efb33862ff38c741b65\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"6df926130aee6cab9b5d2e5b7862e49ccac348dc\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"311011f8cc206c5af2877b03e3f627ee1b8fe024\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"18a693733f7ad004e1ab0466693121ca70cd95dd\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"6883269a323609f68f6faa903f8f8ff3d191cec8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"68b025c813c2eb41ff25628e3d4952d5185eb1a4\",\"lessThan\":\"45ca1afe2fd14c04e37227e79d3f8455831d8408\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/xen/gntdev.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2.6.39\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"2.6.39\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.261\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.212\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.178\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.145\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.97\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.40\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/18a693733f7ad004e1ab0466693121ca70cd95dd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1dd9cb98fe228e017fff9efb33862ff38c741b65\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/311011f8cc206c5af2877b03e3f627ee1b8fe024\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/45ca1afe2fd14c04e37227e79d3f8455831d8408\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/52dc40ef0cfee6ae89b7524967e73f0ba37906d7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6883269a323609f68f6faa903f8f8ff3d191cec8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6df926130aee6cab9b5d2e5b7862e49ccac348dc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-18T08:38:35+00:00",
      "cve": "CVE-2026-72138",
      "id": "CVE-2026-72138",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: xen/gntdev: fix error handling in ioctl",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72138.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…