CVE-2021-4037 Kernel: security regression for cve-2018-13405
Local attackers can create XFS files with unintended group ownership and SGID bits, leading to excessive permissions and potential privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-4037?
CVE-2021-4037 is a medium-severity vulnerability in Debian Debian Linux, published on 24 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was found in the fs/inode.c:inode_init_owner() function logic of the LInux kernel that allows local users to create files for the XFS file-system with an unintended group ownership and with group execution and SGID permission bits set, in a scenario where a directory is SGID and belongs to a certain group and is writable by a user who is not a member of this group. This can lead to excessive permissions granted in case when they should not. This vulnerability is similar to the previous CVE-2018-13405 and adds the missed fix for the XFS.
Weakness: CWE-284
Which versions are affected by CVE-2021-4037?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2021-4037?
Apply the vendor's patch.
Is CVE-2021-4037 being exploited?
There is no known exploitation of CVE-2021-4037 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2021-4037, GHSA-gvgr-4fph-m6hc, UBUNTU-CVE-2021-4037.