From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 70B58594817 for ; Fri, 11 Sep 2026 20:07:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789157224; cv=none; b=emWnnhnZypO2+C8OSIkCKdP/vIWIymj8hzLRc6YLc0RC+E6Beafjwi/aqIjpJTyuHqJhFWACKu72pZEVJpah8tmnFKbwOP6nfkkmLNWdZy+2WieX/tzGe9/5s/2/BfKmRHVE7mfQ5WWiQyWc/CeIhtIz4vld+2kUa9e0lrqzBes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789157224; c=relaxed/simple; bh=c/xpztUgkdT4lGLruE7rZKTRpBC/4nzpkAPDSbiIssI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kyOjucQCjXqPIVU+v4c25BdQKlrzpo87+5aAipzotX/V1UHZ0yHcVaH+bgEE+fHVF1qaNVbZTh7ZPox9ot78L+L6kCZlPZHzb4cpE7GZgNa/sMdc97YMShnLQWgUpC40ImzODFsuE8GeKm5DYciQdH76rwQxj/CIH6rAhyIbujY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nw3pVnQ3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nw3pVnQ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47C9A1F000FF; Fri, 11 Sep 2026 20:06:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789157216; bh=/6AVc8mxUAdsC6OxeKuFmhNwp1/IkxDwSPiTMhPBW5I=; h=From:To:Cc:Subject:Date:Reply-To; b=nw3pVnQ3SQ5eRx0/kMG6JTOEmqxrTUZ1lbIf3ZE3nCLNytXMNFaNSvGfTnOsO1Sma ykbj1fQ8M+vcf9Dd+FEnFuqF+1MEuQXqOxRpnR85u2PNG5iUos1IUKK6rSn+5cZ4Tc HgeZHJELEKwfdA0kF5xUSWh85K20AaBFi21XtZbc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89741: Revert "media: v4l2-dev: fix error handling in __video_register_device()" Date: Fri, 11 Sep 2026 21:47:10 +0200 Message-ID: <2026091104-CVE-2026-89741-1937@gregkh> X-Mailer: git-send-email 2.55.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=3739; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q57Gs84KYqeYJJOww0mN0kmkaetT1WhZ5NQJf6VDcCs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLInvX5GoFpV2Of3EtctP35k+BC34zv49c9KtF+mT96 lNfjva3dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEnocxzBWP0f44mbfW/Jf6 T+EZpi88ckNrtRgWHGm1FbzC8LooMlen3fr3Pc1ZnrnHAQ== 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: Revert "media: v4l2-dev: fix error handling in __video_register_device()" This reverts commit 2a934fdb01db6458288fc9386d3d8ceba6dd551a. The intentions of that patch were good, but it doesn't work. The idea is that if device_register fails, you have to do a put_device to let the ref counter release resources. However, the V4L2 API says that if video_register_device() fails, then you have to call video_device_release(), which kfree()s the video_device struct. But the put_device() will already have freed the struct, so you end up in a double-free scenario. There is not really a good way of fixing this without breaking video_register_device() into two parts, one that initializes everything, and one that does the actual device_register, and then converting all V4L2 drivers to this new model. That is a massive job, and it is very unlikely that device_register will fail. So rather than ending up in a double-free scenario, just revert this patch, and in that case we'll have a small memory leak. Which is a lot more robust. The Linux kernel CVE team has assigned CVE-2026-89741 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.35 with commit 2429bb9fad88c8fa84c4956b0a21cf5afe5e92b7 and fixed in 6.12.109 with commit 712ca1cf756de2557a116e0df55791bac0c9f99e Issue introduced in 6.16 with commit 2a934fdb01db6458288fc9386d3d8ceba6dd551a and fixed in 6.18.50 with commit aad08b5f67d2a8116e1a00bce2611c1513b10bce Issue introduced in 6.16 with commit 2a934fdb01db6458288fc9386d3d8ceba6dd551a and fixed in 7.2.4 with commit ce792b94e03882108019ba996c1a7c4d4e09be2c Issue introduced in 6.16 with commit 2a934fdb01db6458288fc9386d3d8ceba6dd551a and fixed in 7.3-rc1 with commit e7600f5cee5de14065f950807931d6e6d40fb2d7 Issue introduced in 5.4.295 with commit ee141706e701356dda41c6fed9ee18bf427c28e3 Issue introduced in 5.10.239 with commit e5c8e62ae551e0ad2e15412aa0c57c2856d59677 Issue introduced in 5.15.186 with commit 8b451a9a46f2bfc510e6d5c2492df91647586184 Issue introduced in 6.1.142 with commit b6be1f5633eae200af2527e9eeb7f51be5739b0f Issue introduced in 6.6.95 with commit ae7b143e05b36fc69d6571751855946cc45064c6 Issue introduced in 6.15.4 with commit 4451412739ed33a49b34624299394ee575116d0c 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-89741 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/v4l2-core/v4l2-dev.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/712ca1cf756de2557a116e0df55791bac0c9f99e https://git.kernel.org/stable/c/aad08b5f67d2a8116e1a00bce2611c1513b10bce https://git.kernel.org/stable/c/ce792b94e03882108019ba996c1a7c4d4e09be2c https://git.kernel.org/stable/c/e7600f5cee5de14065f950807931d6e6d40fb2d7