All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Pawel Zalewski" <pzalewski@thegoodpenguin.co.uk>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH] HID: hid-core: sanitize user input in 'new_id_store'
Date: Wed, 25 Nov 2026 14:14:13 +0000	[thread overview]
Message-ID: <sashiko-outbox-233538@kernel.org> (raw)
In-Reply-To: <20261125-acpi-sanitizer-v1-1-44b4aa8c538e@thegoodpenguin.co.uk>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] HID: hid-core: missing Fixes trailer for new_id_store()
  driver_data fix
--

commit d1cb0e18023478a6fef5f2aabb283847ff8ab596
Author: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>

> HID: hid-core: sanitize user input in 'new_id_store'
>
> Only accept 'driver_data' values that match an existing 'id_table' entry
> within the driver. This makes the field mandatory if the 'id_table' is
> defined in the HID module and disallows overriding pre-defined values
> within the driver module with arbitrary entries from the command line.
> This could lead to invalid access as 'driver_data' can be a pointer, hence
> the user input needs to be sanitized.
>
> Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>

[Severity: Low]
This fixes a potential invalid memory access when arbitrary driver_data
values are passed through new_id.  Should this include:

  Fixes: 3a6f82f7a22c ("HID: add dynids facility")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-acpi-sanitizer-v1-1-44b4aa8c538e@thegoodpenguin.co.uk?part=1

      reply	other threads:[~2026-11-25 14:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 14:05 [PATCH] HID: hid-core: sanitize user input in 'new_id_store' Pawel Zalewski
2026-11-25 14:14 ` sashiko-bot [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=sashiko-outbox-233538@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=pzalewski@thegoodpenguin.co.uk \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.