Skip to content
Noroxi
CVE-2021-4037· NVD / CVE Program· CNA redhat

Kernel: security regression for cve-2018-13405

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.

MediumCVSS 4.4 · v3.1—No exploit Fix available
Published
Aug 24, 2022
Updated
Aug 10, 2026
EPSS
0.3% · 22th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

17

Monitor

Low priority for now.

CVSS
17 / 40 · 4.4 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

CNA vs NVD score

NVD
4.4
CNA · redhat
4.4
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
linuxlinux kernel
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux10.0
  • debian debian linux11.0
  • linux linux kernelbefore 5.11

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux kernel

    • 5.12not affected
    • before 5.4.241affected · semver
    • 5.5 and later · before 5.10.146affected · semver
  • Red Hat Red Hat Enterprise Linux 6

    • all versionsunknown
  • Red Hat Red Hat Enterprise Linux 7

    • all versionsunknown
    • all versionsunknown
  • Red Hat Red Hat Enterprise Linux 8

    • 0:4.18.0-372.9.1.rt7.166.el8 and laternot affected · rpm
    • 0:4.18.0-372.9.1.el8 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support

    • 0:4.18.0-305.49.1.rt7.121.el8_4 and laternot affected · rpm
    • 0:4.18.0-305.49.1.el8_4 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 9

    • all versionsunknown

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:10linux-5.10before 5.10.149-2~deb10u15.10.149-2~deb10u1
Debian:11linuxbefore 5.10.149-15.10.149-1
Debian:12linuxbefore 5.14.6-15.14.6-1
openSUSE:Leap 15.3dtb-aarch64before 5.3.18-150300.59.101.15.3.18-150300.59.101.1
openSUSE:Leap 15.3kernel-debugbefore 4.12.14-150100.197.131.14.12.14-150100.197.131.1
openSUSE:Leap 15.3kernel-debugbefore 5.3.18-150300.59.101.15.3.18-150300.59.101.1
openSUSE:Leap 15.3kernel-kvmsmallbefore 4.12.14-150100.197.131.14.12.14-150100.197.131.1
openSUSE:Leap 15.3kernel-kvmsmallbefore 5.3.18-150300.59.101.15.3.18-150300.59.101.1
openSUSE:Leap 15.3kernel-obs-qabefore 5.3.18-150300.59.101.15.3.18-150300.59.101.1
openSUSE:Leap 15.3kernel-vanillabefore 4.12.14-150100.197.131.14.12.14-150100.197.131.1
openSUSE:Leap 15.4dtb-aarch64before 5.14.21-150400.24.21.15.14.21-150400.24.21.1
openSUSE:Leap 15.4kernel-debugbefore 5.14.21-150400.24.21.25.14.21-150400.24.21.2
openSUSE:Leap 15.4kernel-kvmsmallbefore 5.14.21-150400.24.21.25.14.21-150400.24.21.2
openSUSE:Leap 15.4kernel-obs-qabefore 5.14.21-150400.24.21.15.14.21-150400.24.21.1
Red Hat:enterprise_linux:8::nfvkernel-rtbefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-corebefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debugbefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debug-corebefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debug-debuginfobefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debug-develbefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debug-kvmbefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debug-modulesbefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debug-modules-extrabefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8
Red Hat:enterprise_linux:8::nfvkernel-rt-debuginfobefore 0:4.18.0-372.9.1.rt7.166.el80:4.18.0-372.9.1.rt7.166.el8

+96

Other highest-scoring records for the same primary product.

  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now
  • CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV
    83Now
  • CVE-2019-13272In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to creKEV
    77This week
  • CVE-2013-6282The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the v6k and v7 ARM platforms do not validate certain addKEV
    77This week
  • CVE-2013-2094The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows loKEV
    77This week

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux kernel5.10.146Vendor (CNA)
Linux kernel5.4.241Vendor (CNA)
debian:linux5.14.6-1 · Debian:12Package registry (OSV)
debian:linux-5.105.10.149-2~deb10u1 · Debian:10Package registry (OSV)
opensuse:kernel-azure5.14.21-150400.14.13.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:kernel-source-azure5.14.21-150400.14.13.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:kernel-syms-azure5.14.21-150400.14.13.1 · openSUSE:Leap 15.4Package registry (OSV)
red hat:kernel-rt0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-core0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debug0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debug-core0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debug-debuginfo0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debug-devel0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debug-kvm0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debug-modules0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debug-modules-extra0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debuginfo0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-debuginfo-common-x86_640:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
red hat:kernel-rt-devel0:4.18.0-372.9.1.rt7.166.el8 · Red Hat:enterprise_linux:8::nfvPackage registry (OSV)
rocky linux:kernel-rt0:4.18.0-372.9.1.rt7.166.el8 · Rocky Linux:8Package registry (OSV)
suse:kernel-64kb5.14.21-150400.24.21.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP4Package registry (OSV)
suse:kernel-azure5.14.21-150400.14.13.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP4Package registry (OSV)
suse:kernel-default5.14.21-150400.24.21.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP4Package registry (OSV)
suse:kernel-default-base5.14.21-150400.24.21.2.150400.24.7.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP4Package registry (OSV)
suse:kernel-docs5.14.21-150400.24.21.3 · SUSE:Linux Enterprise Module for Development Tools 15 SP4Package registry (OSV)
suse:kernel-source5.14.21-150400.24.21.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP4Package registry (OSV)
suse:kernel-source-azure5.14.21-150400.14.13.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP4Package registry (OSV)
suse:kernel-syms-azure5.14.21-150400.14.13.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP4Package registry (OSV)
suse:kernel-zfcpdump5.14.21-150400.24.21.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP4Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
low · data or configuration can be modified
Availability
none
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
Low
Availability impact
None

CVSS vector

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

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records