Vulnerability · Published Aug 24, 2022 · Assigned by redhat
CVE-2021-4037Kernel: security regression for cve-2018-13405
Medium 4.4
In plain English
A medium-severity improper access control in kernel from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-core | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-debug | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-devel | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-doc | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-headers | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-modules | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-tools | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | perf | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux:8 | python3-perf | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| Debian:12 | linux | 5.14.6-1 | DEBIAN-CVE-2021-4037 |
| Debian:13 | linux | 5.14.6-1 | DEBIAN-CVE-2021-4037 |
| Debian:14 | linux | 5.14.6-1 | DEBIAN-CVE-2021-4037 |
| Rocky Linux:8 | kernel | 0:4.18.0-372.9.1.el8 | RLSA-2022:1988 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-372.9.1.rt7.166.el8 | RLSA-2022:1975 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2021-4037 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2021-4037 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2021-4037 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | kernel | * – before 5.4.2415.5 – before 5.10.146 |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
Weakness: CWE-284 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
References
- RHSA-2022:1975 vendor-advisory, x_refsource_REDHAT
- RHSA-2022:1988 vendor-advisory, x_refsource_REDHAT
- RHSA-2022:4829 vendor-advisory, x_refsource_REDHAT
- RHSA-2022:4835 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2021-4037 vdb-entry, x_refsource_REDHAT
- RHBZ#2027239 issue-tracking, x_refsource_REDHAT
- 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
- https://bugzilla.redhat.com/show_bug.cgi?id=2004810 x_transferred
- DSA-5257 vendor-advisory, x_transferred
- [debian-lts-announce] 20221101 [SECURITY] [DLA 3173-1] linux-5.10 security update mailing-list, x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-806742.html