What’s Vulnerable › Vulnerabilities
CVE-2021-46923: fs/mount_setattr: always cleanup mount_kattr
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-02-27 · updated 2026-06-17
- Weakness: CWE-668
Description
In the Linux kernel, the following vulnerability has been resolved: fs/mount_setattr: always cleanup mount_kattr Make sure that finish_mount_kattr() is called after mount_kattr was succesfully built in both the success and failure case to prevent leaking any references we took when we built it. We returned early if path lookup failed thereby risking to leak an additional reference we took when building mount_kattr when an idmapped mount was requested.
Affected products
- Linux kernel: from 5.12.0 before 5.15.13 — fixed in 5.15.13
How to fix
Upgrade to a fixed version: Linux kernel 5.15.13. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/012e332286e2bb9f6ac77d195f17e74b2963d663
- https://git.kernel.org/stable/c/47b5d0a7532d39e42a938f81e3904268145c341d
- https://git.kernel.org/stable/c/012e332286e2bb9f6ac77d195f17e74b2963d663
- https://git.kernel.org/stable/c/47b5d0a7532d39e42a938f81e3904268145c341d
Get alerted when CVE-2021-46923 or the next vulnerability affects your stack