{
  "id": "CVE-2026-31583",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31583",
  "published_at": "2026-04-24T14:42:12.923Z",
  "title": "media: em28xx: fix use-after-free in em28xx_v4l2_open()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: fix use-after-free in em28xx_v4l2_open()\n\nem28xx_v4l2_open() reads dev-\u003ev4l2 without holding dev-\u003elock,\ncreating a race with em28xx_v4l2_init()'s error path and\nem28xx_v4l2_fini(), both of which free the em28xx_v4l2 struct\nand set dev-\u003ev4l2 to NULL under dev-\u003elock.\n\nThis race leads to two issues:\n - use-after-free in v4l2_fh_init() when accessing vdev-\u003ectrl_handler,\n   since the video_device is embedded in the freed em28xx_v4l2 struct.\n - NULL pointer dereference in em28xx_resolution_set() when accessing\n   v4l2-\u003enorm, since dev-\u003ev4l2 has been set to NULL.\n\nFix this by moving the mutex_lock() before the dev-\u003ev4l2 read and\nadding a NULL check for dev-\u003ev4l2 under the lock.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c 3c0283a59e36e3707c4a81f4952e362d31f876b8",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c 2cbf81f76842e46bdf25823c70e1db4044a65678",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c 38a327221f7f765e7d853b7bafe47e342441ec85",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c b5d141ea15f173f15b9f0a72965902f3428c0d92",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c 5fb2940327722b4684d2f964b54c1c90aa277324",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c 871b8ea8ef39a6c253594649f4339378fad3d0dd",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c 6b9e66437cc6123ddedac141e1b8b6fcf57d2972",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c dd2b888e08d3b3d6aacd65d76cd44fac11da750f",
          "\u003e= 8139a4d583abad45eb987b5a99b3281b6d435b7e, \u003c a66485a934c7187ae8e36517d40615fa2e961cff"
        ],
        "fixed_in": [
          "3c0283a59e36e3707c4a81f4952e362d31f876b8",
          "2cbf81f76842e46bdf25823c70e1db4044a65678",
          "38a327221f7f765e7d853b7bafe47e342441ec85",
          "b5d141ea15f173f15b9f0a72965902f3428c0d92",
          "5fb2940327722b4684d2f964b54c1c90aa277324",
          "871b8ea8ef39a6c253594649f4339378fad3d0dd",
          "6b9e66437cc6123ddedac141e1b8b6fcf57d2972",
          "dd2b888e08d3b3d6aacd65d76cd44fac11da750f",
          "a66485a934c7187ae8e36517d40615fa2e961cff"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.16"
        ],
        "fixed_in": [
          "0",
          "5.10.258",
          "5.15.209",
          "6.1.175",
          "6.6.136",
          "6.12.83",
          "6.18.24",
          "6.19.14",
          "7.0.1",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3c0283a59e36e3707c4a81f4952e362d31f876b8 or 2cbf81f76842e46bdf25823c70e1db4044a65678 or 38a327221f7f765e7d853b7bafe47e342441ec85 or b5d141ea15f173f15b9f0a72965902f3428c0d92 or 5fb2940327722b4684d2f964b54c1c90aa277324 or 871b8ea8ef39a6c253594649f4339378fad3d0dd or 6b9e66437cc6123ddedac141e1b8b6fcf57d2972 or dd2b888e08d3b3d6aacd65d76cd44fac11da750f or a66485a934c7187ae8e36517d40615fa2e961cff or later.",
      "Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.136 or 6.12.83 or 6.18.24 or 6.19.14 or 7.0.1 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
