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 5B29416EBE1 for ; Tue, 25 Jun 2024 14:25:34 +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=1719325534; cv=none; b=MwKWfGHuqvFgZTn8ecNwRUKUyS9TUCQxCo82+I9knXZV0J0D0BrolLZ/gQgsNYLWOmAjG1Yuhv6bHX3WG6II7e6SOWqO8dQF2yC6XVh7iZowNnZlLeHjsqXLsxXWUmJpkd7ySHUcuqbFIxzSqKk9o6HPfglSDvGOJ30xXP/BQb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719325534; c=relaxed/simple; bh=wbN/crOKtqFFBDjDHj6dQaGXGnDysgDtdBhD0QxwQDU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eDYpBq2vV1BvqYaZkKQUXlvs6o3V98sYITCBnstTlNI9/lDHQIg4vE76LjEtCpbGMfC7QtrZGDy64Eyd/HZH/A27vairnlwOxLWzQd4udM7cHJX3edLEnwbkR9fIa3GectOWyE7M+dFBTDFvychucJZTp3nEVmsPTKhJOg/YPrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Bg3DWF2A; 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="Bg3DWF2A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D59BEC32786; Tue, 25 Jun 2024 14:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719325534; bh=wbN/crOKtqFFBDjDHj6dQaGXGnDysgDtdBhD0QxwQDU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Bg3DWF2A2CNzrtWg2uGTUhxvkWPDyowtOtAJyLlrPd5dSe26gglltbK4P02eloklH ltz+s71MaKq88MlDgtbdMFlsNqHgPgWT+192qMwgXoKWegQKCuKzBWEKLk8JcWwxOs jv9vmxyPASuJas3f9Cawzbep7Wz9MIkx7OHFcPR0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39464: media: v4l: async: Fix notifier list entry init Date: Tue, 25 Jun 2024 16:25:16 +0200 Message-ID: <2024062513-CVE-2024-39464-6214@gregkh> X-Mailer: git-send-email 2.45.2 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=2285; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wbN/crOKtqFFBDjDHj6dQaGXGnDysgDtdBhD0QxwQDU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlVlz0bahpt4zfWzz/4KvWs48wqi8+xCcsknXffeit7X O/4xszCjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI71cM8/0tltnafLi/tm5i S/XThiePOGT7DRkWXClXS/K4+P756+vvU09O1GsonirIAAA= 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: v4l: async: Fix notifier list entry init struct v4l2_async_notifier has several list_head members, but only waiting_list and done_list are initialized. notifier_entry was kept 'zeroed' leading to an uninitialized list_head. This results in a NULL-pointer dereference if csi2_async_register() fails, e.g. node for remote endpoint is disabled, and returns -ENOTCONN. The following calls to v4l2_async_nf_unregister() results in a NULL pointer dereference. Add the missing list head initializer. The Linux kernel CVE team has assigned CVE-2024-39464 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit b8ec754ae4c5 and fixed in 6.6.34 with commit a80d1da923f6 Issue introduced in 6.6 with commit b8ec754ae4c5 and fixed in 6.9.5 with commit 44f6d619c30f Issue introduced in 6.6 with commit b8ec754ae4c5 and fixed in 6.10-rc1 with commit 6d8acd02c4c6 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-39464 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-async.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/a80d1da923f671c1e6a14e8417cd2f117b27a442 https://git.kernel.org/stable/c/44f6d619c30f0c65fcdd2b6eba70fdb4460d87ad https://git.kernel.org/stable/c/6d8acd02c4c6a8f917eefac1de2e035521ca119d