CVE-2021-4037 in Debian Linux and 10 more products
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.
Affects 11 products from 3 vendors. Description from NVD and MITRE.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 10.0 11.0 |
| Linux | Linux Kernel | < 5.11 ≥ 5.5, < 5.10.146 |
| Linux | Kernel | < 5.11 ≥ 5.5, < 5.10.146 |
| Siemens | SIMATIC S7-1500 Tm Mfp (device and firmware) | < 1.1 |
| Siemens | SCALANCE XCH328 | < 2.4 |
| Siemens | SCALANCE XCM324 | < 2.4 |
| Siemens | SCALANCE XCM328 | < 2.4 |
| Siemens | SCALANCE XCM332 | < 2.4 |
| Siemens | SCALANCE XRH334 | < 2.4 |
| Siemens | SCALANCE XRM334 | < 2.4 |
Fix and vendor advisory
- SIMATIC S7-1500 TM MFP - GNU/Linux subsystem: Update to V1.1 or later version
Source: ICSA-23-166-11
- SCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 7 more: Update to V2.4 or later version
Source: ICSA-24-046-11
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2021-4037 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-322837-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| Published | 2022-08-24 |
| Last modified | 2026-10-14 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict file and directory permission policies, and regularly audit file system permissions to ensure they are correctly set. Use SELinux or AppArmor to enforce additional security policies.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-14.