[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <877bw3h3zo.wl-tiwai@suse.de>
Date: Thu, 06 Nov 2025 11:03:55 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Junrui Luo <moonafterrain@...look.com>
Cc: Takashi Iwai <tiwai@...e.com>,
Jaroslav Kysela <perex@...ex.cz>,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
stable@...r.kernel.org,
Yuhao Jiang <danisjiang@...il.com>
Subject: Re: [PATCH v2] ALSA: wavefront: Fix integer overflow in sample size validation
On Thu, 06 Nov 2025 03:49:46 +0100,
Junrui Luo wrote:
>
> The wavefront_send_sample() function has an integer overflow issue
> when validating sample size. The header->size field is u32 but gets
> cast to int for comparison with dev->freemem
>
> Fix by using unsigned comparison to avoid integer overflow.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@...r.kernel.org
> Signed-off-by: Junrui Luo <moonafterrain@...look.com>
> ---
> Changes in v2:
> - Check for negative freemem before size comparison
> - Link to v1: https://lore.kernel.org/all/SYBPR01MB7881FA5CEECF0CCEABDD6CC4AFC4A@SYBPR01MB7881.ausprd01.prod.outlook.com/
Applied now. Thanks.
Takashi
Powered by blists - more mailing lists