Kernel: security regression for cve-2018-13405

Summary

CVECVE-2021-4037
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-08-24 16:15:09 UTC
Updated2026-08-10 17:17:27 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.003020000 probability, percentile 0.226190000 (date 2026-08-11)

Problem Types: CWE-284 | NVD-CWE-Other | CWE-284 Improper Access Control


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Primary4.4MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
3.1CNACVSS4.4MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 11.0 All All All
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Kernel affected * 5.4.241 semver Not specified
CNA Linux Kernel affected 5.5 5.10.146 semver Not specified
CNA Linux Kernel unaffected 5.12 semver Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.0-372.9.1.rt7.166.el8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.0-372.9.1.el8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support unaffected 0:4.18.0-305.49.1.rt7.121.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support unaffected 0:4.18.0-305.49.1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9 Not specified Not specified

References

ReferenceSourceLinkTags
Debian -- Security Information -- DSA-5257-1 linux af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
2027239 – (CVE-2021-4037) CVE-2021-4037 kernel: security regression for CVE-2018-13405 af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Third Party Advisory
kernel/git/torvalds/linux.git - Linux kernel source tree af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Mailing List, Patch, Vendor Advisory
access.redhat.com/errata/RHSA-2022:4829 [email protected] access.redhat.com
[SECURITY] [DLA 3173-1] linux-5.10 security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
Bug Access Denied af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Permissions Required, Third Party Advisory
access.redhat.com/errata/RHSA-2022:4835 [email protected] access.redhat.com
kernel/git/torvalds/linux.git - Linux kernel source tree af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Mailing List, Patch, Vendor Advisory
Red Hat Customer Portal - Access to 24x7 support and knowledge af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2022:1975 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2022:1988 [email protected] access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2021-11-29T00:00:00.000ZReported to Red Hat.
CNA2021-09-16T09:00:00.000ZMade public.

Workarounds

CNA: 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.

Legacy QID Mappings

  • 159825 Oracle Enterprise Linux Security Update for kernel (ELSA-2022-1988)
  • 181145 Debian Security Update for linux (DSA 5257-1)
  • 181190 Debian Security Update for linux-5.10 (DLA 3173-1)
  • 183412 Debian Security Update for linux (CVE-2021-4037)
  • 240275 Red Hat Update for kernel-rt (RHSA-2022:1975)
  • 240298 Red Hat Update for kernel security (RHSA-2022:1988)
  • 240390 Red Hat Update for kernel-rt (RHSA-2022:4835)
  • 240392 Red Hat Update for kernel security (RHSA-2022:4829)
  • 257226 CentOS Security Update for kernel (CESA-2023:1091)
  • 354101 Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2022-021
  • 377741 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX3-SA-2022:0175)
  • 377766 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX2-SA-2022:0049)
  • 377871 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX2-SA-2023:0001)
  • 377891 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX3-SA-2023:0002)
  • 6140127 AWS Bottlerocket Security Update for kernel (GHSA-g3v4-8q9p-hjcc)
  • 671367 EulerOS Security Update for kernel (EulerOS-SA-2022-1308)
  • 671380 EulerOS Security Update for kernel (EulerOS-SA-2022-1292)
  • 671436 EulerOS Security Update for kernel (EulerOS-SA-2022-1352)
  • 671498 EulerOS Security Update for kernel (EulerOS-SA-2022-1466)
  • 671543 EulerOS Security Update for kernel (EulerOS-SA-2022-1475)
  • 671561 EulerOS Security Update for kernel (EulerOS-SA-2022-1523)
  • 671703 EulerOS Security Update for kernel (EulerOS-SA-2022-1735)
  • 752594 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:3293-1)
  • 752813 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:3930-1)
  • 752839 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:3929-1)
  • 752880 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4053-1)
  • 752889 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:3897-1)
  • 752944 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4273-1)
  • 752959 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4272-1)
  • 753038 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4573-1)
  • 753039 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4574-1)
  • 753051 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4589-1)
  • 753060 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4615-1)
  • 753063 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:4617-1)
  • 753167 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2022:3288-1)
  • 903723 Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (10702)
  • 904621 Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (10702-1)
  • 906178 Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (10702-2)
  • 940517 AlmaLinux Security Update for kernel (ALSA-2022:1988)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report