]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: elan_i2c - validate firmware size before use
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 26 Apr 2026 05:07:06 +0000 (22:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 29 Apr 2026 18:53:33 +0000 (11:53 -0700)
commit76b0d0baa9ae9c60e726bbe1b6ff0bec2c993634
tree7b11504155de4c785ac346c7f24975b4f1a5f466
parent6cdc46b38cf146ce81d4831b6472dbf7731849a2
Input: elan_i2c - validate firmware size before use

Ensure that the firmware file is large enough to contain the expected
number of pages and the signature (which resides at the end of the
firmware blob) before accessing them to prevent potential out-of-bounds
reads.

Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/ae2dOgiFvXRm4BHo@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c