Skip to content
Fencer Intel
high 7.8

CVE-2021-4037 json

Kernel: security regression for cve-2018-13405

published 4y ago modified 26d ago also EUVD-2021-33937

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 27%
public exploits
0
none known

Summary

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.

Patch / fix

  • Linux kernel 5.4.241, 5.10.146, 5.12
  • Red Hat Red Hat Enterprise Linux 8 0:4.18.0-372.9.1.el8, 0:4.18.0-372.9.1.rt7.166.el8
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support 0:4.18.0-305.49.1.el8_4, 0:4.18.0-305.49.1.rt7.121.el8_4
  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem V1.1
  • linux Debian 14, Debian 13, Debian 12 5.14.6-1

debian advisories DEBIAN-CVE-2021-4037

  • linux Ubuntu 18.04 LTS 4.15.0-166.174
  • linux Ubuntu 20.04 LTS 5.4.0-92.103
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1118.125
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1061.64
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1059.63
  • linux-gke Ubuntu 20.04 LTS 5.4.0-1057.60
  • linux-ibm Ubuntu 20.04 LTS 5.4.0-1010.11
  • linux-kvm Ubuntu 18.04 LTS 4.15.0-1105.107

ubuntu advisories UBUNTU-CVE-2021-4037

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 8 4.18.0-372.9.1.el8
  • perf RHEL 8 4.18.0-372.9.1.el8
  • bpftool RHEL 8 4.18.0-372.9.1.el8
  • kernel-core RHEL 8 4.18.0-372.9.1.el8
  • kernel-tools RHEL 8 4.18.0-372.9.1.el8
  • python3-perf RHEL 8 4.18.0-372.9.1.el8
  • kernel-modules RHEL 8 4.18.0-372.9.1.el8
  • kernel-zfcpdump RHEL 8 4.18.0-372.9.1.el8

red hat advisories RHSA-2022:1988RHSA-2022:4829RHSA-2022:4835RHSA-2022:1975

  • kernel-rt Real Time Module 15 SP4, openSUSE Leap 15.4 5.14.21-150400.15.5.1
  • kernel-syms-rt Real Time Module 15 SP4, openSUSE Leap 15.4 5.14.21-150400.15.5.1
  • kernel-rt_debug Real Time Module 15 SP4, openSUSE Leap 15.4 5.14.21-150400.15.5.1
  • kernel-source-rt Real Time Module 15 SP4, openSUSE Leap 15.4 5.14.21-150400.15.5.1
  • kernel-syms SLES for SAP 12 SP4, SLES 12 SP4-LTSS, OpenStack Cloud Crowbar 9 +1 more 4.12.14-95.114.1
  • kernel-source SLES for SAP 12 SP4, SLES 12 SP4-LTSS, OpenStack Cloud Crowbar 9 +1 more 4.12.14-95.114.1
  • kernel-default SLES for SAP 12 SP4, SLES 12 SP4-LTSS, SLE Live Patching 12 SP4 +3 more 4.12.14-95.114.1
  • kernel-rt SLE Real Time 12 SP5 4.12.14-10.109.1

suse advisories SUSE-SU-2022:4617-1SUSE-SU-2022:4615-1SUSE-SU-2022:4614-1SUSE-SU-2022:4611-1SUSE-SU-2022:4589-1SUSE-SU-2022:4574-1

  • kernel AlmaLinux 8 4.18.0-372.9.1.el8
  • perf AlmaLinux 8 4.18.0-372.9.1.el8
  • bpftool AlmaLinux 8 4.18.0-372.9.1.el8
  • kernel-core AlmaLinux 8 4.18.0-372.9.1.el8
  • kernel-tools AlmaLinux 8 4.18.0-372.9.1.el8
  • python3-perf AlmaLinux 8 4.18.0-372.9.1.el8
  • kernel-modules AlmaLinux 8 4.18.0-372.9.1.el8
  • kernel-debug-core AlmaLinux 8 4.18.0-372.9.1.el8

almalinux advisories ALSA-2022:1988

  • kernel Rocky Linux 8 4.18.0-372.9.1.el8
  • kernel-rt Rocky Linux 8 4.18.0-372.9.1.rt7.166.el8

rocky linux advisories RLSA-2022:1988RLSA-2022:1975

Is CVE-2021-4037 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-4037 updated cvss 4.4

