Linux Kernel: io_uring privilege escalation (CVE-2024-0582)
CVE-2024-0582 is a privilege escalation vulnerability in the Linux kernel io_uring subsystem that enables unauthorized write access to /etc/passwd via a Dirty Cred technique.
CVE search metadata
CVE search record: CVE-2024-0582. Severity: high. CVSS: 7.8. EPSS: 12.73%. KEV: no. Product: Linux Kernel (< 6.6.5, 6.7). Brief: Linux Kernel: io_uring privilege escalation (CVE-2024-0582). Brief link: https://feed.craftedsignal.io/briefs/2026-10-linux-kernel-lpe/
Triage facts
Revision 1- Applicability
- Linux Kernel (< 6.6.5, 6.7)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 2 public sources
- Freshness
- Revision 1Oct 23, 19:48 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- B3Likely
A proof-of-concept exploit for CVE-2024-0582 has been published, targeting a use-after-free vulnerability within the Linux kernel io_uring subsystem during buffer ring unregistration. The exploit utilizes a "Dirty Cred" approach to corrupt kernel structures, specifically modifying the f_mode flags of file descriptors to grant write access to protected files, including /etc/passwd. Successful exploitation allows a local attacker to escalate privileges to root by injecting a backdoor entry into /etc/passwd.
Attack Chain
- Set CPU affinity and raise file descriptor limits to ensure exploit stability.
- Initialize an io_uring instance and register a buffer ring in kernel memory.
- Unregister the buffer ring to trigger the use-after-free vulnerability.
- Perform a file descriptor spray to target the /etc/passwd file descriptor.
- Corrupt the f_mode flags of the target file descriptor to make /etc/passwd writable.
- Append a custom root user backdoor entry to /etc/passwd.
Impact
Successful exploitation grants a local user full root privileges. The exploit requires local access and can be used to bypass system integrity by modifying sensitive configuration files.
Recommendation
- Audit kernel versions across the environment to identify systems running Linux Kernel versions < 6.6.5 or 6.7.
- Prioritize patching affected Linux kernels to the latest available stable release.
- Deploy monitoring for unauthorized or anomalous modifications to /etc/passwd.
- Restrict the use of io_uring for non-privileged users if the workload allows, as it is a common vector for local privilege escalation.
Immediate actions
Patch Linux Kernel to a version >= 6.6.5 or 6.7 to address CVE-2024-0582
Threat Hunt
Monitor for unauthorized modifications to /etc/passwd
Data: Auditd /etc/passwd file integrity monitoring logs
Mitigations
Disable io_uring for unprivileged users via sysctl where applicable (kernel.unprivileged_userns_clone or similar if supported)
CVE-2024-0582