* Re: CVE-2022-49267: mmc: core: use sysfs_emit() instead of sprintf()
[not found] <2025022629-CVE-2022-49267-b3ac@gregkh>
@ 2026-03-24 7:42 ` Siddh Raman Pant
2026-03-24 8:34 ` gregkh
0 siblings, 1 reply; 2+ messages in thread
From: Siddh Raman Pant @ 2026-03-24 7:42 UTC (permalink / raw)
To: gregkh; +Cc: cve, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
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/
Thanks,
Siddh
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: CVE-2022-49267: mmc: core: use sysfs_emit() instead of sprintf()
2026-03-24 7:42 ` CVE-2022-49267: mmc: core: use sysfs_emit() instead of sprintf() Siddh Raman Pant
@ 2026-03-24 8:34 ` gregkh
0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2026-03-24 8:34 UTC (permalink / raw)
To: Siddh Raman Pant; +Cc: cve, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-24 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <2025022629-CVE-2022-49267-b3ac@gregkh>
2026-03-24 7:42 ` CVE-2022-49267: mmc: core: use sysfs_emit() instead of sprintf() Siddh Raman Pant
2026-03-24 8:34 ` gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®