Linux Media Controller development
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: 潘煜杭 <panyuhang@hdu.edu.cn>
Cc: linux-media@vger.kernel.org, mchehab@kernel.org, security@kernel.org
Subject: Re: Subject: Re: [PATCH v2] media: saa7134-alsa: avoid IRQ handling before capture is prepared
Date: Fri, 21 Aug 2026 12:49:12 +0200	[thread overview]
Message-ID: <2026082105-undamaged-underfoot-a025@gregkh> (raw)
In-Reply-To: <AOoATABxKyooWcIuKar*D4rn.1.1787304053109.Hmail.242270054@hdu.edu.cn>

On Fri, Aug 21, 2026 at 05:20:53PM +0800, 潘煜杭 wrote:
> 
> Hello Greg,
> 
> Thank you for the clarification.
> 
> I apologize for previously asking the maintainers about CVE assignment
> through the wrong channel.
> 
> I reviewed the original test setup. The saa7134 driver source on the
> crashing path was not modified. The userspace program issued valid V4L2
> operations, including VIDIOC_REQBUFS, VIDIOC_QUERYBUF, VIDIOC_QBUF,
> VIDIOC_STREAMON, VIDIOC_DQBUF, and VIDIOC_STREAMOFF.
> 
> The reproducer does not require root privileges or a physical saa7134
> card. It runs in QEMU, where the saa7134 device is emulated by the SFP
> device model. The normal saa7134 and saa7134_alsa modules are loaded,
> and the crash is triggered through normal userspace V4L2 ioctl() calls.
> 
> The driver submits a DMA request, after which the emulated device model
> automatically generates the corresponding DMA-related interrupt. The
> relevant test output included:
> 
>   INFO:Trigger IRQ after setting DMA
>   kcov-remote-bridge: async entry
> 
> Thus, an unprivileged user can trigger the NULL pointer dereference through
> normal V4L2 operations in the QEMU saa7134 emulation environment. I have
> not separately verified whether the same interrupt ordering can occur on a
> physical saa7134 card.

Perhaps the emulated driver is not correct?  Try it on real hardware to
see?

> The crash itself is confirmed by the following path:
> 
>   saa7134_irq()
>     -> saa7134_alsa_irq()
>     -> saa7134_irq_alsa_done()
>     -> snd_pcm_stop_xrun(NULL)
> 
> The crash log shows RDI == 0 in snd_pcm_stop_xrun(), followed by a KASAN
> NULL-pointer report and a fatal exception in interrupt context.

So do you have a proposed fix for this issue?  That would be best as I
really don't have much context here, sorry.

thanks,

greg k-h

      reply	other threads:[~2026-08-21 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-21  9:20 Subject: Re: [PATCH v2] media: saa7134-alsa: avoid IRQ handling before capture is prepared 潘煜杭
2026-08-21 10:49 ` Greg KH [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=2026082105-undamaged-underfoot-a025@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=panyuhang@hdu.edu.cn \
    --cc=security@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