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 C978812BF3D for ; Wed, 1 May 2024 13:07:02 +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=1714568822; cv=none; b=Gt8ULJhjdusWQWSStHX8DzRo2AAzXXv12YFJg17xo+i9rVbyTA1TQmsXvT4v2NPWpY+Gtdz0qtjeAFA7VeA62Lk9+UbT/J1hR7vmm7K1+ZIHn40cFi+x3rGk9BYRoD3+pF6k1SJ4nVQ2CyeIm3D6j3bLPtdvTH3e48ZmlCffJAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568822; c=relaxed/simple; bh=Zi8wGtfq0UsjCu72ThkQQhPgFsAhzvuHXpP7J13j+mM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mLi1xJlf1up3Qnj8+aPYqQ2tdOWtLEQ/XIo2CJic5L2SSF3UwCKsIY2eGNSisPLGODCjwZxoRtXT4vvr2KSK0ORiEu41ZGOnFe6dbAYtgqEJq6ee/OvGLTIN9SEVx7EaaHHPs/kQKpuX+9w8qNZ6NwIfBfjpT5EK6y8+jx38PwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j99cbraW; 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="j99cbraW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F26B2C113CC; Wed, 1 May 2024 13:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568822; bh=Zi8wGtfq0UsjCu72ThkQQhPgFsAhzvuHXpP7J13j+mM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j99cbraWazqO8fulj/lpjiY6yUTXfC8lFHbK12XPU7m5lTH+NEykDQv4V+IooFNsN 84P4sb755IGpoRPbWw9Hb+ZT8mUSpx1isZK4ogE3bGb4Ns6fgDwdiHFnvDNXRuUmV/ /83mNIxhhc6XMMjVTKIurfSX7ExqMTEZexirem7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27077: media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity Date: Wed, 1 May 2024 15:06:48 +0200 Message-ID: <2024050134-CVE-2024-27077-3482@gregkh> 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: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3081; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Zi8wGtfq0UsjCu72ThkQQhPgFsAhzvuHXpP7J13j+mM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGdlH2Vd8ep0/cfFik7+rm6OXJTB5vj5832ZywusXF9 ppomrhmRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEz4Bhnkn9ZUe53zYP+muV NFh4CxeLZ/ZXMsz3OLi5Qmbr2o+JRsuPcr7YKflhl3grAA== 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: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity The entity->name (i.e. name) is allocated in v4l2_m2m_register_entity but isn't freed in its following error-handling paths. This patch adds such deallocation to prevent memleak of entity->name. The Linux kernel CVE team has assigned CVE-2024-27077 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit be2fff656322 and fixed in 4.19.311 with commit 3dd8abb0ed0e Issue introduced in 4.19 with commit be2fff656322 and fixed in 5.4.273 with commit 0175f2d34c85 Issue introduced in 4.19 with commit be2fff656322 and fixed in 5.10.214 with commit afd2a82fe300 Issue introduced in 4.19 with commit be2fff656322 and fixed in 5.15.153 with commit dc866b69cc51 Issue introduced in 4.19 with commit be2fff656322 and fixed in 6.1.83 with commit 0c9550b032de Issue introduced in 4.19 with commit be2fff656322 and fixed in 6.6.23 with commit 90029b9c979b Issue introduced in 4.19 with commit be2fff656322 and fixed in 6.7.11 with commit 5dc319cc3c4f Issue introduced in 4.19 with commit be2fff656322 and fixed in 6.8.2 with commit 9c23ef30e840 Issue introduced in 4.19 with commit be2fff656322 and fixed in 6.9-rc1 with commit 8f94b49a5b5d 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-2024-27077 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-mem2mem.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/3dd8abb0ed0e0a7c66d6d677c86ccb188cc39333 https://git.kernel.org/stable/c/0175f2d34c85744f9ad6554f696cf0afb5bd04e4 https://git.kernel.org/stable/c/afd2a82fe300032f63f8be5d6cd6981e75f8bbf2 https://git.kernel.org/stable/c/dc866b69cc51af9b8509b4731b8ce2a4950cd0ef https://git.kernel.org/stable/c/0c9550b032de48d6a7fa6a4ddc09699d64d9300d https://git.kernel.org/stable/c/90029b9c979b60de5cb2b70ade4bbf61d561bc5d https://git.kernel.org/stable/c/5dc319cc3c4f7b74f7dfba349aa26f87efb52458 https://git.kernel.org/stable/c/9c23ef30e840fedc66948299509f6c2777c9cf4f https://git.kernel.org/stable/c/8f94b49a5b5d386c038e355bef6347298aabd211