CVE-2026-63929 (GCVE-0-2026-63929)

Vulnerability from cvelistv5 – Published: 2026-07-19 14:55 – Updated: 2026-07-19 14:55
VLAI
Title
iio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf()
Summary
In the Linux kernel, the following vulnerability has been resolved: iio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf() iio_buffer_enqueue_dmabuf() allocates a struct iio_dma_fence (104 bytes, kmalloc-128) via kmalloc_obj()+dma_fence_init(), which sets the initial kref to 1. It then calls dma_resv_add_fence() which takes a second reference (kref=2), and stores a raw pointer in block->fence. On the success path the function returns without calling dma_fence_put() to release the initial reference, so every buffer enqueue permanently leaks one kmalloc-128 allocation. The iio_buffer_cleanup() work item only releases the temporary reference taken during completion signalling by iio_buffer_signal_dmabuf_done(); the initial reference from dma_fence_init() is never released. With four iio_rwdev instances at 240kHz and 512 samples per buffer, this produces ~1875 kmalloc-128 allocations per second matching the observed slab growth exactly. A test with ftrace confirmed that the dma_fence_destroy event was never triggered. Fix by calling dma_fence_put() after dma_resv_add_fence(), transferring ownership of the fence to the DMA reservation object. The DMA fence then gets properly discarded after being signalled.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f , < 9678aeed8b77d495a417dd057d479f3733094019 (git)
Affected: 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f , < 3412a95afaa5d3262008dfc34f3c7be33d8151dc (git)
Affected: 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f , < 96cdeaba6a008503455b78a9641c05c2a886a7ec (git)
Affected: 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f , < a093999355084bdbfe6e97f1dd232e58a1525f0b (git)
Create a notification for this product.
Linux Linux Affected: 6.11
Unaffected: 0 , < 6.11 (semver)
Unaffected: 6.12.93 , ≤ 6.12.* (semver)
Unaffected: 6.18.35 , ≤ 6.18.* (semver)
Unaffected: 7.0.12 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/industrialio-buffer.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "9678aeed8b77d495a417dd057d479f3733094019",
              "status": "affected",
              "version": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
              "versionType": "git"
            },
            {
              "lessThan": "3412a95afaa5d3262008dfc34f3c7be33d8151dc",
              "status": "affected",
              "version": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
              "versionType": "git"
            },
            {
              "lessThan": "96cdeaba6a008503455b78a9641c05c2a886a7ec",
              "status": "affected",
              "version": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
              "versionType": "git"
            },
            {
              "lessThan": "a093999355084bdbfe6e97f1dd232e58a1525f0b",
              "status": "affected",
              "version": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/industrialio-buffer.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.11"
            },
            {
              "lessThan": "6.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.93",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.93",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.35",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.12",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf()\n\niio_buffer_enqueue_dmabuf() allocates a struct iio_dma_fence (104 bytes,\nkmalloc-128) via kmalloc_obj()+dma_fence_init(), which sets the initial\nkref to 1.  It then calls dma_resv_add_fence() which takes a second\nreference (kref=2), and stores a raw pointer in block-\u003efence.\n\nOn the success path the function returns without calling dma_fence_put()\nto release the initial reference, so every buffer enqueue permanently\nleaks one kmalloc-128 allocation.\n\nThe iio_buffer_cleanup() work item only releases the temporary reference\ntaken during completion signalling by iio_buffer_signal_dmabuf_done();\nthe initial reference from dma_fence_init() is never released.\n\nWith four iio_rwdev instances at 240kHz and 512 samples per buffer,\nthis produces ~1875 kmalloc-128 allocations per second matching the\nobserved slab growth exactly. A test with ftrace confirmed that the\ndma_fence_destroy event was never triggered.\n\nFix by calling dma_fence_put() after dma_resv_add_fence(), transferring\nownership of the fence to the DMA reservation object. The DMA fence then\ngets properly discarded after being signalled."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-19T14:55:29.309Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/9678aeed8b77d495a417dd057d479f3733094019"
        },
        {
          "url": "https://git.kernel.org/stable/c/3412a95afaa5d3262008dfc34f3c7be33d8151dc"
        },
        {
          "url": "https://git.kernel.org/stable/c/96cdeaba6a008503455b78a9641c05c2a886a7ec"
        },
        {
          "url": "https://git.kernel.org/stable/c/a093999355084bdbfe6e97f1dd232e58a1525f0b"
        }
      ],
      "title": "iio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-63929",
    "datePublished": "2026-07-19T14:55:29.309Z",
    "dateReserved": "2026-07-19T07:54:57.021Z",
    "dateUpdated": "2026-07-19T14:55:29.309Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-63929",
      "date": "2026-07-21",
      "epss": "0.002",
      "percentile": "0.10014"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-63929\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-19T16:17:11.277\",\"lastModified\":\"2026-07-19T16:17:11.277\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\niio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf()\\n\\niio_buffer_enqueue_dmabuf() allocates a struct iio_dma_fence (104 bytes,\\nkmalloc-128) via kmalloc_obj()+dma_fence_init(), which sets the initial\\nkref to 1.  It then calls dma_resv_add_fence() which takes a second\\nreference (kref=2), and stores a raw pointer in block-\u003efence.\\n\\nOn the success path the function returns without calling dma_fence_put()\\nto release the initial reference, so every buffer enqueue permanently\\nleaks one kmalloc-128 allocation.\\n\\nThe iio_buffer_cleanup() work item only releases the temporary reference\\ntaken during completion signalling by iio_buffer_signal_dmabuf_done();\\nthe initial reference from dma_fence_init() is never released.\\n\\nWith four iio_rwdev instances at 240kHz and 512 samples per buffer,\\nthis produces ~1875 kmalloc-128 allocations per second matching the\\nobserved slab growth exactly. A test with ftrace confirmed that the\\ndma_fence_destroy event was never triggered.\\n\\nFix by calling dma_fence_put() after dma_resv_add_fence(), transferring\\nownership of the fence to the DMA reservation object. The DMA fence then\\ngets properly discarded after being signalled.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/iio/industrialio-buffer.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f\",\"lessThan\":\"9678aeed8b77d495a417dd057d479f3733094019\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f\",\"lessThan\":\"3412a95afaa5d3262008dfc34f3c7be33d8151dc\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f\",\"lessThan\":\"96cdeaba6a008503455b78a9641c05c2a886a7ec\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f\",\"lessThan\":\"a093999355084bdbfe6e97f1dd232e58a1525f0b\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/iio/industrialio-buffer.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.11\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.11\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.93\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.35\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.12\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3412a95afaa5d3262008dfc34f3c7be33d8151dc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9678aeed8b77d495a417dd057d479f3733094019\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/96cdeaba6a008503455b78a9641c05c2a886a7ec\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a093999355084bdbfe6e97f1dd232e58a1525f0b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-07-21T13:41:28+00:00",
      "cve": "CVE-2026-63929",
      "id": "CVE-2026-63929",
      "initial_release_date": "2026-07-19T00:00:00+00:00",
      "product_status:known_affected": "76",
      "product_status:known_not_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: iio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-63929.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…