CVE-2021-3864 Details
Description
A flaw was found in the way the dumpable flag setting was handled when certain SUID binaries executed its descendants. The prerequisite is a SUID binary that sets real UID equal to effective UID, and real GID equal to effective GID. The descendant will then have a dumpable value set to 1. As a result, if the descendant process crashes and core_pattern is set to a relative value, its core dump is stored in the current directory with uid:gid permissions. An unprivileged local user with eligible root SUID binary could use this flaw to place core dumps into root-owned directories, potentially resulting in escalation of privileges.
A vulnerability in the Linux kernel allows for privilege escalation by exploiting improper handling of core dump permissions in certain SUID binaries. When a SUID binary that sets the real UID and GID to match the effective values executes a descendant process, the descendant is marked as dumpable. If this process crashes and the core pattern is set to a relative path, the core dump is saved in the current directory with UID and GID permissions. An unprivileged user can leverage this flaw to place core dumps in root-owned directories, potentially escalating privileges. This issue affects multiple Linux distributions, including Ubuntu 21.04 and Debian 11, but is not present in CentOS 8 or Red Hat Enterprise Linux 8.
To mitigate this vulnerability, the core pattern can be changed to an absolute path that does not interfere with logrotate. Additionally, restoring the 'pam_limits.so' module to the 'sudo' PAM configuration can prevent the issue by controlling core dump permissions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-284 | Improper Access Control | [email protected] |
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | All versions |
CPE
Remediation
| |
| debian debian linux | 10.0 11.0 |
CPE
Remediation
| |
| redhat enterprise linux | 6.0 7.0 9.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 12, 2023 | CVE Modified | [email protected] |
| Sep 1, 2022 | Initial Analysis | [email protected] |