GHSA-76PV-J6HV-F39X

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

media: em28xx: hold the vb2 queue lock when releasing the queue on close

Commit de626073dfcb ("media: em28xx: drop 'users' field") replaced the vb2_fop_release() call in em28xx_v4l2_close() with _vb2_fop_release(filp, NULL) under dev->lock. vb2_fop_release() took the vb2 queue lock, but the new call takes no lock at all.

The video and VBI queues have their own locks (vb_queue_lock and vb_vbi_queue_lock), and v4l2_ioctl_get_lock() serializes the queue ioctls with those rather than dev->lock. The queue can therefore be released on close while another file handle is in the middle of VIDIOC_REQBUFS. __vb2_queue_alloc() adds each buffer to the queue before allocating its planes, so the release can find an MMAP buffer whose mem_priv is still NULL and hand it to vb2_vmalloc_put():

BUG: kernel NULL pointer dereference, address: 0000000000000020 RIP: 0010:vb2_vmalloc_put+0xe/0x50 [videobuf2_vmalloc] Call Trace: __vb2_queue_free+0x14e/0x350 [videobuf2_common] vb2_core_queue_release+0x3b/0x80 [videobuf2_common] _vb2_fop_release+0x44/0x70 [videobuf2_v4l2] em28xx_v4l2_close+0x60/0x140 [em28xx_v4l] v4l2_release+0x9d/0xf0 [videodev] __fput+0xfd/0x280

This was hit with OBS on a MyGica iGrabber (card=105).

Pass the queue lock to _vb2_fop_release(). Taking it while holding dev->lock matches the existing order in em28xx_v4l2_fini(), where vb2_video_unregister_device() takes the queue lock under dev->lock.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139560"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:19:36Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: hold the vb2 queue lock when releasing the queue on close\n\nCommit de626073dfcb (\"media: em28xx: drop \u0027users\u0027 field\") replaced the\nvb2_fop_release() call in em28xx_v4l2_close() with\n_vb2_fop_release(filp, NULL) under dev-\u003elock. vb2_fop_release() took\nthe vb2 queue lock, but the new call takes no lock at all.\n\nThe video and VBI queues have their own locks (vb_queue_lock and\nvb_vbi_queue_lock), and v4l2_ioctl_get_lock() serializes the queue\nioctls with those rather than dev-\u003elock. The queue can therefore be\nreleased on close while another file handle is in the middle of\nVIDIOC_REQBUFS. __vb2_queue_alloc() adds each buffer to the queue before\nallocating its planes, so the release can find an MMAP buffer whose\nmem_priv is still NULL and hand it to vb2_vmalloc_put():\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000020\n  RIP: 0010:vb2_vmalloc_put+0xe/0x50 [videobuf2_vmalloc]\n  Call Trace:\n   __vb2_queue_free+0x14e/0x350 [videobuf2_common]\n   vb2_core_queue_release+0x3b/0x80 [videobuf2_common]\n   _vb2_fop_release+0x44/0x70 [videobuf2_v4l2]\n   em28xx_v4l2_close+0x60/0x140 [em28xx_v4l]\n   v4l2_release+0x9d/0xf0 [videodev]\n   __fput+0xfd/0x280\n\nThis was hit with OBS on a MyGica iGrabber (card=105).\n\nPass the queue lock to _vb2_fop_release(). Taking it while holding\ndev-\u003elock matches the existing order in em28xx_v4l2_fini(), where\nvb2_video_unregister_device() takes the queue lock under dev-\u003elock.",
  "id": "GHSA-76pv-j6hv-f39x",
  "modified": "2026-11-30T15:32:36Z",
  "published": "2026-11-30T15:32:36Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139560"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/37f4b2004b9a22e70a289be77451f9f2b278142a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/748b6ef3cb9785b8774f406a8bc33e7cee297373"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



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. The method is described in a publication.

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.