{"api_version":"1","generated_at":"2026-07-23T14:29:07+00:00","cve":"CVE-2021-3864","urls":{"html":"https://cve.report/CVE-2021-3864","api":"https://cve.report/api/cve/CVE-2021-3864.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3864","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3864"},"summary":{"title":"CVE-2021-3864","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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-08-26 16:15:00","updated_at":"2023-02-12 23:42:00"},"problem_types":["CWE-284"],"metrics":[],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2015046","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2015046","refsource":"MISC","tags":[],"title":"2015046 – (CVE-2021-3864) CVE-2021-3864 kernel: descendant's dumpable setting with certain SUID binaries","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lore.kernel.org/all/20211226150310.GA992@1wt.eu/","name":"https://lore.kernel.org/all/20211226150310.GA992@1wt.eu/","refsource":"MISC","tags":[],"title":"Re: [PATCH] exec: Make suid_dumpable apply to SUID/SGID binaries irrespective of invoking users - Willy Tarreau","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.openwall.com/lists/oss-security/2021/10/20/2","name":"https://www.openwall.com/lists/oss-security/2021/10/20/2","refsource":"MISC","tags":[],"title":"oss-security - Core-dump handing issues with suid binaries","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lore.kernel.org/all/20211226150310.GA992%401wt.eu/","name":"https://lore.kernel.org/all/20211226150310.GA992%401wt.eu/","refsource":"MISC","tags":[],"title":"Re: [PATCH] exec: Make suid_dumpable apply to SUID/SGID binaries irrespective of invoking users - Willy Tarreau","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lore.kernel.org/lkml/20211228170910.623156-1-wander%40redhat.com/","name":"https://lore.kernel.org/lkml/20211228170910.623156-1-wander%40redhat.com/","refsource":"MISC","tags":[],"title":"[PATCH RFC v2 0/4] coredump: mitigate privilege escalation of process coredump - Wander Lairson Costa","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lore.kernel.org/lkml/20211228170910.623156-1-wander@redhat.com/","name":"https://lore.kernel.org/lkml/20211228170910.623156-1-wander@redhat.com/","refsource":"MISC","tags":[],"title":"[PATCH RFC v2 0/4] coredump: mitigate privilege escalation of process coredump - Wander Lairson Costa","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://access.redhat.com/security/cve/CVE-2021-3864","name":"https://access.redhat.com/security/cve/CVE-2021-3864","refsource":"MISC","tags":[],"title":"Red Hat Customer Portal - Access to 24x7 support and knowledge","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3864","name":"https://security-tracker.debian.org/tracker/CVE-2021-3864","refsource":"MISC","tags":[],"title":"CVE-2021-3864","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lore.kernel.org/all/20211221021744.864115-1-longman@redhat.com/","name":"https://lore.kernel.org/all/20211221021744.864115-1-longman@redhat.com/","refsource":"MISC","tags":[],"title":"[PATCH] exec: Make suid_dumpable apply to SUID/SGID binaries irrespective of invoking users - Waiman Long","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lore.kernel.org/all/20211221021744.864115-1-longman%40redhat.com/","name":"https://lore.kernel.org/all/20211221021744.864115-1-longman%40redhat.com/","refsource":"MISC","tags":[],"title":"[PATCH] exec: Make suid_dumpable apply to SUID/SGID binaries irrespective of invoking users - Waiman Long","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3864","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3864","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3864","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3864","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3864","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3864","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"6.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3864","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3864","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2021-3864","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-284 - Improper Access Control","cweId":"CWE-284"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"kernel","version":{"version_data":[{"version_affected":"=","version_value":"Not Known"}]}}]}}]}},"references":{"reference_data":[{"url":"https://www.openwall.com/lists/oss-security/2021/10/20/2","refsource":"MISC","name":"https://www.openwall.com/lists/oss-security/2021/10/20/2"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2015046","refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2015046"},{"url":"https://access.redhat.com/security/cve/CVE-2021-3864","refsource":"MISC","name":"https://access.redhat.com/security/cve/CVE-2021-3864"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3864","refsource":"MISC","name":"https://security-tracker.debian.org/tracker/CVE-2021-3864"},{"url":"https://lore.kernel.org/all/20211221021744.864115-1-longman%40redhat.com/","refsource":"MISC","name":"https://lore.kernel.org/all/20211221021744.864115-1-longman%40redhat.com/"},{"url":"https://lore.kernel.org/all/20211226150310.GA992%401wt.eu/","refsource":"MISC","name":"https://lore.kernel.org/all/20211226150310.GA992%401wt.eu/"},{"url":"https://lore.kernel.org/lkml/20211228170910.623156-1-wander%40redhat.com/","refsource":"MISC","name":"https://lore.kernel.org/lkml/20211228170910.623156-1-wander%40redhat.com/"}]}},"nvd":{"publishedDate":"2022-08-26 16:15:00","lastModifiedDate":"2023-02-12 23:42:00","problem_types":["CWE-284"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3864","Ordinal":"217850","Title":"CVE-2021-3864","CVE":"CVE-2021-3864","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3864","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}