7.8
HIGH CVSS 3.1
CVE-2021-4037
Kernel: security regression for cve-2018-13405
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.

INFO

Published Date :

Aug. 24, 2022, 4:15 p.m.

Last Modified :

Aug. 10, 2026, 5:17 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2021-4037 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
2 Linux kernel
3 Linux kernel
1 Redhat enterprise_linux
2 Redhat enterprise_linux
1 Debian debian_linux
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Update the Linux kernel and related packages to address the XFS file-system vulnerability.
  • Update the affected Linux kernel packages.
  • Update other affected system packages as needed.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-4037 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-4037 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-4037 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Aug. 10, 2026

    Action Type Old Value New Value
    Changed Affected [{'vendor': 'n/a', 'product': 'Kernel', 'versions': [{'status': 'affected', 'version': 'Fixed in Linux-kernel v5.11-rc1'}]}] [{'vendor': 'Linux', 'product': 'kernel', 'versions': [{'status': 'affected', 'version': '*', 'lessThan': '5.4.241', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.5', 'lessThan': '5.10.146', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.12', 'versionType': 'semver'}], 'packageName': 'kernel', 'collectionURL': 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:8::nfv', 'cpe:/a:redhat:enterprise_linux:8::realtime'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8', 'versions': [{'status': 'unaffected', 'version': '0:4.18.0-372.9.1.rt7.166.el8', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'kernel-rt', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:8::crb', 'cpe:/o:redhat:enterprise_linux:8::baseos'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8', 'versions': [{'status': 'unaffected', 'version': '0:4.18.0-372.9.1.el8', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'kernel', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:8.4::nfv', 'cpe:/a:redhat:rhel_eus:8.4::realtime'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8.4 Extended Update Support', 'versions': [{'status': 'unaffected', 'version': '0:4.18.0-305.49.1.rt7.121.el8_4', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'kernel-rt', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:8.4::crb', 'cpe:/o:redhat:rhel_eus:8.4::baseos'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8.4 Extended Update Support', 'versions': [{'status': 'unaffected', 'version': '0:4.18.0-305.49.1.el8_4', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'kernel', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:6'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 6', 'packageName': 'kernel', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 7', 'packageName': 'kernel', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 7', 'packageName': 'kernel-rt', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:9'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 9', 'packageName': 'kernel', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}]
    Changed 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. 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.
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
    Added Reference https://access.redhat.com/errata/RHSA-2022:1975
    Added Reference https://access.redhat.com/errata/RHSA-2022:1988
    Added Reference https://access.redhat.com/errata/RHSA-2022:4829
    Added Reference https://access.redhat.com/errata/RHSA-2022:4835
    Removed Reference https://bugzilla.redhat.com/show_bug.cgi?id=2004810
    Removed Reference https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html
    Removed Reference https://www.debian.org/security/2022/dsa-5257
    Removed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=2004810 Types: Issue Tracking, Permissions Required, Third Party Advisory
    Removed Reference Type https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html Types: Mailing List, Third Party Advisory
    Removed Reference Type https://www.debian.org/security/2022/dsa-5257 Types: Third Party Advisory
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'n/a', 'product': 'Kernel', 'versions': [{'status': 'affected', 'version': 'Fixed in Linux-kernel v5.11-rc1'}]}]
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/security/cve/CVE-2021-4037
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2004810
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2027239
    Added Reference https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e
    Added Reference https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848
    Added Reference https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html
    Added Reference https://www.debian.org/security/2022/dsa-5257
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Dec. 08, 2022

    Action Type Old Value New Value
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html Mailing List, Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Nov. 01, 2022

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html [No Types Assigned]
  • Modified Analysis by [email protected]

    Oct. 28, 2022

    Action Type Old Value New Value
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=2004810 Permissions Required, Third Party Advisory https://bugzilla.redhat.com/show_bug.cgi?id=2004810 Issue Tracking, Permissions Required, Third Party Advisory
    Changed Reference Type https://www.debian.org/security/2022/dsa-5257 No Types Assigned https://www.debian.org/security/2022/dsa-5257 Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 19, 2022

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2022/dsa-5257 [No Types Assigned]
  • Initial Analysis by [email protected]

    Aug. 29, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://access.redhat.com/security/cve/CVE-2021-4037 No Types Assigned https://access.redhat.com/security/cve/CVE-2021-4037 Third Party Advisory
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=2004810 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=2004810 Permissions Required, Third Party Advisory
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=2027239 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=2027239 Issue Tracking, Third Party Advisory
    Changed Reference Type https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e No Types Assigned https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e Mailing List, Patch, Vendor Advisory
    Changed Reference Type https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848 No Types Assigned https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848 Mailing List, Patch, Vendor Advisory
    Added CWE NIST NVD-CWE-Other
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.11
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.