{"id":"CVE-2021-4037","published":"2022-08-24T00:00:00Z","modified":"2026-10-14T10:04:01Z","title":"Kernel: security regression for cve-2018-13405","vendor":"Linux","product":"kernel","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00337,"percentile":0.27847,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2022:1975","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2022:1988","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2022:4829","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2022:4835","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-4037","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2027239","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e","tags":[]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2004810","tags":["x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5257","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html","tags":["mailing-list","x_transferred"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-806742.html","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":5.57},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"kernel","versions":["< 5.4.241",">= 5.5, < 5.10.146"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Extended Update Support","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Extended Update Support","versions":["all versions"]}],"fixedVersions":[{"vendor":"Linux","product":"kernel","versions":["5.12"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"euvd":{"id":"EUVD-2021-33937","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2018-13405","to":"CVE-2021-4037","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This vulnerability is similar to the previous CVE-2018-13405 and adds the missed fix for the XFS.","from":"CVE.org","in":"CVE-2021-4037"}]}]}}