CVE-2026-99297 (GCVE-0-2026-99297)

Vulnerability from cvelistv5 – Published: 2026-11-16 09:59 – Updated: 2026-11-19 13:52
VLAI
Title
media: em28xx: fix double free in em28xx_alloc_urbs
Summary
In the Linux kernel, the following vulnerability has been resolved: media: em28xx: fix double free in em28xx_alloc_urbs When allocation of usb_bufs->buf[i] fails, em28xx_alloc_urbs() explicitly frees all items within usb_bufs->buf before calling em28xx_uninit_usb_xfer(), which also frees these items, causing them to be freed twice. BUG: KASAN: double-free in usb_free_urb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96) Free of addr ffff88802fd37c00 by task kworker/1:2/1182 Workqueue: events request_module_async Call Trace: kasan_report_invalid_free (mm/kasan/report.c:557) check_slab_allocation (mm/kasan/common.c:235) kfree (./include/linux/kasan.h:199 (discriminator 1) mm/slub.c:2693 (discriminator 1) mm/slub.c:6508 (discriminator 1) mm/slub.c:6801 (discriminator 1)) usb_free_urb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96) usb_free_urb (drivers/usb/core/urb.c:95) em28xx_uninit_usb_xfer (drivers/media/usb/em28xx/em28xx-core.c:964) em28xx_alloc_urbs (drivers/media/usb/em28xx/em28xx-core.c:1076) em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248) request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Allocated by task 1182: kasan_save_stack (mm/kasan/common.c:57) kasan_save_track (mm/kasan/common.c:78) __kasan_kmalloc (mm/kasan/common.c:398 mm/kasan/common.c:415) __kmalloc_noprof (./include/linux/kasan.h:263 mm/slub.c:5414 mm/slub.c:5439) em28xx_alloc_urbs (./include/linux/slab.h:995 ./include/linux/slab.h:1312 drivers/media/usb/em28xx/em28xx-core.c:1081) em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248) request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Freed by task 1182: kasan_save_stack (mm/kasan/common.c:57) kasan_save_track (mm/kasan/common.c:78) kasan_save_free_info (mm/kasan/generic.c:584) __kasan_slab_free (mm/kasan/common.c:253 mm/kasan/common.c:285) kfree (./include/linux/kasan.h:235 mm/slub.c:2748 mm/slub.c:6508 mm/slub.c:6801) em28xx_alloc_urbs (drivers/media/usb/em28xx/em28xx-core.c:1084) em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248) request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Remove the explicit cleanup loop and let em28xx_uninit_usb_xfer() handle the cleanup.
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: d571b592c6206d33731f41aa710fa0f69ac8611b , < 9bc203322dbc8c2fe608555e387d4b493c4da2ef (git)
Affected: d571b592c6206d33731f41aa710fa0f69ac8611b , < ecf511b8157e0648080bdae37f4f2eb98328c4b2 (git)
Affected: d571b592c6206d33731f41aa710fa0f69ac8611b , < 660c91b3100c949a0c33faf9d659d1c786ccd1ee (git)
Affected: d571b592c6206d33731f41aa710fa0f69ac8611b , < fd427b8adae437cac78a2332241a03cac56e95c2 (git)
Create a notification for this product.
Linux Linux Affected: 4.17
Unaffected: 0 , < 4.17 (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/usb/em28xx/em28xx-core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "9bc203322dbc8c2fe608555e387d4b493c4da2ef",
              "status": "affected",
              "version": "d571b592c6206d33731f41aa710fa0f69ac8611b",
              "versionType": "git"
            },
            {
              "lessThan": "ecf511b8157e0648080bdae37f4f2eb98328c4b2",
              "status": "affected",
              "version": "d571b592c6206d33731f41aa710fa0f69ac8611b",
              "versionType": "git"
            },
            {
              "lessThan": "660c91b3100c949a0c33faf9d659d1c786ccd1ee",
              "status": "affected",
              "version": "d571b592c6206d33731f41aa710fa0f69ac8611b",
              "versionType": "git"
            },
            {
              "lessThan": "fd427b8adae437cac78a2332241a03cac56e95c2",
              "status": "affected",
              "version": "d571b592c6206d33731f41aa710fa0f69ac8611b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/usb/em28xx/em28xx-core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.17"
            },
            {
              "lessThan": "4.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "4.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: fix double free in em28xx_alloc_urbs\n\nWhen allocation of usb_bufs-\u003ebuf[i] fails, em28xx_alloc_urbs()\nexplicitly frees all items within usb_bufs-\u003ebuf before calling\nem28xx_uninit_usb_xfer(), which also frees these items, causing them to be\nfreed twice.\n\nBUG: KASAN: double-free in usb_free_urb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96)\nFree of addr ffff88802fd37c00 by task kworker/1:2/1182\nWorkqueue: events request_module_async\nCall Trace:\n  kasan_report_invalid_free (mm/kasan/report.c:557)\n  check_slab_allocation (mm/kasan/common.c:235)\n  kfree (./include/linux/kasan.h:199 (discriminator 1) mm/slub.c:2693 (discriminator 1) mm/slub.c:6508 (discriminator 1) mm/slub.c:6801 (discriminator 1))\n  usb_free_urb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96)\n  usb_free_urb (drivers/usb/core/urb.c:95)\n  em28xx_uninit_usb_xfer (drivers/media/usb/em28xx/em28xx-core.c:964)\n  em28xx_alloc_urbs (drivers/media/usb/em28xx/em28xx-core.c:1076)\n  em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698)\n  em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248)\n  request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685)\n  process_one_work (kernel/workqueue.c:3396)\n  worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)\n  kthread (kernel/kthread.c:436)\n  ret_from_fork (arch/x86/kernel/process.c:158)\n  ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n  Allocated by task 1182:\n  kasan_save_stack (mm/kasan/common.c:57)\n  kasan_save_track (mm/kasan/common.c:78)\n  __kasan_kmalloc (mm/kasan/common.c:398 mm/kasan/common.c:415)\n  __kmalloc_noprof (./include/linux/kasan.h:263 mm/slub.c:5414 mm/slub.c:5439)\n  em28xx_alloc_urbs (./include/linux/slab.h:995 ./include/linux/slab.h:1312 drivers/media/usb/em28xx/em28xx-core.c:1081)\n  em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698)\n  em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248)\n  request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685)\n  process_one_work (kernel/workqueue.c:3396)\n  worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)\n  kthread (kernel/kthread.c:436)\n  ret_from_fork (arch/x86/kernel/process.c:158)\n  ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n  Freed by task 1182:\n  kasan_save_stack (mm/kasan/common.c:57)\n  kasan_save_track (mm/kasan/common.c:78)\n  kasan_save_free_info (mm/kasan/generic.c:584)\n  __kasan_slab_free (mm/kasan/common.c:253 mm/kasan/common.c:285)\n  kfree (./include/linux/kasan.h:235 mm/slub.c:2748 mm/slub.c:6508 mm/slub.c:6801)\n  em28xx_alloc_urbs (drivers/media/usb/em28xx/em28xx-core.c:1084)\n  em28xx_dvb_init (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698)\n  em28xx_init_extension (drivers/media/usb/em28xx/em28xx-core.c:1248)\n  request_module_async (drivers/media/usb/em28xx/em28xx-cards.c:3685)\n  process_one_work (kernel/workqueue.c:3396)\n  worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)\n  kthread (kernel/kthread.c:436)\n  ret_from_fork (arch/x86/kernel/process.c:158)\n  ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n\nRemove the explicit cleanup loop and let em28xx_uninit_usb_xfer()\nhandle the cleanup."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - em28xx_alloc_urbs() double-frees usb_bufs-\u003ebuf[i] only when kzalloc(sb_size) fails. A local user hits that from VIDIOC_STREAMON: vb2_ioctl_streamon() -\u003e em28xx_start_analog_streaming() -\u003e em28xx_init_usb_xfer(EM28XX_ANALOG_MODE). No USB packet or remote protocol message carries the failing allocation.\nAC:L - The same process retries VIDIOC_STREAMON while exhausting GFP_KERNEL memory so a later kzalloc(sb_size) fails after an earlier loop pass stored buf[j], set URB_FREE_BUFFER, and pointed urb-\u003etransfer_buffer at it. sb_size is 384*512 (bulk) or 64*alt_max_pkt_size_isoc. Both frees then run in that error path with no victim-side race.\nPR:L - em28xx_v4l2_open() calls v4l2_fh_open() and vb2_ioctl_streamon() performs no capable() check. Access is the em28xx /dev/video node, which udev uaccess or the video group grants to an unprivileged seated user; init-namespace root is not required.\nUI:N - The attacker opens the already-registered em28xx /dev/video node and issues VIDIOC_STREAMON, or a vb2 read because io_modes includes VB2_READ, while applying the memory pressure itself.\nS:U - The duplicate kfree is of the host kernel transfer buffer usb_bufs-\u003ebuf[i] inside the em28xx driver. Escalation stays in that kernel; it does not cross a KVM/Xen guest boundary or bypass an IOMMU.\nC:H - After at least one successful iteration, the failure path kfree()s usb_bufs-\u003ebuf[j] and em28xx_uninit_usb_xfer() calls usb_free_urb(), whose urb_destroy() kfree()s urb-\u003etransfer_buffer again because URB_FREE_BUFFER is set. Returning that slot twice lets a later allocation alias it and disclose kernel memory.\nI:H - The urb_destroy() second kfree of the same transfer_buffer corrupts the SLUB or buddy freelist for that object. An overlapping allocation can write through the alias into live kernel memory and overwrite function pointers, giving a control-flow hijack primitive.\nA:H - The reported trace is a KASAN double-free in usb_free_urb() from em28xx_uninit_usb_xfer() called by em28xx_alloc_urbs() in em28xx_dvb_init()/request_module_async. Without KASAN the second free trips a hardened freelist BUG or oopses, and STREAMON can be repeated."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-19T13:52:21.567Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/9bc203322dbc8c2fe608555e387d4b493c4da2ef"
        },
        {
          "url": "https://git.kernel.org/stable/c/ecf511b8157e0648080bdae37f4f2eb98328c4b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/660c91b3100c949a0c33faf9d659d1c786ccd1ee"
        },
        {
          "url": "https://git.kernel.org/stable/c/fd427b8adae437cac78a2332241a03cac56e95c2"
        }
      ],
      "title": "media: em28xx: fix double free in em28xx_alloc_urbs",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99297",
    "datePublished": "2026-11-16T09:59:24.346Z",
    "dateReserved": "2026-09-25T10:25:14.406Z",
    "dateUpdated": "2026-11-19T13:52:21.567Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99297",
      "date": "2026-11-19",
      "epss": "0.00157",
      "percentile": "0.04944"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-19T01:04:46.000Z",
      "cve": "CVE-2026-99297",
      "id": "msrc_CVE-2026-99297",
      "initial_release_date": "2026-11-16T23:27:08.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "media: em28xx: fix double free in em28xx_alloc_urbs",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99297.json",
      "version": "3"
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-19T16:52:59+00:00",
      "cve": "CVE-2026-99297",
      "id": "CVE-2026-99297",
      "initial_release_date": "2026-11-16T09:59:24.346000+00:00",
      "product_status:known_affected": "49",
      "product_status:known_not_affected": "155",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via double-free in em28xx media driver",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99297.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.