[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022629-CVE-2022-49267-b3ac@gregkh>
Date: Wed, 26 Feb 2025 02:57:52 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49267: mmc: core: use sysfs_emit() instead of sprintf()
Description
===========
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.
Affected and fixed versions
===========================
Fixed in 5.16.19 with commit 659ca56b5415c7a1d05e185c36fad80ba165d063
Fixed in 5.17.2 with commit c4ab65738ab3e21fe519ee46b2051222bc8e32ef
Fixed in 5.18 with commit f5d8a5fe77ce933f53eb8f2e22bb7a1a2019ea11
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-49267
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/mmc/core/bus.c
drivers/mmc/core/bus.h
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c
drivers/mmc/core/sdio_bus.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/659ca56b5415c7a1d05e185c36fad80ba165d063
https://git.kernel.org/stable/c/c4ab65738ab3e21fe519ee46b2051222bc8e32ef
https://git.kernel.org/stable/c/f5d8a5fe77ce933f53eb8f2e22bb7a1a2019ea11
Powered by blists - more mailing lists