Re: [PATCH 1/1] cdrom: fix stack out-of-bounds read in CDROMVOLCTRL

Jens Axboe <[email protected]>
Newsgroups org.kernel.vger.linux-block
Message-ID <178460706849.220282.13341697772506394152.b4-ty@b4>
On Mon, 20 Jul 2026 20:44:21 +0100, Phillip Potter wrote:
> mmc_ioctl_cdrom_volume() first reads the audio control mode page into a
> 32-byte stack buffer with cgc->buflen set to 24.  If the device reports a
> block descriptor, the function increases cgc->buflen to include that
> descriptor and reads the page again.
> 
> For CDROMVOLCTRL, the function then builds a MODE SELECT parameter list
> by moving cgc->buffer forward by offset - 8 bytes.  This drops the block
> descriptor from the outgoing payload and leaves a new 8-byte mode
> parameter header in front of the audio control page.  However, cgc->buflen
> is left unchanged.
> 
> [...]

Applied, thanks!

[1/1] cdrom: fix stack out-of-bounds read in CDROMVOLCTRL
      commit: b27e195d4db8dea263050bdbeb11881b2999c9c6

Best regards,
-- 
Jens Axboe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.