From: Oliver Neukum <oneukum@suse.com>
To: Alexandre Becholey <alex@becholey.ch>,
Oliver Neukum <oliver@neukum.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org, Oliver Neukum <oneukum@suse.com>,
stable@vger.kernel.org
Subject: Re: [PATCH v2] usb: image: microtek: limit REQUEST SENSE transfer to the sense buffer
Date: Thu, 26 Nov 2026 13:39:57 +0100 [thread overview]
Message-ID: <fba67984-e3e9-492e-b512-180c257ecf11@suse.com> (raw)
In-Reply-To: <20261126122151.414230-1-alex@becholey.ch>
On 26.11.26 13:22, Alexandre Becholey wrote:
> mts_command_done() receives the data phase of a REQUEST SENSE into
> srb->sense_buffer (SCSI_SENSE_BUFFERSIZE, 96 bytes), but with the
> length of the command's own data buffer. A REQUEST SENSE sent through
> SG_IO, allowed on a read-only /dev/sgN without any capability, can have
> a much larger buffer (252 bytes with sg_requests), and a device that
> returns that much writes past the end of the sense buffer.
>
> Limit the transfer to SCSI_SENSE_BUFFERSIZE.
>
> The bug was found, and the reproducer and this fix were written, by AI
> agents (Claude Mythos and Claude Opus models). The analysis and the
> patch were reviewed by a human.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@vger.kernel.org
> Signed-off-by: Alexandre Becholey <alex@becholey.ch>
Acked-by: Oliver Neukum <oneukum@suse.com>
prev parent reply other threads:[~2026-11-26 12:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 12:22 [PATCH v2] usb: image: microtek: limit REQUEST SENSE transfer to the sense buffer Alexandre Becholey
2026-11-26 12:39 ` Oliver Neukum [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=fba67984-e3e9-492e-b512-180c257ecf11@suse.com \
--to=oneukum@suse.com \
--cc=alex@becholey.ch \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=oliver@neukum.org \
--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