Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E0CC3DD537 for ; Fri, 24 Apr 2026 14:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041866; cv=none; b=oI1j9Z/oi+s7dTr8XHAp7VElWBtHkBBOLTmQxtKFzILKs88JAkAYvKE3n2R7o2rvePGRL0PpPY6Fc3MPLwAqLEWMuOeJCeBZRktwbXLLYXAIMISeZwJDcJF8Va7PkVHWwwmrMuVgsCcJawoh0h0l/ncEXEAi9Zc7sWTDh6pEAcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041866; c=relaxed/simple; bh=E3yX3SwYCZWR3K5cTK/d+tG1aXSTlnuCKTYH+6GNhio=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SCbkclkpt0Ag1EE5imI4rQ4p2SepdMgYPRbpMBsLz3EGuaG89zidzOQhXqPu709Q+4/4fPXEDA2wm7RQQyA2zY4zUL4T2xUwjSgPsRsd0I9O9NRwr3oUv6eT6Mq11M35vMfCE0sbGzomSmluY3fJX1erD9LEFm7jsEWiWtGsTSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CWZs0TKf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CWZs0TKf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C41A4C19425; Fri, 24 Apr 2026 14:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041866; bh=E3yX3SwYCZWR3K5cTK/d+tG1aXSTlnuCKTYH+6GNhio=; h=From:To:Cc:Subject:Date:Reply-To:From; b=CWZs0TKfiA4lfraqLDCunnosk13NXZR2IFg9Lwy7vaNnF8SKUuqsI0/FYFmyYzYpQ p2bSKfii1yXgW1SzlChgByLBYbdAR4yb/m4JeBfsH1CGFX0bmHrRMPN2MzGpNhXbT7 yG0fbepf5jP3VounOR93BTvb1KTQg9HMDSay/lQI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31583: media: em28xx: fix use-after-free in em28xx_v4l2_open() Date: Fri, 24 Apr 2026 16:43:19 +0200 Message-ID: <2026042412-CVE-2026-31583-edcc@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2634; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ws49wnuBi5Rfh3C1OLfgd09sN4eSNRm1+ePYISUXZiM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvGxteByxbJ9215NClHVeuVj0y8a8r27J76r6lFi9ly trXHxIr6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJdEYzzPeR5Vrzfu4C/Yh5 p89YV5XevRDz7CTDPHt7K/fN83W79WIv92V6Pb/OdpP5LgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: em28xx: fix use-after-free in em28xx_v4l2_open() em28xx_v4l2_open() reads dev->v4l2 without holding dev->lock, creating a race with em28xx_v4l2_init()'s error path and em28xx_v4l2_fini(), both of which free the em28xx_v4l2 struct and set dev->v4l2 to NULL under dev->lock. This race leads to two issues: - use-after-free in v4l2_fh_init() when accessing vdev->ctrl_handler, since the video_device is embedded in the freed em28xx_v4l2 struct. - NULL pointer dereference in em28xx_resolution_set() when accessing v4l2->norm, since dev->v4l2 has been set to NULL. Fix this by moving the mutex_lock() before the dev->v4l2 read and adding a NULL check for dev->v4l2 under the lock. The Linux kernel CVE team has assigned CVE-2026-31583 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit 5fb2940327722b4684d2f964b54c1c90aa277324 Fixed in 6.18.24 with commit 871b8ea8ef39a6c253594649f4339378fad3d0dd Fixed in 6.19.14 with commit 6b9e66437cc6123ddedac141e1b8b6fcf57d2972 Fixed in 7.0.1 with commit dd2b888e08d3b3d6aacd65d76cd44fac11da750f Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31583 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/usb/em28xx/em28xx-video.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/5fb2940327722b4684d2f964b54c1c90aa277324 https://git.kernel.org/stable/c/871b8ea8ef39a6c253594649f4339378fad3d0dd https://git.kernel.org/stable/c/6b9e66437cc6123ddedac141e1b8b6fcf57d2972 https://git.kernel.org/stable/c/dd2b888e08d3b3d6aacd65d76cd44fac11da750f https://git.kernel.org/stable/c/a66485a934c7187ae8e36517d40615fa2e961cff