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 DBC8B4D599 for ; Tue, 19 Nov 2024 01:34:40 +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=1731980080; cv=none; b=cAZuy23NM155Ml3bEP7k5+lFZtb7Gr2R3gR5K0vMTuGduj3nPiFawS3m5RB6GlqlUjfISc4IXSUHF/UNZxI7zxNrT/zskDVD7dQV+KsNRqO1zJoCcbYItKGFubxIgE6nQ6GEfI2sj/wBV3tNg2plSrM2SIeFpGmrUhZkjmEnyWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980080; c=relaxed/simple; bh=JttJ/NmsITr4q3T6/zBTWXIfUnWyMLJFXkdhNq0AhZQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ERf5ppNNfXe8m3X/s6VzchNXXacypIqxMu2QOAiBLXhv9BJgy+m4I41U7mU6CKg9ClxHUu8szd8ykabhlwb+zQYwYdC1Pa21qLY8fUu1LSzuE7tEqQl9Jr6WUtmfRYkKDTtunqaSWuUqUs3rdniopQvbJz3W7MQbpCgGCkOIAhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xZGOu+dL; 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="xZGOu+dL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64B52C4CED0; Tue, 19 Nov 2024 01:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980080; bh=JttJ/NmsITr4q3T6/zBTWXIfUnWyMLJFXkdhNq0AhZQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xZGOu+dL9d3FcIsEJu9/gQ9AQoo00yNcmGMgmPBbhm0bn3KM1P3eY2Bd8Up47vORq N6Y+Zo6ve/f1oYbAgxWnNu7kq5ynx2YmEU5pUDxFro5+RIm9bjqUD92u0TEidy30NT qGWDkP37uY6OQ7RbMDIKaFSDhP731vNytv8KVNcg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50288: media: vivid: fix buffer overwrite when using > 32 buffers Date: Tue, 19 Nov 2024 02:32:43 +0100 Message-ID: <2024111950-CVE-2024-50288-1c5d@gregkh> X-Mailer: git-send-email 2.47.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=2313; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JttJ/NmsITr4q3T6/zBTWXIfUnWyMLJFXkdhNq0AhZQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWrw4fO5iSLbyiv5ZvHfsE7jrljbsPvnnzXfRUSOO0z QfZY96/7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJTHnKMM+seYLH+UNti49N dkpu5vqtnbDbX4VhntVX9shs3jTNwzoME1/mnFd/rCL9EwA= 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: vivid: fix buffer overwrite when using > 32 buffers The maximum number of buffers that can be requested was increased to 64 for the video capture queue. But video capture used a must_blank array that was still sized for 32 (VIDEO_MAX_FRAME). This caused an out-of-bounds write when using buffer indices >= 32. Create a new define MAX_VID_CAP_BUFFERS that is used to access the must_blank array and set max_num_buffers for the video capture queue. This solves a crash reported by: https://bugzilla.kernel.org/show_bug.cgi?id=219258 The Linux kernel CVE team has assigned CVE-2024-50288 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit cea70ed416b4 and fixed in 6.11.8 with commit e6bacd8f2178 Issue introduced in 6.8 with commit cea70ed416b4 and fixed in 6.12 with commit 96d856956391 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-50288 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/test-drivers/vivid/vivid-core.c drivers/media/test-drivers/vivid/vivid-core.h drivers/media/test-drivers/vivid/vivid-ctrls.c drivers/media/test-drivers/vivid/vivid-vid-cap.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/e6bacd8f2178b22859fe6d9f755f19dfcd9d3862 https://git.kernel.org/stable/c/96d8569563916fe2f8fe17317e20e43f54f9ba4b