CVE-2024-0582: 
Linux Kernel vulnerability analysis and mitigation

Overview

A memory leak flaw was discovered in the Linux kernel's io_uring functionality, specifically in how a user registers a buffer ring with IORING_REGISTER_PBUF_RING, mmap() it, and then frees it. The vulnerability was introduced in Linux kernel version 6.4 and was fixed in version 6.6.5. The issue was discovered by Jann Horn from Google Project Zero in November 2023 (Project Zero, NVD).

Technical details

The vulnerability occurs because the io_uring subsystem uses remap_pfn_range() for mapping buffer rings into userspace, creating a VM_PFNMAP mapping where the MM subsystem treats the mapping as opaque page frame numbers not associated with any corresponding pages. When a buffer ring is unregistered using IORING_UNREGISTER_PBUF_RING, the kernel frees the memory and returns it to the page allocator without checking if the userspace mapping has been removed. This leaves the application with a valid memory mapping to freed pages that can be reallocated by the kernel for other purposes. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 HIGH (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) (NVD).

Impact

This vulnerability allows a local user to crash the system or potentially escalate their privileges. The flaw enables an attacker to read and write to freed pages that have been returned to the page allocator, which can be reallocated by the kernel for other purposes, leading to a use-after-free condition (Ubuntu Security, NVD).

Exploitability

The vulnerability has been demonstrated to be exploitable in Ubuntu systems running kernel versions 6.5.0-15-generic and 6.5.0-17-generic. The exploit technique involves triggering the vulnerability to gain access to freed pages, spraying file structures to force allocation in the controlled memory region, and then manipulating these structures to gain write access to protected files (OSS Security).

Mitigation and workarounds

The vulnerability was fixed in Linux kernel version 6.6.5 through commit c392cbecd8eca4c53f2bf508731257d9d0a21c2d. The fix involves deferring the release of mapped buffer rings until the io_uring context is freed, ensuring that no userspace mapping can exist when the memory is freed. Systems should be updated to a kernel version containing this fix (Kernel Commit).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

bullseye

linux

Fixed

sid

linux: 6.6.8-1

Fixed

trixie

linux: 6.6.8-1

Fixed

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-100075CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.17
NoYesSep 25, 2026
CVE-2026-98164MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-7.0
NoYesSep 29, 2026
CVE-2026-98161MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoYesSep 25, 2026
CVE-2026-100074MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • linux-riscv-7.0
NoYesSep 25, 2026
CVE-2026-100073NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-raspi-5.4
NoYesSep 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management