kernel: security regression for CVE-2018-13405

  • Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-372.9.1.el8, kernel 4.18.0-372.9.1.el8, bpftool 4.18.0-372.9.1.el8, kernel-core 4.18.0-372.9.1.el8, kernel-tools 4.18.0-372.9.1.el8, python3-perf 4.18.0-372.9.1.el8, +15 more
    fixed: vendor fix RHSA-2022:1988
  • Red Hat Enterprise Linux BaseOS EUS (v.8.4) perf 4.18.0-305.49.1.el8_4, kernel 4.18.0-305.49.1.el8_4, bpftool 4.18.0-305.49.1.el8_4, kernel-core 4.18.0-305.49.1.el8_4, kernel-tools 4.18.0-305.49.1.el8_4, python3-perf 4.18.0-305.49.1.el8_4, +15 more
    fixed: vendor fix RHSA-2022:4829
  • Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-372.9.1.el8, kernel-debuginfo-common-aarch64 4.18.0-372.9.1.el8, kernel-debuginfo-common-ppc64le 4.18.0-372.9.1.el8
    fixed: vendor fix RHSA-2022:1988
  • Red Hat Enterprise Linux CRB EUS (v.8.4) kernel-debuginfo-common-x86_64 4.18.0-305.49.1.el8_4, kernel-debuginfo-common-aarch64 4.18.0-305.49.1.el8_4, kernel-debuginfo-common-ppc64le 4.18.0-305.49.1.el8_4
    fixed: vendor fix RHSA-2022:4829
  • Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-372.9.1.rt7.166.el8, kernel-rt-kvm 4.18.0-372.9.1.rt7.166.el8, kernel-rt-core 4.18.0-372.9.1.rt7.166.el8, kernel-rt-modules 4.18.0-372.9.1.rt7.166.el8, kernel-rt-debug-kvm 4.18.0-372.9.1.rt7.166.el8, kernel-rt-debug-core 4.18.0-372.9.1.rt7.166.el8, +4 more
    fixed: vendor fix RHSA-2022:1975
  • Red Hat Enterprise Linux NFV EUS (v.8.4) kernel-rt 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-kvm 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-core 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-modules 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-debug-kvm 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-debug-core 4.18.0-305.49.1.rt7.121.el8_4, +4 more
    fixed: vendor fix RHSA-2022:4835
  • Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-372.9.1.rt7.166.el8, kernel-rt-core 4.18.0-372.9.1.rt7.166.el8, kernel-rt-modules 4.18.0-372.9.1.rt7.166.el8, kernel-rt-debug-core 4.18.0-372.9.1.rt7.166.el8, kernel-rt-debug-modules 4.18.0-372.9.1.rt7.166.el8, kernel-rt-modules-extra 4.18.0-372.9.1.rt7.166.el8, +2 more
    fixed: vendor fix RHSA-2022:1975
  • Red Hat Enterprise Linux RT EUS (v.8.4) kernel-rt 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-core 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-modules 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-debug-core 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-debug-modules 4.18.0-305.49.1.rt7.121.el8_4, kernel-rt-modules-extra 4.18.0-305.49.1.rt7.121.el8_4, +2 more
    fixed: vendor fix RHSA-2022:4835
show 1 more
  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-23-166-11 updated cvss 7.8

Siemens SIMATIC S7-1500 TM MFP Linux Kernel

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-24-046-11 updated cvss 7.8

Siemens SCALANCE XCM-/XRM-300

  • Siemens SCALANCE XCH328 (6GK5328-4TS01-2EC2) <V2.4 Siemens SCALANCE XCM324 (6GK5324-8TS01-2AC2) <V2.4 Siemens SCALANCE XCM328 (6GK5328-4TS01-2AC2) <V2.4 Siemens SCALANCE XCM332 (6GK5332-0GA01-2AC2) <V2.4 Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) (6GK5334-2TS01-2ER3) <V2.4 Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) (6GK5334-2TS01-4AR3) <V2.4
    +5 more products
    Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) (6GK5334-3TS01-4AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 8xFO) (6GK5334-2TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 12xFO) (6GK5334-3TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 8xFO) (6GK5334-2TS01-3AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 12xFO) (6GK5334-3TS01-3AR3) <V2.4
    affected: fixed in V2.4 support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

Exploit prediction

0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

  • Linux kernel
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 6
  • Red Hat Red Hat Enterprise Linux 7
  • Red Hat Red Hat Enterprise Linux 9
  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.