{"id":"CVE-2021-4037","details":"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.","modified":"2026-03-15T22:41:54.619647Z","published":"2022-08-24T16:15:09.257Z","related":["ALSA-2022:1988","SUSE-SU-2022:3288-1","SUSE-SU-2022:3293-1","SUSE-SU-2022:3897-1","SUSE-SU-2022:3929-1","SUSE-SU-2022:3930-1","SUSE-SU-2022:4053-1","SUSE-SU-2022:4272-1","SUSE-SU-2022:4273-1","SUSE-SU-2022:4561-1","SUSE-SU-2022:4573-1","SUSE-SU-2022:4574-1","SUSE-SU-2022:4589-1","SUSE-SU-2022:4611-1","SUSE-SU-2022:4614-1","SUSE-SU-2022:4615-1","SUSE-SU-2022:4617-1"],"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5257"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2021-4037"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2004810"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2027239"},{"type":"FIX","url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e"},{"type":"FIX","url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4037.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"5.11"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]},{"events":[{"introduced":"0"},{"last_affected":"11.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}