[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87sefk60id.wl-tiwai@suse.de>
Date: Wed, 15 Oct 2025 10:18:50 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Jiaming Zhang <r772577952@...il.com>
Cc: tiwai@...e.de,
gregkh@...uxfoundation.org,
broonie@...nel.org,
cryolitia@...ontech.com,
linux-kernel@...r.kernel.org,
linux-sound@...r.kernel.org,
perex@...ex.cz,
pierre-louis.bossart@...ux.dev,
quic_wcheng@...cinc.com,
syzkaller@...glegroups.com,
tiwai@...e.com
Subject: Re: [PATCH v2 1/1] ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card
On Wed, 15 Oct 2025 07:16:45 +0200,
Jiaming Zhang wrote:
>
> In try_to_register_card(), the return value of usb_ifnum_to_if() is
> passed directly to usb_interface_claimed() without a NULL check, which
> will lead to a NULL pointer dereference when creating an invalid
> USB audio device. Fix this by adding a check to ensure the interface
> pointer is valid before passing it to usb_interface_claimed().
>
> Fixes: 39efc9c ("ALSA: usb-audio: Fix last interface check for registration")
> Closes: https://lore.kernel.org/all/CANypQFYtQxHL5ghREs-BujZG413RPJGnO5TH=xjFBKpPts33tA@mail.gmail.com/
> Signed-off-by: Jiaming Zhang <r772577952@...il.com>
Thanks, applied now.
The Fixes tag should have 12 letter IDs, and I corrected it.
Takashi
Powered by blists - more mailing lists