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 84A161F4738 for ; Fri, 27 Dec 2024 14:24:17 +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=1735309460; cv=none; b=Al0GBAnjvC1zpH22OGNUsxGIv+YdNAfWIe8oGhAOnd+zydPnoTPAN5v9h82Kn/rH+0QKQYxlumnGSo5AxpDdOCCrTigxCDjykg0Ik82dv8mVEbpA357dIqwWtsuyk9mzVs0m1SIfMVrZhERzo3PDhhsYv5xZhn5UgAsfqp+A2kI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309460; c=relaxed/simple; bh=dMveSBij0RWxCn9gEyssAVNdyMm/ygE5r5+lPoYP4hE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BkKXCeJC+lg95MCfvWZTnKggAGNGHjLHhoy/hvVtzvCw2c6+9HGH32YBYFxqSOm4q1QzpHfWIJYzyaeUzBWw9i11wn6VCFUyTh2aWfY88lacKVxobFyJnLDO5LxzybRBDOVy97FS8/rWxx2I26LjIUsZwxT1NBYksWwgLFuyXoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sf2WeYwW; 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="sf2WeYwW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F596C4CED0; Fri, 27 Dec 2024 14:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309457; bh=dMveSBij0RWxCn9gEyssAVNdyMm/ygE5r5+lPoYP4hE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sf2WeYwWu3rya+RjyfedWRYivkxTwpXXbLRNHq1zqWfa6Fjz2xkNR94A5spDu0HVk 9q9lm1bwt5g9BUfKPrI54dPMcL/TNPT7gYAKEOdEZhsadeCVSWOShJHgw5z+sq8xiP B5n5JN1KrkKmg7PnPOCcNAQl6YMERGseJsfCYlL0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56572: media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal() Date: Fri, 27 Dec 2024 15:23:23 +0100 Message-ID: <2024122717-CVE-2024-56572-b0fd@gregkh> X-Mailer: git-send-email 2.47.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=3142; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dMveSBij0RWxCn9gEyssAVNdyMm/ygE5r5+lPoYP4hE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5O0KnKvM8N0uR2le2eNPyumjvJXdVF6lUxuY+srEU6 Jh9N+BTRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkfzPD/DQ+EZvJ6Z/b/++X 6Ot7f+f21liGzwwLzixjCPtkqvzfor1KWodP9RfzLSV+AA== 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: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal() The buffer in the loop should be released under the exception path, otherwise there may be a memory leak here. To mitigate this, free the buffer when allegro_alloc_buffer fails. The Linux kernel CVE team has assigned CVE-2024-56572 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit f20387dfd065693ba7ea2788a2f893bf653c9cb8 and fixed in 5.4.287 with commit cf642904be39ae0d441dbdfa8f485e0a46260be4 Issue introduced in 5.3 with commit f20387dfd065693ba7ea2788a2f893bf653c9cb8 and fixed in 5.10.231 with commit 74a65313578b35e1239966adfa7ac2bdd60caf00 Issue introduced in 5.3 with commit f20387dfd065693ba7ea2788a2f893bf653c9cb8 and fixed in 5.15.174 with commit 64f72a738864b506ab50b4a6cb3ce3c3e04b71af Issue introduced in 5.3 with commit f20387dfd065693ba7ea2788a2f893bf653c9cb8 and fixed in 6.1.120 with commit 17e5613666209be4e5be1f1894f1a6014a8a0658 Issue introduced in 5.3 with commit f20387dfd065693ba7ea2788a2f893bf653c9cb8 and fixed in 6.6.64 with commit 6712a28a4f923ffdf51cff267ad05a634ee1babc Issue introduced in 5.3 with commit f20387dfd065693ba7ea2788a2f893bf653c9cb8 and fixed in 6.12.4 with commit 891b5790bee8fc6ddba17874dd87a646128d0b99 Issue introduced in 5.3 with commit f20387dfd065693ba7ea2788a2f893bf653c9cb8 and fixed in 6.13-rc1 with commit 0f514068fbc5d4d189c817adc7c4e32cffdc2e47 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-56572 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/platform/allegro-dvt/allegro-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/cf642904be39ae0d441dbdfa8f485e0a46260be4 https://git.kernel.org/stable/c/74a65313578b35e1239966adfa7ac2bdd60caf00 https://git.kernel.org/stable/c/64f72a738864b506ab50b4a6cb3ce3c3e04b71af https://git.kernel.org/stable/c/17e5613666209be4e5be1f1894f1a6014a8a0658 https://git.kernel.org/stable/c/6712a28a4f923ffdf51cff267ad05a634ee1babc https://git.kernel.org/stable/c/891b5790bee8fc6ddba17874dd87a646128d0b99 https://git.kernel.org/stable/c/0f514068fbc5d4d189c817adc7c4e32cffdc2e47