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 8A9D1446B4 for ; Tue, 21 May 2024 15:38:56 +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=1716305936; cv=none; b=SL5rqMO5d7moWaf+uZOkUDEgVMy1TVhn27beBS6/dfB2wrJQ1IQQHj/wDlEKUjw9nm2v/7kea26Rtcmj/2oDEMN/L5KOCbAZDlTSN7Jothk+4+WYSOHsHWFqWEg8wcL+1FwBZcbW+TjPkjXJL/Q8STBRHVHQYZLwzoYmRUpqFr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305936; c=relaxed/simple; bh=lUDXjlIWOoAZif+WIgHIhFrIUfOEXZHIuOs2roxF/co=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G34C+E2xaR+Mtl2GoN5BKhul83Glh7/1XyAxZ+Wq/NRy5R9ltklODewERNo2+ZS+XIWBaDw1443TNuK/VIpWO34KKN9Gzgmxu6Td36nK9wg6Q3O997AuThup/QAzCoOvAmze0rC2hGIypcRllZy6LhyRenzfklWsNvjdBQxPuuA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LqcR6LcF; 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="LqcR6LcF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13B63C2BD11; Tue, 21 May 2024 15:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305936; bh=lUDXjlIWOoAZif+WIgHIhFrIUfOEXZHIuOs2roxF/co=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LqcR6LcFwvg8eZeWVLrsRbkGfYKwB9eYqdAkiSEkidXfjcePBhv8qakLOiFgznSKn zXyCL+YemS2d13o97EDeBZE4GBSiAA/0plRGw0qSUYc015RQORIIzekWUjURU2zd5W zjEBY6j5Wh/VGIYKoT0ilTtsBK/x4zk194jIor0c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52841: media: vidtv: mux: Add check and kfree for kstrdup Date: Tue, 21 May 2024 17:32:17 +0200 Message-ID: <2024052111-CVE-2023-52841-1157@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2560; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lUDXjlIWOoAZif+WIgHIhFrIUfOEXZHIuOs2roxF/co=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+++wD9fcs9CxTf3nDk0933veTuu0r98lMOrlGIfRaz QPjHbpiHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR9lqGBTt7EpZrSn9Z/khf 4kdH+9qHzZGVrxnmR7zt7fm52nRt+7R9KeJuhQ56q8Q4AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: media: vidtv: mux: Add check and kfree for kstrdup Add check for the return value of kstrdup() and return the error if it fails in order to avoid NULL pointer dereference. Moreover, use kfree() in the later error handling in order to avoid memory leak. The Linux kernel CVE team has assigned CVE-2023-52841 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit c2f78f0cb294 and fixed in 5.10.201 with commit 64863ba8e6b7 Issue introduced in 5.10 with commit c2f78f0cb294 and fixed in 5.15.139 with commit 980be4c3b0d5 Issue introduced in 5.10 with commit c2f78f0cb294 and fixed in 6.1.63 with commit a254ee1ddc59 Issue introduced in 5.10 with commit c2f78f0cb294 and fixed in 6.5.12 with commit cb1300141199 Issue introduced in 5.10 with commit c2f78f0cb294 and fixed in 6.6.2 with commit aae7598aff29 Issue introduced in 5.10 with commit c2f78f0cb294 and fixed in 6.7 with commit 1fd6eb12642e 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-2023-52841 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/test-drivers/vidtv/vidtv_mux.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/64863ba8e6b7651d994c6e6d506cc8aa2ac45edb https://git.kernel.org/stable/c/980be4c3b0d51c0f873fd750117774561c66cf68 https://git.kernel.org/stable/c/a254ee1ddc592ae1efcce96b8c014e1bd2d5a2b4 https://git.kernel.org/stable/c/cb13001411999adb158b39e76d94705eb2da100d https://git.kernel.org/stable/c/aae7598aff291d4d140be1355aa20930af948785 https://git.kernel.org/stable/c/1fd6eb12642e0c32692924ff359c07de4b781d78