CVE-2021-47315·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: memory: fsl_ifc: fix leak of IO mapping on probe failure On probe error the driver should unmap the IO memory. Smatch reports: drivers/memory/fsl_ifc.c:298 fsl_ifc_ctrl_probe() warn: 'fsl_ifc_ctrl_dev->gregs' not released on lines: 298.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 5.13.4
- Published
- 2024-05-21
Affected versions
From: 5.13
Until: 5.13.4
Fixed in: 5.13.4
How to fix this CVE
Update your Linux kernel to version 5.13.4 or later to resolve a memory leak in the Freescale IFC memory controller driver. The vulnerability occurs when the driver fails to properly unmap IO memory during probe initialization errors, which can lead to resource exhaustion over time. Apply the kernel update immediately to prevent potential denial of service conditions.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r (verify version is 5.13.4 or newer; vulnerable if between 5.13.0 and 5.13.3)
- Verify fsl_ifc driver is loaded: lsmod | grep fsl_ifc (absence means this vulnerability path is not active)
- Check system logs for probe failures: dmesg | grep -i 'fsl_ifc\|probe' (look for initialization errors during boot)
- Monitor memory usage trends: free -h and check /proc/meminfo before and after kernel update to confirm no resource leak after patching
FAQ
What is CVE-2021-47315?
CVE-2021-47315 is a memory leak vulnerability in the Linux kernel's Freescale IFC memory controller driver. When probe initialization fails, the driver neglects to unmap IO memory, leading to gradual resource depletion and potential system instability.
Is CVE-2021-47315 being actively exploited?
No. This vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and has no publicly available exploits. It requires local access and is primarily a reliability issue rather than a security breach vector.
What versions of Kernel are affected by CVE-2021-47315?
Linux kernel versions 5.13.0 through 5.13.3 are vulnerable. The fix was released in kernel 5.13.4 and all subsequent versions.
How do I check if my server is vulnerable to CVE-2021-47315?
Run 'uname -r' and check if your kernel version is between 5.13.0 and 5.13.3. Additionally, run 'lsmod | grep fsl_ifc' to confirm the affected driver is present on your system.
Does Defensia detect CVE-2021-47315?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47315 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/28f71fd81ebd3b386bf5c7c5539664156f7d72c1
- https://git.kernel.org/stable/c/3b132ab67fc7a358fff35e808fa65d4bea452521
- https://git.kernel.org/stable/c/6b3b002de90738e3c85853a682ce7e0fa078d42b
- https://git.kernel.org/stable/c/83af5816308b490b05fc8fa27fc1bdc769df200a
- https://git.kernel.org/stable/c/8d071d270afba468708faca5f7b6d9e656f75e27
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47315. Free for 1 server.
Get started free