CVE-2021-3864

HIGH

Linux Kernel - Improper Access Control via SUID Binary Core Dump Handling

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2021-3864. PoCs published by walac.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2021-3864, a local privilege escalation vulnerability in sudo. The exploit leverages a heap-based buffer overflow in sudo's command-line argument parsing to execute arbitrary commands as root via a crafted logrotate configuration file.

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.

Exploits (1)

nomisec WORKING POC
by walac · poc
https://github.com/walac/cve-2021-3864

This repository contains a functional exploit for CVE-2021-3864, a local privilege escalation vulnerability in sudo. The exploit leverages a heap-based buffer overflow in sudo's command-line argument parsing to execute arbitrary commands as root via a crafted logrotate configuration file.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: sudo (versions before 1.9.5p2)
Auth required
Prerequisites: Local user access · Ability to modify /etc/sudoers · Ability to modify /etc/logrotate.d
mistral-large-3 · analyzed Feb 18, 2026 Full analysis →

References (7)

Core 7
Core References
Exploit, Mailing List, Third Party Advisory x_refsource_misc
https://www.openwall.com/lists/oss-security/2021/10/20/2
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=2015046
Third Party Advisory x_refsource_misc
https://access.redhat.com/security/cve/CVE-2021-3864
Third Party Advisory x_refsource_misc
https://security-tracker.debian.org/tracker/CVE-2021-3864

Scores

CVSS v3 7.0
EPSS 0.0073
EPSS Percentile 49.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-284
Status published
Products (6)
debian/debian_linux 10.0
debian/debian_linux 11.0
linux/linux_kernel
redhat/enterprise_linux 6.0
redhat/enterprise_linux 7.0
redhat/enterprise_linux 9.0
Published Aug 26, 2022
Tracked Since Feb 18, 2026