[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175285509633.273643.5107917401641399605.b4-ty@kernel.org>
Date: Fri, 18 Jul 2025 18:11:36 +0200
From: Benjamin Tissoires <bentiss@...nel.org>
To: jikos@...nel.org, Qasim Ijaz <qasdev00@...il.com>
Cc: gargaditya08@...e.com, orlandoch.dev@...il.com,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: (subset) [PATCH] HID: apple: validate feature-report field
count to prevent NULL pointer dereference
On Mon, 14 Jul 2025 00:30:08 +0100, Qasim Ijaz wrote:
> A malicious HID device with quirk APPLE_MAGIC_BACKLIGHT can trigger a NULL
> pointer dereference whilst the power feature-report is toggled and sent to
> the device in apple_magic_backlight_report_set(). The power feature-report
> is expected to have two data fields, but if the descriptor declares one
> field then accessing field[1] and dereferencing it in
> apple_magic_backlight_report_set() becomes invalid
> since field[1] will be NULL.
>
> [...]
Applied to hid/hid.git (for-6.17/apple), thanks!
[1/1] HID: apple: validate feature-report field count to prevent NULL pointer dereference
https://git.kernel.org/hid/hid/c/1bb3363da862
Cheers,
--
Benjamin Tissoires <bentiss@...nel.org>
Powered by blists - more mailing lists