CVE-2021-47579·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ovl: fix warning in ovl_create_real() Syzbot triggered the following warning in ovl_workdir_create() -> ovl_create_real(): if (!err && WARN_ON(!newdentry->d_inode)) { The reason is that the cgroup2 filesystem returns from mkdir without instantiating the new dentry. Weird filesystems such as this will be rejected by overlayfs at a later stage during setup, but to prevent such a warning, call ovl_mkdir_real() directly from ovl_workdir_create() and reject this case early.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 5.15.11
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 5.11
Until: 5.15.11
Fixed in: 5.15.11
How to fix this CVE
Update your Linux kernel to version 5.15.11 or later to patch this overlayfs directory creation vulnerability. The fix ensures that overlayfs properly rejects unusual filesystems (such as cgroup2) that don't instantiate dentries during mkdir operations, preventing kernel warnings and potential filesystem inconsistencies. Reboot your system after applying the kernel update to load the patched version.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if you are running a vulnerable version between 5.11 and 5.15.10: if your version falls in this range, you are affected
- Check kernel logs for overlayfs-related warnings: dmesg | grep -i 'ovl_create_real\|overlayfs.*warning'
- Confirm the patch was applied by verifying kernel version is 5.15.11 or later: uname -r | grep -E '5\.(1[5-9]|[2-9][0-9])\.(1[1-9]|[2-9][0-9]|[0-9]{3,})'
- Review dmesg output to ensure no new overlayfs warnings appear: dmesg | tail -50 | grep -i ovl
FAQ
What is CVE-2021-47579?
This vulnerability affects the overlayfs subsystem in the Linux kernel, where certain unusual filesystems (like cgroup2) could cause kernel warnings when overlayfs attempts to create directories. The issue stems from overlayfs not properly handling filesystems that don't instantiate dentries immediately after mkdir operations.
Is CVE-2021-47579 being actively exploited?
No, this CVE is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. It is primarily a kernel robustness issue rather than a direct security exploit vector.
What versions of Kernel are affected by CVE-2021-47579?
Linux kernel versions 5.11 through 5.15.10 are vulnerable. Kernel 5.15.11 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2021-47579?
Run 'uname -r' to see your kernel version. If the version is 5.11, 5.12, 5.13, 5.14, or 5.15.0–5.15.10, your system is vulnerable. Systems running 5.15.11 or higher are patched.
What is the CVSS score for CVE-2021-47579?
This CVE has a CVSS v3.1 score of 5.5 (medium severity), with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local availability impact without requiring user interaction.
Does Defensia detect CVE-2021-47579?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47579 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1f5573cfe7a7056e80a92c7a037a3e69f3a13d1c
- https://git.kernel.org/stable/c/445d2dc63e5871d218f21b8f62ab29ac72f2e6b8
- https://git.kernel.org/stable/c/6859985a2fbda5d1586bf44538853e1be69e85f7
- https://git.kernel.org/stable/c/d2ccdd4e4efab06178608a34d7bfb20a54104c02
- https://git.kernel.org/stable/c/f9f300a92297be8250547347fd52216ef0177ae0
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47579. Free for 1 server.
Get started free