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 E9E8D14264C for ; Tue, 21 May 2024 14:40:00 +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=1716302401; cv=none; b=DwLTssaB+kBrS3UwxjBf2EsfliqRjrb4AHEy/lPx8hSlj2L79yJGuYpCDp0Mp7+Uem/yAf3mp9zoE5JXvwA8+22NG7e475YOQ1ITq4qN9tbv+kcivYXFKxepSNQd8F8F2adYCR8wtlAHirnDZNbQXLrt8X1z0MMy7QsBoLtSCcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302401; c=relaxed/simple; bh=q3qggISjsKW5BTU7JxDG+jutd/ZU8KykFjCNiRKQc5A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u/cc66uRzYNQg6aC8y9TxAHysaYVZ2FqJ3n9vZG7LYeLi8I0gSvZFc52QwyB8IszozYelWB8dgarNKaguehXhV9znteRbSmgjVaLIa6rCZn4ag9yLrEDB+GdLrdEerteFObNMFaxaW/NQHisosaq1S535kpEDRTTQybJiSDFXE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UK8AD0UP; 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="UK8AD0UP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73CC2C2BD11; Tue, 21 May 2024 14:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302400; bh=q3qggISjsKW5BTU7JxDG+jutd/ZU8KykFjCNiRKQc5A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UK8AD0UPMKTxhDOJiG7pbRrcQHXMh/l+ETxPs4loOFuDG3a3CtvIIAAwjSNrp4A5G e6hXkenFZn4tBWqeC+a0cIz9M7tlnwxxUOZqpvdQoq9RpFvmCrOhjEG/ZR90fmJxo6 hOAnahOoYHYCmxrikPZXTf6J/793RGoUD5IZoLiE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47344: media: zr364xx: fix memory leak in zr364xx_start_readpipe Date: Tue, 21 May 2024 16:36:18 +0200 Message-ID: <2024052138-CVE-2021-47344-ea37@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=3604; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q3qggISjsKW5BTU7JxDG+jutd/ZU8KykFjCNiRKQc5A=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G60+HBEQmsXr/iJnmf7E6uetO/VKftvNuF+m+E7eV XXZ8qdqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRq7wMC87o77jsmXymQOTV iX1Xw5KuLKvcJMSwYP+vearKQRkXQt95aYuf3Lbq7LlzIQA= 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: zr364xx: fix memory leak in zr364xx_start_readpipe syzbot reported memory leak in zr364xx driver. The problem was in non-freed urb in case of usb_submit_urb() fail. backtrace: [] kmalloc include/linux/slab.h:561 [inline] [] usb_alloc_urb+0x66/0xe0 drivers/usb/core/urb.c:74 [] zr364xx_start_readpipe+0x78/0x130 drivers/media/usb/zr364xx/zr364xx.c:1022 [] zr364xx_board_init drivers/media/usb/zr364xx/zr364xx.c:1383 [inline] [] zr364xx_probe+0x6a3/0x851 drivers/media/usb/zr364xx/zr364xx.c:1516 [] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396 [] really_probe+0x159/0x500 drivers/base/dd.c:576 The Linux kernel CVE team has assigned CVE-2021-47344 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 4.4.276 with commit c57b2bd32479 Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 4.9.276 with commit bbc80a972a3c Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 4.14.240 with commit b0633051a6cb Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 4.19.198 with commit 021c294dff03 Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 5.4.133 with commit 0edd67591672 Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 5.10.51 with commit c57bfd8000d7 Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 5.12.18 with commit 5f3f81f1c96b Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 5.13.3 with commit d69b39d89f36 Issue introduced in 2.6.32 with commit ccbf035ae5de and fixed in 5.14 with commit 0a045eac8d04 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-2021-47344 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/usb/zr364xx/zr364xx.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/c57b2bd3247925e253729dce283d6bf6abc9339d https://git.kernel.org/stable/c/bbc80a972a3c5d7eba3f6c9c07af8fea42f5c513 https://git.kernel.org/stable/c/b0633051a6cb24186ff04ce1af99c7de18c1987e https://git.kernel.org/stable/c/021c294dff030f3ba38eb81e400ba123db32ecbc https://git.kernel.org/stable/c/0edd6759167295ea9969e89283b81017b4c688aa https://git.kernel.org/stable/c/c57bfd8000d7677bf435873b440eec0c47f73a08 https://git.kernel.org/stable/c/5f3f81f1c96b501d180021c23c25e9f48eaab235 https://git.kernel.org/stable/c/d69b39d89f362cfeeb54a68690768d0d257b2c8f https://git.kernel.org/stable/c/0a045eac8d0427b64577a24d74bb8347c905ac65