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 30C4B324B01 for ; Mon, 15 Sep 2025 14:26:57 +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=1757946417; cv=none; b=Nw1MJMIcWfYiC5/QiRi6li9bGB/d3uI6hEADwmCSa1qH08kL/gY5d4fBjikFPh7z0mZEnSOcfdz66htYfV4SH7yVtQRBxV5H4rccxAv/nVozBj3zHhPq1W0NvGrQxVJf4aOumtwN6hwSGDtPpD84VK27auSzrAHv+0TAFKCZxmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946417; c=relaxed/simple; bh=mW7TI3xc6M9RBDGH5j3pVHd3OJpqGYoj3HE1RKmAF1Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tqdNxeVuRn1A7Tw7H/JIeOPc0+Pne/cyEGr5wRidQqEzfUy8jS3+Ijz6LCQLEnGca+iOS8Q232Msaecw7vehLadBC4itOYQutTKGfm+fZ7APY5HOHnQTVJm3hH7b8Dz5Y9kbG+k0UbOMW0JEb5rsZmTEx6JzxAcqTKmx/f3RgRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xPiXMY1y; 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="xPiXMY1y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98188C4CEF1; Mon, 15 Sep 2025 14:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946417; bh=mW7TI3xc6M9RBDGH5j3pVHd3OJpqGYoj3HE1RKmAF1Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xPiXMY1yxqcH6S6CrO+khQFFT9pfN1COig5HdjASAMJrOlEN5b5sru4IdY7ohc9IW ZQhFapua10vx4RMSrw7Z94LqRdTe7hcmcySQLjbcmC3yo3s9ThqzqrARBiFZq9Elu4 vrcfmOawR8fepIgp9Yx4aFQ1IvQg0rFr1Ir+FtUA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53220: media: az6007: Fix null-ptr-deref in az6007_i2c_xfer() Date: Mon, 15 Sep 2025 16:21:54 +0200 Message-ID: <2025091512-CVE-2023-53220-e514@gregkh> X-Mailer: git-send-email 2.51.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=2915; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=k3BqyRVMORsnPv04TB53DPWERWT2KpoyEyy1ESYx24E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFG4w1Zr86QoROG67VCo4+/Cl1Ws0F5peSM6YYX7ye qH1w3cVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRydkM8zRPJfuGaj3tc7Yp 2M+6qG/K2vvXSxjmu9ZdEOazrGS235Okz9waKSwhp7ALAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: az6007: Fix null-ptr-deref in az6007_i2c_xfer() In az6007_i2c_xfer, msg is controlled by user. When msg[i].buf is null and msg[i].len is zero, former checks on msg[i].buf would be passed. Malicious data finally reach az6007_i2c_xfer. If accessing msg[i].buf[0] without sanity check, null ptr deref would happen. We add check on msg[i].len to prevent crash. Similar commit: commit 0ed554fd769a ("media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()") The Linux kernel CVE team has assigned CVE-2023-53220 to this issue. Affected and fixed versions =========================== Fixed in 4.14.326 with commit c6763fefa267f6e62595a6ac1f57815d99fc90b7 Fixed in 4.19.295 with commit adcb73f8ce9aec48b1f85223f401c1574015d8d2 Fixed in 5.4.257 with commit 991c77fe18c6f374bbf83376f8c42550aa565662 Fixed in 5.10.197 with commit a9def3e9718a4dc756f48db147d42ec41a966240 Fixed in 5.15.133 with commit 5b1ea100ad3695025969dc4693f307877fb688d6 Fixed in 6.1.55 with commit 6ab7ea4e17d6a605d05308adf8f3408924770cba Fixed in 6.5.5 with commit a1110f19d4940e4185251d072cbb0ff51486a1e7 Fixed in 6.6 with commit 1047f9343011f2cedc73c64829686206a7e9fc3f 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-53220 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/dvb-usb-v2/az6007.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/c6763fefa267f6e62595a6ac1f57815d99fc90b7 https://git.kernel.org/stable/c/adcb73f8ce9aec48b1f85223f401c1574015d8d2 https://git.kernel.org/stable/c/991c77fe18c6f374bbf83376f8c42550aa565662 https://git.kernel.org/stable/c/a9def3e9718a4dc756f48db147d42ec41a966240 https://git.kernel.org/stable/c/5b1ea100ad3695025969dc4693f307877fb688d6 https://git.kernel.org/stable/c/6ab7ea4e17d6a605d05308adf8f3408924770cba https://git.kernel.org/stable/c/a1110f19d4940e4185251d072cbb0ff51486a1e7 https://git.kernel.org/stable/c/1047f9343011f2cedc73c64829686206a7e9fc3f