Skip to content
Heist/ feed
Unrated

drm/virtio: fix memory leak of fence event on execbuffer failure

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: drm/virtio: fix memory leak of fence event on execbuffer failure virtio_gpu_execbuffer_ioctl() reserves a DRM event with drm_event_reserve_init() when VIRTGPU_EXECBUF_RING_IDX selects a ring that userspace has enabled polling for. virtio_gpu_init_submit() does this before the BO handles, the command buffer, the syncobj arrays and the in-fence are processed, so every later error path runs with the event already pending, including plain argument validation failures such as an invalid bo_handle or an in-syncobj that carries no fence. On those paths, virtio_gpu_cleanup_submit() drops the out-fence without cancelling the event. The fence is freed without ever having been emitted, taking the only driver-side pointer to the event with it. Closing the DRM file does not help. drm_events_release() unlinks pending events but deliberately leaves the freeing to the driver's later drm_send_event(), which never runs for an orphaned event, so the allocation is leaked permanently. Found when fuzzing the virtio driver with Syzkaller: BUG: memory leak unreferenced object 0xffff88802c176e80 (size 96): comm "syz.1.367", pid 10561, jiffies 4294960122 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ c8 6e 17 2c 80 88 ff ff 00 00 00 00 00 00 00 00 .n.,............ backtrace (crc e1973c6b): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4597 [inl

Announced Source revision 1
Original source ↗

CVE-2026-98509

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-2026-98509

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": "cd7f5ca33585918febe5e2f6dc090a21cfa775b0",
        "lessThan": "43bfe2b60c149bf6effda25f245a00509061fa15",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "cd7f5ca33585918febe5e2f6dc090a21cfa775b0",
        "lessThan": "4e333e2336138f4659b1d7a0371c499f80428612",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "cd7f5ca33585918febe5e2f6dc090a21cfa775b0",
        "lessThan": "8fa78900fd24247277c03dc7b8a2864cb12d4340",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "cd7f5ca33585918febe5e2f6dc090a21cfa775b0",
        "lessThan": "ae583668f16d41fcc1b54f45848c1b6ac1d6669a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "cd7f5ca33585918febe5e2f6dc090a21cfa775b0",
        "lessThan": "b74aad23d99b279bb34d135795f39a6d8ecdc075",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/virtio/virtgpu_submit.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.16"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.16",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.112",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.55",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.9",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/virtio/virtgpu_submit.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98509

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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