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 2CBDB275AFA for ; Thu, 4 Sep 2025 15:33:18 +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=1757000001; cv=none; b=WafzSfjyN2+M00EiAr6DmOQGScdNG3kOKg2Cfn5qXOkWpBlV2pvalbydXPpQtBt5y70HR6LCHueg6wunvv0EwYv7Wx7+V+izoyjnxywGYoxWsuFUHdANOkQM0+EgGTWPv1Ox3Vgdt9+IxGrA3Blg7qLTLfSfySDOvATqqxxvvZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000001; c=relaxed/simple; bh=65KaTavvI5kTK1Ne5jxRywjKDJ8+x0Rwm1NmoowvY64=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TyV1hrGUE3gbx23w7zSRjo+p/Kd9UaxzLunPaB540ws5I1Rka26XgWi3XD8nYyVIYhCdk9ylmi5W5e08q3he3L3ZkVPvLPCnrjznGN1EbbRsVPlzHH67G/dGMN65txlxR0w72hRWNEp9T5qjTvODfew+YBTTOStB/fyiyatgm6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e93bs+O6; 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="e93bs+O6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39817C4CEF0; Thu, 4 Sep 2025 15:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756999998; bh=65KaTavvI5kTK1Ne5jxRywjKDJ8+x0Rwm1NmoowvY64=; h=From:To:Cc:Subject:Date:Reply-to:From; b=e93bs+O6NI8aTVUbPpHX21Lj6hCDNB/+vhldwCzYjAd6+weGb8+3T03x1+xMsEbNn 8RhqwOu+1nT26UXBQOsHCMv1bBqetJZcgopduc+/E1HUWc5l419NrDUaSYgU8ZjfhK ILTdx6qolFbf8QG57u4zQmc9mbsZbTvaFBERslRA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38680: media: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format() Date: Thu, 4 Sep 2025 17:32:45 +0200 Message-ID: <2025090445-CVE-2025-38680-cce6@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=3761; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=63lR5fcAlXRjQ75v49fIcj5zBrW/RooPrz+h2jQKOxc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N8rOLf35lenCLpPCPT78v9xWCOtvPnRhpXvpUU7JV 9yPaj50d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBETh9imO9/jDv/L/sfad02 xYkOx4VPVItKTGeYp3J/w9Gn0wy/bz8+M9219PvutZ9ObQEA 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: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format() The buffer length check before calling uvc_parse_format() only ensured that the buffer has at least 3 bytes (buflen > 2), buf the function accesses buffer[3], requiring at least 4 bytes. This can lead to an out-of-bounds read if the buffer has exactly 3 bytes. Fix it by checking that the buffer has at least 4 bytes in uvc_parse_format(). The Linux kernel CVE team has assigned CVE-2025-38680 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 5.4.297 with commit 9ad554217c9b945031c73df4e8176a475e2dea57 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 5.10.241 with commit 1e269581b3aa5962fdc52757ab40da286168c087 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 5.15.190 with commit 8343f3fe0b755925f83d60b05e92bf4396879758 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 6.1.149 with commit ffdd82182953df643aa63d999b6f1653d0c93778 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 6.6.103 with commit a97e062e4ff3dab84a2f1eb811e9eddc6699e2a9 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 6.12.43 with commit cac702a439050df65272c49184aef7975fe3eff2 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 6.15.11 with commit 424980d33b3f816485513e538610168b03fab9f1 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 6.16.2 with commit 6d4a7c0b296162354b6fc759a1475b9d57ddfaa6 Issue introduced in 2.6.26 with commit c0efd232929c2cd87238de2cccdaf4e845be5b0c and fixed in 6.17-rc1 with commit 782b6a718651eda3478b1824b37a8b3185d2740c 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-2025-38680 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/uvc/uvc_driver.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/9ad554217c9b945031c73df4e8176a475e2dea57 https://git.kernel.org/stable/c/1e269581b3aa5962fdc52757ab40da286168c087 https://git.kernel.org/stable/c/8343f3fe0b755925f83d60b05e92bf4396879758 https://git.kernel.org/stable/c/ffdd82182953df643aa63d999b6f1653d0c93778 https://git.kernel.org/stable/c/a97e062e4ff3dab84a2f1eb811e9eddc6699e2a9 https://git.kernel.org/stable/c/cac702a439050df65272c49184aef7975fe3eff2 https://git.kernel.org/stable/c/424980d33b3f816485513e538610168b03fab9f1 https://git.kernel.org/stable/c/6d4a7c0b296162354b6fc759a1475b9d57ddfaa6 https://git.kernel.org/stable/c/782b6a718651eda3478b1824b37a8b3185d2740c