]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ccs: Fix CCS static data parsing for large block sizes
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 3 Dec 2024 08:10:23 +0000 (10:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:34 +0000 (10:05 +0100)
commitc85a33577c11acee82895242320af4cebe5b8ec6
treec54a895fadb1005d6d90cd1af8057a520b1e9ff7
parentffb7e57e40c688dd2ecbff82aa3c359823e6083b
media: ccs: Fix CCS static data parsing for large block sizes

commit 82b696750f0b60e7513082a10ad42786854f59f8 upstream.

The length field of the CCS static data blocks was mishandled, leading to
wrong interpretation of the length header for blocks that are 16 kiB in
size. Such large blocks are very, very rare and so this wasn't found
earlier.

As the length is used as part of input validation, the issue has no
security implications.

Fixes: a6b396f410b1 ("media: ccs: Add CCS static data parser library")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/ccs/ccs-data.c