From: Benjamin Tissoires <bentiss@kernel.org>
To: jikos@kernel.org, Qasim Ijaz <qasdev00@gmail.com>
Cc: gargaditya08@live.com, orlandoch.dev@gmail.com,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: (subset) [PATCH] HID: apple: validate feature-report field count to prevent NULL pointer dereference
Date: Fri, 18 Jul 2025 18:11:36 +0200 [thread overview]
Message-ID: <175285509633.273643.5107917401641399605.b4-ty@kernel.org> (raw)
In-Reply-To: <20250713233008.15131-1-qasdev00@gmail.com>
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@kernel.org>
prev parent reply other threads:[~2025-07-18 16:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-13 23:30 Qasim Ijaz
2025-07-15 18:33 ` Aditya Garg
2025-07-18 3:16 ` Orlando Chamberlain
2025-07-18 16:11 ` Benjamin Tissoires [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=175285509633.273643.5107917401641399605.b4-ty@kernel.org \
--to=bentiss@kernel.org \
--cc=gargaditya08@live.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=orlandoch.dev@gmail.com \
--cc=qasdev00@gmail.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®