From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 517F63438B5; Sat, 23 May 2026 05:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779515458; cv=none; b=uwOUa13AVByImIks2Wm14Hs8JisgAqdKtEJsqNhxzWk/kvkQtXzER8LEZ5g/qZrNQeYif4hwQRS6itDMjy51m8Fylh8iKh7EB1Lognt3iSz6yxH8Ns08O+VK+fPn7mcjaL53dqraaqEmkr5la8ONoQRoViSk4qcttrXzVV9Y4YA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779515458; c=relaxed/simple; bh=nRS+wN9zkUZr33WgWLXSQv5niua3cI1+oLDIW6xlW/I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DJ/leE6jaMYi8/Yzvm02fF4TDW1vAvXrnIuKN7r77EIyxTbbOaaGEh9w3+w1Wxb9acceGKNw6wf98LONW7x50hLlRNpeli2LHpG4ZluMBOA/KDiryFwf85ZnqSZBtT61/HguebfJ3YJhF5wC5aA8B+v9f6j4WMFR8GT/aRzMIjo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=leMg7eOD; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="leMg7eOD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 764EE1F000E9; Sat, 23 May 2026 05:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779515457; bh=tMqXD1G1SzKVmD3nov6C+E2xL41ye3E6M+B4ZKYn7g4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=leMg7eODLUFbh+daQ1i/w6j7u/DiRvYqQHe2NIYyetKCZgMBCdr94RobXfIyVAQPS T3aCeKknOjTvh/ffiZaU5Rkn+YDdv0Of1VYkrmhRgyzHJji92FwlZT/SgYIWS8Hvix CDZu0C0aLKVw4ILlGwGyufo3G/IxvggURUP8QtCY= Date: Sat, 23 May 2026 07:50:59 +0200 From: Greg Kroah-Hartman To: Johan Hovold Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] USB: serial: safe_serial: fix memory corruption with small endpoint Message-ID: <2026052354-stability-prone-4fbb@gregkh> References: <20260522142218.947657-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260522142218.947657-1-johan@kernel.org> On Fri, May 22, 2026 at 04:22:18PM +0200, Johan Hovold wrote: > Make sure that the bulk-out buffer size is at least eight bytes to avoid > user-controlled slab corruption in "safe" mode should a malicious device > report a smaller size. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Cc: stable@vger.kernel.org > Signed-off-by: Johan Hovold > --- > drivers/usb/serial/safe_serial.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) Reviewed-by: Greg Kroah-Hartman