Kernel: security regression for cve-2018-13405
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-284.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | kernel | before 5.4.241; 5.5 to before 5.10.146 | 5.4.241, 5.10.146, 5.12 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | 4.18.0-372.9.1.rt7.166.el8 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | 4.18.0-372.9.1.el8 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support | — | 4.18.0-305.49.1.rt7.121.el8_4 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support | — | 4.18.0-305.49.1.el8_4 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 6 | — | — | Not affected | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | Not affected | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | Not affected | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | — | Not affected | CNA |
- kernel VendorLinux Affected before 5.4.241; 5.5 to before 5.10.146 Fixed in 5.4.241, 5.10.146, 5.12 Patch available CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 4.18.0-372.9.1.rt7.166.el8 Patch available CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 4.18.0-372.9.1.el8 Patch available CNA
- Red Hat Enterprise Linux 8.4 Extended Update Support VendorRed Hat Affected — Fixed in 4.18.0-305.49.1.rt7.121.el8_4 Patch available CNA
- Red Hat Enterprise Linux 8.4 Extended Update Support VendorRed Hat Affected — Fixed in 4.18.0-305.49.1.el8_4 Patch available CNA
- Red Hat Enterprise Linux 6 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in — Not affected CNA
Remediation
- Fix · CNA kernel (Linux) Fixed in 5.4.241, 5.10.146, 5.12
Red Hat 4 advisories
- RHSA-2022:4835 Released 2022-05-31 · Red Hat rating Importantkernel-rt security and bug fix update
- Red Hat Enterprise Linux NFV 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-debug-4.18.0-305.49.1.rt7.121.el8_4 +9
- 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-debug-4.18.0-305.49.1.rt7.121.el8_4 +7
- RHSA-2022:4829 Released 2022-05-31 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux BaseOS EUS (v.8.4) bpftool-4.18.0-305.49.1.el8_4, kernel-4.18.0-305.49.1.el8_4, kernel-abi-stablelists-4.18.0-305.49.1.el8_4 +19
- Red Hat Enterprise Linux CRB EUS (v.8.4) kernel-tools-libs-devel-4.18.0-305.49.1.el8_4
- RHSA-2022:1988 Released 2022-05-10 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-372.9.1.el8, kernel-4.18.0-372.9.1.el8, kernel-abi-stablelists-4.18.0-372.9.1.el8 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-372.9.1.el8
Show 1 more Red Hat advisories
- RHSA-2022:1975 Released 2022-05-10 · Red Hat rating Importantkernel-rt security and bug fix update
- Red Hat Enterprise Linux NFV (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-debug-4.18.0-372.9.1.rt7.166.el8 +9
- 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-debug-4.18.0-372.9.1.rt7.166.el8 +7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2022:1988 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.4) | Fixed | RHSA-2022:4829 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2022:1988 |
| Red Hat Enterprise Linux CRB EUS (v.8.4) | Fixed | RHSA-2022:4829 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2022:1975 |
| Red Hat Enterprise Linux NFV EUS (v.8.4) | Fixed | RHSA-2022:4835 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2022:1975 |
| Red Hat Enterprise Linux RT EUS (v.8.4) | Fixed | RHSA-2022:4835 |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-4037
- 2026-10-03 Alias added: GHSA-gvgr-4fph-m6hc
References
Patch 2
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2021-4037 · CVE Program
- CVE-2021-4037 · NVD
- FIRST EPSS
- GHSA-gvgr-4fph-m6hc · GitHub Advisory Database · CC BY 4.0
- CVE-2021-4037 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences