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 70BF34F4746 for ; Wed, 16 Sep 2026 10:38:06 +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=1789555110; cv=none; b=jhDJYbn0Tkbc2pq9KYmRi6zkUN8P6rWTgQkjhx8dy4RW8mzeQ8mmUAQNhNj92yaVEdB42ZE1eKzIiD40baiLbTrPUx6glIMhVk1ydGCMNZCVeKWc2rS0s12r0PvTzmu9+/diVlQsigoSuBrVMrRCOKI4ETsYgZNssFc1Uo5H8iY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555110; c=relaxed/simple; bh=N8d31Ky0sRGnZJeHMqjKOjTXkgXB742WJydp7i99giM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bKtBtNHsRtWk5gncN/9izkZDz/Z/TAPFugUEGtjocGKLRmpEAI7UrYfJSqaO01bq0RM2RzEgfQtFMQkcYK88cZBY5tFfo+3LaJ08USQh7YmlgHaLJ+3uOeiQYlS/INugIEYCTwPJJkQwtx2qjXn/2JWJ+88IP4D6FW2D9YL0wVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LC7+IPPI; 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="LC7+IPPI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC43A1F00893; Wed, 16 Sep 2026 10:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555081; bh=oADGgzgC/hjgIT9p8cGdiWUukVftJ+vcc7uOoKTHhCI=; h=From:To:Cc:Subject:Date:Reply-To; b=LC7+IPPIdazrk3/eoCK2a3iOyJYaXA7QLjiue3yhrFyA+iQd574nHAF8AaGU1wA5L Th9f4nd65xTVaiVAR7wRXJBTUIB/avC9nQMT4Nii14XSYAq26zY3AXMtu+S+DV7RAy LUjD9jSAYTvSTd6b4aP2MwVWhGtInvSvTRRCViXM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89900: media: cec: core: Fix kmemleak due to missed rc_free_device() call Date: Wed, 16 Sep 2026 11:30:30 +0100 Message-ID: <2026091638-CVE-2026-89900-b1b4@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=3885; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XQhhm8fw9WDiMkCdt2p/9uFFJujqLf8sL6IewSPVAqA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8iezx06ZMcVk2sndFe3/Z7IzO89pPDZhUtqyDZlTi nXbAvbLdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1FYzLDhpJSvBtNb/mcWB fe/den/OtPyc3cAw309awGnFtuL6fo7qotrCqXdSvVXfAAA= 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: cec: core: Fix kmemleak due to missed rc_free_device() call The commit dccc0c3ddf8f ("media: rc: fix race between unregister and urb/irq callbacks") removed the implicit call to rc_free_device() from rc_unregister_device(). However, the commit missed to remove the NULL assignment of adap->rc that is now causing rc_free_device() to never be called on an allocated rc device. kmemleak reports following after e.g. dw-hdmi unbind: unreferenced object 0xffff00010ac10000 (size 4096): comm "kworker/u16:1", pid 39, jiffies 4294897739 hex dump (first 32 bytes): 20 23 4b 0a 01 00 ff ff 08 00 c1 0a 01 00 ff ff #K............. 08 00 c1 0a 01 00 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc e11baccc): kmemleak_alloc+0x38/0x44 __kmalloc_cache_noprof+0x4a8/0x5e0 rc_allocate_device+0x48/0x2a0 cec_allocate_adapter+0x3ac/0x800 dw_hdmi_cec_probe+0x264/0x634 platform_probe+0xc0/0x188 really_probe+0x4a4/0x8e0 __driver_probe_device+0x2f8/0x440 driver_probe_device+0x60/0x160 __device_attach_driver+0x1a0/0x2a0 bus_for_each_drv+0x100/0x1a0 __device_attach+0x174/0x350 device_initial_probe+0x90/0xb0 bus_probe_device+0x4c/0x120 device_add+0xdec/0x116c platform_device_add+0x354/0x598 Remove the assignment of adap->rc to NULL to let cec_delete_adapter() free the allocated rc device after last user of the cec device exits to fix the kmemleak. The Linux kernel CVE team has assigned CVE-2026-89900 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.143 with commit a7becb58f6b8a3a3efe5d3acfd52e2c107de6772 and fixed in 6.6.157 with commit 954ee95a03b4d31d4505591bfaba02c24b75776b Issue introduced in 6.12.93 with commit 75977f5f5c4974c72bbedefbf09ad33ebbaa36f1 and fixed in 6.12.110 with commit f28a8e1ba4d67a18e4662e5acefd5a4389322366 Issue introduced in 6.18.35 with commit e250b672d40a9e0d97a8895cbb301248bea0fce6 and fixed in 6.18.51 with commit 695063fc57574dd117b1bc750ca189cf03a2caad Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.2.5 with commit cca2407794795cecff7f8e5f5a79f4ef6b1d6f6c Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.3-rc1 with commit a24ba0653f7154e671dc8d2bf64682ab2d042792 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-89900 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/cec/core/cec-core.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/954ee95a03b4d31d4505591bfaba02c24b75776b https://git.kernel.org/stable/c/f28a8e1ba4d67a18e4662e5acefd5a4389322366 https://git.kernel.org/stable/c/695063fc57574dd117b1bc750ca189cf03a2caad https://git.kernel.org/stable/c/cca2407794795cecff7f8e5f5a79f4ef6b1d6f6c https://git.kernel.org/stable/c/a24ba0653f7154e671dc8d2bf64682ab2d042792