cve.bz

CVE-2021-4037 Improper Access Control

4.4 mediumEPSS 0.3%Fix available

Medium (4.4). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.4 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4037 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4037?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4037?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4037 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-4037

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-4037](https://cve.bz/cve/badge/CVE-2021-4037.svg)](https://cve.bz/cve/CVE-2021-4037)

HTML:

<a href="https://cve.bz/cve/CVE-2021-4037"><img src="https://cve.bz/cve/badge/CVE-2021-4037.svg" alt="CVE-2021-4037"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux kernelbefore 5.4.241
Linux kernelfrom 5.5 before 5.10.146

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:4.18.0-372.9.1.rt7.166.el8
Red Hat Enterprise Linux 80:4.18.0-372.9.1.el8
Red Hat Enterprise Linux 8.4 Extended Update Support0:4.18.0-305.49.1.rt7.121.el8_4
Red Hat Enterprise Linux 8.4 Extended Update Support0:4.18.0-305.49.1.el8_4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux-5.105.10.149-2~deb10u1DLA-3173-1
Debian11linux5.10.149-1DSA-5257-1
Debian12, 13, 14linux5.14.6-1DEBIAN-CVE-2021-4037
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux4.15.0-166.174UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-aws4.15.0-1118.125UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1061.64~18.04.1UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1129.142UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1065.68~18.04.1UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-dell300x4.15.0-1033.38UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1114.128UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-gcp-5.4, linux-oracle-5.45.4.0-1059.63~18.04.1UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1057.60~18.04.1UBUNTU-CVE-2021-4037
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1029.30~18.04.2UBUNTU-CVE-2021-4037
46 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-372.9.1.el8RHSA-2022:1988
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-372.9.1.el8RHSA-2022:1988
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-372.9.1.rt7.166.el8RHSA-2022:1975
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-372.9.1.rt7.166.el8RHSA-2022:1975
Red Hatrhel_eus:8.4::baseosperf, kernel, bpftool and 30 more0:4.18.0-305.49.1.el8_4RHSA-2022:4829
Red Hatrhel_eus:8.4::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-305.49.1.el8_4RHSA-2022:4829
Red Hatrhel_eus:8.4::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-305.49.1.rt7.121.el8_4RHSA-2022:4835
Red Hatrhel_eus:8.4::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-305.49.1.rt7.121.el8_4RHSA-2022:4835
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 morekernel-docs, kernel-syms, kernel-source and 2 more4.12.14-150100.197.131.1SUSE-SU-2022:4574-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 morekernel-default-base5.3.18-150200.24.139.1.150200.9.65.2SUSE-SU-2022:4589-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 3 morekernel-docs, kernel-syms, kernel-source and 3 more5.3.18-150200.24.139.1SUSE-SU-2022:4589-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.114.1SUSE-SU-2022:4615-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.139.1SUSE-SU-2022:4272-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15kernel-default4.12.14-150000.150.109.1SUSE-SU-2022:4573-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-150100.197.131.1SUSE-SU-2022:4574-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.139.1SUSE-SU-2022:4589-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 2 morekernel-default5.3.18-150300.59.101.1SUSE-SU-2022:4053-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Module for Legacy 15 SP4 and 1 morekernel-default5.14.21-150400.24.21.2SUSE-SU-2022:3293-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server for SAP Applications 15kernel-docs, kernel-syms, kernel-source and 3 more4.12.14-150000.150.109.1SUSE-SU-2022:4573-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_321-6.3.1SUSE-SU-2022:4615-1
32 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-150300.59.101.1SUSE-SU-2022:4053-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.83.1SUSE-SU-2022:3897-1
openSUSELeap 15.3, Leap 15.4kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-150100.197.131.1SUSE-SU-2022:4574-1
openSUSELeap 15.3, Leap Micro 5.2kernel-default-base5.3.18-150300.59.101.1.150300.18.58.1SUSE-SU-2022:4053-1
openSUSELeap 15.4dtb-aarch645.3.18-150300.59.101.1SUSE-SU-2022:4053-1
openSUSELeap 15.4dtb-aarch64, kernel-syms, kernel-obs-qa5.14.21-150400.24.21.1SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-64kb, kernel-debug, kernel-source and 4 more5.14.21-150400.24.21.2SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.13.1SUSE-SU-2022:3288-1
openSUSELeap 15.4kernel-default-base5.14.21-150400.24.21.2.150400.24.7.2SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-docs5.14.21-150400.24.21.3SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.5.1SUSE-SU-2022:4617-1
openSUSELeap Micro 5.2kernel-default5.3.18-150300.59.101.1SUSE-SU-2022:4053-1
1 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8perf, kernel, bpftool and 17 more4.18.0-372.9.1.el8ALSA-2022:1988
Rocky Linux8kernel0:4.18.0-372.9.1.el8RLSA-2022:1988
Rocky Linux8kernel-rt0:4.18.0-372.9.1.rt7.166.el8RLSA-2022:1975

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The Impact is Moderate, because if no configuration problems with the system, then unlikely higher impact than unauthorized read access.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-372.9.1.rt7.166.el8Fixed 2022-05-10RHSA-2022:1975
Red Hat Enterprise Linux 8kernel-0:4.18.0-372.9.1.el8Fixed 2022-05-10RHSA-2022:1988
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-rt-0:4.18.0-305.49.1.rt7.121.el8_4Fixed 2022-05-31RHSA-2022:4835
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-0:4.18.0-305.49.1.el8_4Fixed 2022-05-31RHSA-2022:4829
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4037.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17).

References

Check your stackJSON