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 3673B4A2D for ; Tue, 27 Feb 2024 18:41:01 +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=1709059262; cv=none; b=tL5gpy717vIFnp41NwSXXLtmnEfbTGMXL/gYV9f5ISq/j3tecwrzvDebtf8GowC9OJ/yoh/KUbEfVdPj4jUROpb2BG6VuwLEnE2j18HvRNiE6H5/qOqvyOJfJnAWqmj51c1IQkD9lwRW21bQDOKKMv74n14eQutaqzuqZhSayPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059262; c=relaxed/simple; bh=zaNrTzAxN+DJQbCoHAw0KDB8F4Fil63RTIpLRsjc7qU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LRMyxf9fEK7Hl2OolKD3Q6kzE137IzNvcwrkfn6i07EwK1I2LARcLJsN/4CRnxVxHiJhPvXzNAeHNsruQxBdD4Ha2/dObdBuqNyhvKnYWmOv+4fjVyGFiAlPXd4LDTAFwBdH+ds4I9Ilw6/Y3XwdKod8FJ8kRXZKpIQsjdvsf6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PCUzKcsK; 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="PCUzKcsK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B136C433C7; Tue, 27 Feb 2024 18:41:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059261; bh=zaNrTzAxN+DJQbCoHAw0KDB8F4Fil63RTIpLRsjc7qU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PCUzKcsK4w3mjR9llDxe0xwcgd+k6AafFDnMiOgs6coPdZVljEV28uWOXn/yOUER2 ihGZtatgf5SP8w+mwBUZpuy1hrtgekaXhfvanIWJbvi0RqFeb0dQ7KazxU2D8L2r97 VaWIAPf9EiVeRjAF1gSVdJH86WZL+fpd4Aok7mtw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2020-36777: media: dvbdev: Fix memory leak in dvb_media_device_free() Date: Tue, 27 Feb 2024 19:40:39 +0100 Message-ID: <20240227184057.2368370-2-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: media: dvbdev: Fix memory leak in dvb_media_device_free() dvb_media_device_free() is leaking memory. Free `dvbdev->adapter->conn` before setting it to NULL, as documented in include/media/media-device.h: "The media_entity instance itself must be freed explicitly by the driver if required." The Linux kernel CVE team has assigned CVE-2020-36777 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 4.9.269 with commit 06854b943e05 Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 4.14.233 with commit 32168ca1f123 Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 4.19.191 with commit cd89f79be5d5 Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 5.4.118 with commit 9185b3b1c143 Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 5.10.36 with commit 43263fd43083 Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 5.11.20 with commit 9ad15e214fcd Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 5.12.3 with commit cede24d13be6 Issue introduced in 4.5 with commit 0230d60e4661 and fixed in 5.13 with commit bf9a40ae8d72 Please see https://www.kernel.org or 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-2020-36777 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/dvb-core/dvbdev.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/06854b943e0571ccbd7ad0a529babed1a98ff275 https://git.kernel.org/stable/c/32168ca1f123316848fffb85d059860adf3c409f https://git.kernel.org/stable/c/cd89f79be5d553c78202f686e8e4caa5fbe94e98 https://git.kernel.org/stable/c/9185b3b1c143b8da409c19ac5a785aa18d67a81b https://git.kernel.org/stable/c/43263fd43083e412311fa764cd04a727b0c6a749 https://git.kernel.org/stable/c/9ad15e214fcd73694ea51967d86055f47b802066 https://git.kernel.org/stable/c/cede24d13be6c2a62be6d7ceea63c2719b0cfa82 https://git.kernel.org/stable/c/bf9a40ae8d722f281a2721779595d6df1c33a0bf