CVE-2022-49267·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.17.2
- Published
- 2025-02-26
Affected versions
From: 5.17
Until: 5.17.2
Fixed in: 5.17.2
How to fix this CVE
Update your Linux kernel to version 5.17.2 or later to remediate this buffer overflow vulnerability in the MMC core subsystem. The issue stems from unsafe sprintf() usage in sysfs attribute output handlers, which has been replaced with the safer sysfs_emit() function. Ensure your system is patched promptly, especially if it uses MMC storage devices (SD cards, eMMC, etc.).
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your running kernel version: uname -r — compare against affected range 5.17.0-5.17.2
- Verify MMC subsystem is loaded: lsmod | grep mmc — if empty, MMC is not active and risk is minimal
- Search kernel logs for sysfs-related errors: sudo dmesg | grep -i 'mmc\|sysfs' — look for buffer overflow warnings or stack traces
- Confirm patch installation by checking kernel build info: cat /proc/version — ensure version is >= 5.17.3 or outside 5.17.x range
FAQ
What is CVE-2022-49267?
A buffer overflow vulnerability in the Linux kernel's MMC (MultiMediaCard) core driver caused by improper use of sprintf() when writing sysfs attributes. Attackers with local access could potentially trigger memory corruption through crafted MMC device interactions.
Is CVE-2022-49267 being actively exploited?
No, this vulnerability is not tracked as actively exploited by CISA and no public exploits are available. However, it remains a high-severity local privilege escalation risk requiring timely patching.
What versions of Kernel are affected by CVE-2022-49267?
Linux kernel versions 5.17.0 through 5.17.2 are vulnerable. All other versions, including 5.17.3+, 5.16.x, and earlier/later major versions are not affected.
How do I check if my server is vulnerable to CVE-2022-49267?
Run: uname -r — if the output shows 5.17.0, 5.17.1, or 5.17.2, your system is vulnerable. Cross-reference with lsmod | grep mmc to confirm the MMC subsystem is loaded.
Does Defensia detect CVE-2022-49267?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-49267 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49267. Free for 1 server.
Get started free