Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099712; b=X9E425NySO2SmeDDUGiGnjY3mopQ9xrhE7diG+RYnQ0FMgfjSTN8h1O+HfsZ8wbam/wl Km6og/GJ9ukSylqOaGrUip+oQOTO+7oH9o0yLCiOC1uq1M75JBejwL8XfQvVx6w3uPUPH N/frpS5YLQVYGcwZUjFJWnGaFa26A2X9J+EWZu3AY9yin+w9wyRslLeuTpcM/wYxv0cBR kET7aaAI6duRQlu65yObhQ2QJdYKhCNpZzoYJ5NVsB9q7qVUfWf0XixE/ttkr+iuAgcrA YljzpesqEmMe8WkL5YaCdsH0hg5f1HAF9SNr9FWUZOFmORs5nHZhZVCVYeB9nFV3D4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099712; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=k2Zwpi69ToQLfRWwM6sZaqhzgFwm2/pVK3KLKbjxBhE=; b=D39b2ELm1BppmZE+1kE+oxJOn036dxsV2PB2nIxCPY1Q/qk+201nkI3ls7E/cGGvAW9t 1LVFpqjlQmAVqH5vlK1g9u+K6BSIMO40wXWOIKiDBFQH9xn7x0knbTlOfztLGgwgmylkY 7zy5e8p7AZDYO0LuFEQL64SBWpgWoC15zs0cSoR2L2eifjRDI+Hly7oMeySEQwed77unE QlUsHBBWsZfDc4WYC/LJzXQELx2tOWMMJY3vn9u3m2cr5bjWP5hqycU/DuVtbYMeKQQrw fVpqXqhaFlJVbgtvBI19t7yXdSl9m9GVNyjWJwx6BGt368tf0zq2mprDfmi5dYrkR1g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TYFDlS6+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2E9E6070C12 for ; Thu, 19 Nov 2026 14:48:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TYFDlS6+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86EFA1F000CD; Thu, 19 Nov 2026 14:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099712; bh=k2Zwpi69ToQLfRWwM6sZaqhzgFwm2/pVK3KLKbjxBhE=; h=From:To:Cc:Subject:Date:Reply-To; b=TYFDlS6+kb5PotNRVV4j1cmVEB+TTY68CGerBOMEZKAmLmiWD1Hv3aIOWkxY/rPrP 0ruEsaDJu0ztCYw9g/AubyaJUEBAAZMlASCqabUWoc3Jq0+0sFEyKDuzZmv6GR7Mac GkCVdsSjbiMSI37eK2NOrMNH+EE+VCGcOw0CBb2o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99439: media: rc: Ensure registered is cleared in error path Date: Thu, 19 Nov 2026 15:25:37 +0100 Message-ID: <2026111904-CVE-2026-99439-e870@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2807; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HdBvcWB532a0pSYLHhTqPfrUh++QWQOrTYfZ7fVvV2Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2VpunAh90Gqnd8NGuC+TIaHuV03omuTdHU+7Cy7WJ UV1XiztiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcdmaYX/4pR9UnYFa1tqqw 7rbTJn+OrpygxzBPPdomtZ25Q3WKVfm6l+em7FWdGSoIAA== 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: rc: Ensure registered is cleared in error path If rc_register_device() fails, ensure that registered is not set to true. If lirc_register() succeeded, then userspace could have an open file descriptor open. This leads to a use-after-free. lirc_unregister() must be called with registered = false, else there is a possibility that an fd is open and polling, which would never return POLLERR unless registered is false. Note that registered must be changed under dev->lock, many functions read registered under lock (e.g. lirc_ioctl). The Linux kernel CVE team has assigned CVE-2026-99439 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.93 with commit 75977f5f5c4974c72bbedefbf09ad33ebbaa36f1 and fixed in 6.12.117 with commit 4c94661218f2accf309372cac59ebe9e21853349 Issue introduced in 6.18.35 with commit e250b672d40a9e0d97a8895cbb301248bea0fce6 and fixed in 6.18.61 with commit 63644a8b70dab7e67a8a6f563b7df9647324a41f Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.3.2 with commit 7a6e8c9726dfd1cb284708f7b179a6bc9bcd6e0e Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.4-rc1 with commit 37efd09ba2c62e46e3a3a793025c186f8cd1a417 Issue introduced in 6.6.143 with commit a7becb58f6b8a3a3efe5d3acfd52e2c107de6772 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-99439 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/rc/rc-main.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/4c94661218f2accf309372cac59ebe9e21853349 https://git.kernel.org/stable/c/63644a8b70dab7e67a8a6f563b7df9647324a41f https://git.kernel.org/stable/c/7a6e8c9726dfd1cb284708f7b179a6bc9bcd6e0e https://git.kernel.org/stable/c/37efd09ba2c62e46e3a3a793025c186f8cd1a417