From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8D80C3A6B89 for ; Tue, 24 Mar 2026 08:34:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774341281; cv=none; b=mfT3TY6jgMt721w6ICo0GaLSsDZJfkiCgQGYuk5o6UBVfshjQWBusH98bZWYh+1camGp9kDHZJOwUUMT6CTUDwB2wCFdSf2LqPZxaSz3WMjHxQO7v8lMfc64+FCl3CPOHSA28+OEpxq32sV+GczZyjuJS0KLgiu2h42PtZhZ88A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774341281; c=relaxed/simple; bh=uktdmPqcEHXYdWhKFYbntgC69C+6r+V+JFBEzoCgFck=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GqyYJ+B6hs+KKQjL1f6/6lQ2ygln//6wjeAGMEmuA8OqOyOJ6n+vAt+qqJ4ETLit+gJRaJoIJHJAUlihwdB7Yb4+6f2c0WVrsrBkX8e3rwhVDVhPQRofiYdFBpsOJte3Qy82kzLcSeELv5lh8vdW2l37X7TLTpkbLtElPdz+KYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=04ayWW1o; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="04ayWW1o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CC75C19424; Tue, 24 Mar 2026 08:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774341280; bh=uktdmPqcEHXYdWhKFYbntgC69C+6r+V+JFBEzoCgFck=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=04ayWW1oWc/YOiA/XeO72RI5OIkBn51gC+Ozyl6DHeDHTgmoxI9Uw1AB70peGWII0 6KZqBPHJbNIxUOxz78rkTGqcoE+4veJhELDcrnURCI1ahhM5CE7MNnp/QOj3dT/6NE gptFDLpnccFqYdljy6jmDBOPTxhXqeVovX7yS8TU= Date: Tue, 24 Mar 2026 09:34:17 +0100 From: "gregkh@linuxfoundation.org" To: Siddh Raman Pant Cc: "cve@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: CVE-2022-49267: mmc: core: use sysfs_emit() instead of sprintf() Message-ID: <2026032404-cling-croon-dd5d@gregkh> References: <2025022629-CVE-2022-49267-b3ac@gregkh> <9f282e5db77c382bff8e33b74a1404f7c680c2da.camel@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <9f282e5db77c382bff8e33b74a1404f7c680c2da.camel@oracle.com> On Tue, Mar 24, 2026 at 07:42:23AM +0000, Siddh Raman Pant wrote: > On Wed, 26 Feb 2025 02:57:52 +0100, Greg Kroah-Hartman wrote: > > In the Linux kernel, the following vulnerability has been resolved: > > > > mmc: core: use sysfs_emit() instead of sprintf() > > > > sprintf() (still used in the MMC core for the sysfs output) is vulnerable > > to the buffer overflow. Use the new-fangled sysfs_emit() instead. > > > > Found by Linux Verification Center (linuxtesting.org) with the SVACE static > > analysis tool. > > > > The Linux kernel CVE team has assigned CVE-2022-49267 to this issue. > > What overflow does this actually fix? I think this is a defensive patch. > > In fact, you asked the same question earlier during stable backport > which apparently got no reply: > https://lore.kernel.org/all/2025121205-wool-undesired-0609@gregkh/ You are correct, this is now rejected, thanks for the review. greg k-h