CVE-2026-13595: libblkid Heap Use-After-Free in Partition Probing (util-linux)
A memory safety bug in libblkid—a core Linux utility library responsible for identifying and reading partition tables—allows an attacker to trigger a use-after-free condition by inserting a specially crafted block device. When libblkid probes nested partitions (partitions within partitions), it caches a memory address pointing to partition information. If the system then discovers additional partitions and reallocates internal memory structures, that cached address becomes invalid. Subsequent reads from that stale pointer can leak sensitive information from kernel memory or crash the system. The risk is amplified because libblkid runs automatically with root privileges during USB insertion or when users mount disk images—no manual intervention required.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.8 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- Weaknesses (CWE)
- CWE-416
- Affected products
- 7 configuration(s)
- Published / Modified
- 2026-06-29 / 2026-07-08
NVD description (verbatim)
A flaw was found in the libblkid library of util-linux. During nested partition probing, the BSD, Minix, Solaris x86, and UnixWare partition probers cache a raw pointer to a parent partition entry in a dynamically allocated array. When subsequent partition additions cause the array to be reallocated, this pointer becomes stale, leading to a heap use-after-free read. An attacker who can present a crafted block device image (for example, via USB insertion or a loop-mounted disk image) can trigger this flaw without user interaction, as libblkid is invoked automatically by udev/udisks as root on block-device hot-plug events. This could lead to limited information disclosure or denial of service.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-13595 is a heap use-after-free vulnerability (CWE-416) in util-linux's libblkid partition-probing subsystem. The flaw exists in partition type handlers for BSD, Minix, Solaris x86, and UnixWare partition schemes. During nested partition discovery, a pointer to a parent partition entry is stored in a dynamically allocated array. When subsequent partition probing operations trigger array reallocation (due to capacity constraints), the stored pointer is not updated, remaining a stale reference to freed memory. Subsequent partition table parsing logic may dereference this invalid pointer, resulting in an out-of-bounds read from the heap. The vulnerability has a CVSS v3.1 score of 6.8 (Medium severity) with a vector reflecting local attack surface, no user interaction, and combined impact of limited confidentiality loss and high availability risk.
Business impact
Organizations relying on automatic block device mounting—common in containerized environments (OpenShift), storage management platforms, and multi-tenant systems—face operational risk. An attacker with physical access to a system (or network-accessible hot-plug capability in cloud scenarios) can craft a malicious disk image that, when inserted or mounted, triggers libblkid to leak kernel memory or crash the mounting daemon. This can disrupt workload scheduling, compromise secrets resident in kernel memory, or trigger denial-of-service cascades in orchestrated environments. For Red Hat Enterprise Linux deployments, this affects all versions shipped with vulnerable util-linux, potentially impacting critical infrastructure and compliance-sensitive workloads.
Affected systems
The vulnerability affects libblkid in util-linux across all Red Hat Enterprise Linux versions and Red Hat OpenShift Container Platform installations. It also impacts hardened container images distributed by Red Hat that include the vulnerable util-linux package. Any Linux system using libblkid for partition detection—including desktop environments with removable media support—is susceptible if the util-linux version is not patched. Systems relying on udev and udisks for automatic device management are at highest practical risk.
Exploitability
Exploitation is straightforward in access scenarios. An attacker needs only to create a malformed block device image (USB stick, disk image file, network-attached storage snapshot) and present it to a vulnerable system. No user interaction is required because udev and udisks automatically trigger libblkid parsing on hot-plug events with root privileges. The attack works offline (craft the image beforehand) or online (if network storage is involved). The low complexity and lack of authentication requirements classify this as a local-privilege or local-attacker vulnerability, though the automatic triggering path significantly lowers the barrier for opportunistic exploitation.
Remediation
Organizations should prioritize patching util-linux to a version that corrects the heap use-after-free flaw in partition probing logic. Red Hat will provide fixed packages through standard errata channels. For interim risk reduction, administrators can disable automatic block device mounting for untrusted media, restrict physical USB access, or enforce mandatory user approval for removable media—though these are detective or preventive measures rather than fixes. In containerized environments, ensure base images and node operating systems are updated synchronously to reduce the window of exposure.
Patch guidance
Contact your Red Hat support channel or monitor Red Hat's security advisories for util-linux patches addressing CVE-2026-13595. Patches will be made available for all affected Enterprise Linux versions. Test patches in non-production environments, particularly for container orchestration nodes, to verify that udev/udisks behavior and block device handling remain stable. Coordinate patching with your change management process, as util-linux updates may affect system boot, storage attachment, or device naming conventions in edge cases.
Detection guidance
Monitor system logs and udev/udisks activity for unexpected crashes or kernel memory-access violations (kernel OOps, segmentation faults) triggered during block device insertion. Intrusion detection signatures can be created to flag attempts to mount malformed or suspicious disk images in environments where hot-plug should not occur. On systems where automatic mounting is disabled, monitor for exploitation attempts via manual mount commands with crafted device images. Heap memory sanitizers (ASAN) or kernel debugging features (kasan) can detect the use-after-free at runtime in development and test environments.
Why prioritize this
Although the CVSS score is Medium (6.8), the automatic exploitation path—root privilege execution without user interaction—elevates practical risk in operational environments. OpenShift and container platforms that expose node storage to untrusted workloads or environments with physical security gaps should treat this with high priority. The combined impact of information disclosure (kernel memory leaks) and denial of service, coupled with the automatic trigger mechanism, justifies expedited patching for systems handling sensitive data or critical services. Non-containerized systems with restricted USB access and no automatic mounting can defer patching slightly longer but should not neglect it.
Risk score, explained
The CVSS 6.8 reflects: local attack vector (AV:L, physical device insertion), low complexity (AC:L, no special setup needed), no privileges required (PR:N, udev runs as root), no user interaction (UI:N, automatic triggering), unchanged scope (S:U), low confidentiality impact (C:L, limited memory disclosure), no integrity impact (I:N), and high availability impact (A:H, process crash or system instability). The score appropriately weights the automatic root-level triggering and availability risk, though it may understate risk in high-security, multi-tenant, or air-gapped environments where kernel memory disclosure is particularly sensitive.
Frequently asked questions
Can this vulnerability be exploited remotely?
No. The vulnerability requires local access to insert or mount a block device—either physical (USB stick, external drive) or logical (loop-mounted image file). However, in cloud or containerized environments, a malicious container or network-attached storage can present a crafted disk image, effectively lowering the barrier to remote exploitation in those specific scenarios.
Does the vulnerability require administrator or user action?
No. Because udev and udisks automatically invoke libblkid on block device hot-plug with root privileges, an attacker can trigger the flaw by simply connecting a crafted device. No user needs to manually mount it or approve any action.
What data can an attacker extract via the information disclosure aspect?
The vulnerability causes a heap use-after-free read, which can leak contents of kernel memory in the libblkid process space. This may include fragments of partition tables, cached file system metadata, or sensitive data previously processed by the system. The scope is limited by what happens to reside in heap memory at the time of exploitation, but secrets or credentials in kernel memory could theoretically be exposed.
Are containerized deployments at higher risk?
Yes, particularly OpenShift and Kubernetes clusters where container runtimes have access to node storage or where device hotplug is enabled. Additionally, container base images derived from vulnerable Red Hat Enterprise Linux versions propagate the risk across all derived containers. Patching base images and node operating systems should be coordinated to close this gap.
This analysis is based on published CVE data and Red Hat security advisories as of the vulnerability disclosure date. Specific patch version numbers, availability timelines, and detailed mitigation steps should be verified against official Red Hat errata and security bulletins. No exploit code or weaponized proof-of-concept is provided. Organizations should validate patches in their specific environments and consult their vendor's official guidance before applying updates to production systems. This intelligence is provided for informational purposes to support security decision-making and should be integrated with your organization's risk assessment and change management processes. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-11791MEDIUM389 Directory Server Schema Reload Use-After-Free DoS
- CVE-2026-50263MEDIUMX.Org Use-After-Free Information Disclosure Vulnerability
- CVE-2026-50257HIGHUse-After-Free in X.Org X Server & Xwayland Privilege Escalation
- CVE-2026-50260HIGHUse-After-Free in X.Org X Server and Xwayland
- CVE-2026-50261HIGHX.Org Use-After-Free in SyncChangeCounter—Local Privilege Escalation Risk
- CVE-2026-53009HIGHLinux ice Driver Double-Free Vulnerability – Local Privilege Escalation
- CVE-2025-55644MEDIUMHeap Use-After-Free in GPAC MP4Box v2.4 DoS Vulnerability
- CVE-2025-55650MEDIUMHeap Use-After-Free in GPAC MP4Box v2.4 DoS Vulnerability