Description
In the Linux kernel, the following vulnerability has been resolved:

dm: fix a buffer overflow in ioctl processing

Tony Asleson (using Claude) found a buffer overflow in dm-ioctl in the
function retrieve_status:

1. The code in retrieve_status checks that the output string fits into
the output buffer and writes the output string there
2. Then, the code aligns the "outptr" variable to the next 8-byte
boundary:
outptr = align_ptr(outptr);
3. The alignment doesn't check overflow, so outptr could point past the
buffer end
4. The "for" loop is iterated again, it executes:
remaining = len - (outptr - outbuf);
5. If "outptr" points past "outbuf + len", the arithmetics wraps around
and the variable "remaining" contains unusually high number
6. With "remaining" being high, the code writes more data past the end of
the buffer

Luckily, this bug has no security implications because:
1. Only root can issue device mapper ioctls
2. The commonly used libraries that communicate with device mapper
(libdevmapper and devicemapper-rs) use buffer size that is aligned to
8 bytes - thus, "outptr = align_ptr(outptr)" can't overshoot the input
buffer and the bug can't happen accidentally
Published: 2026-06-08
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a buffer overflow in the Linux kernel's device mapper ioctl handling routine retrieve_status. The code aligns a pointer without checking bounds, allowing the pointer to exceed the intended output buffer and write beyond it. While only root users can issue device mapper ioctls, the overflow could corrupt kernel memory or trigger a crash if the buffer alignment is violated. The vendor notes that the commonly used libraries provide 8‑byte aligned buffers, preventing incidental exploitation.

Affected Systems

The flaw exists in the kernel's device mapper subsystem and affects all Linux kernel installations that have not applied the latest upstream commit. Specific affected versions are not listed, so administrators should ensure the kernel is patched to the latest stable release available from their distribution or upstream.

Risk and Exploitability

The issue carries no documented exploitation and is restricted to privileged users; therefore the immediate risk is low. Because EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog, the likelihood of real‑world attacks is assumed minimal. Nonetheless, an attacker with root privileges who intentionally misuses unaligned buffers could exploit it to overwrite memory, but standard usage with aligned buffers mitigates this risk.

Generated by OpenCVE AI on June 8, 2026 at 18:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the upstream commit fixing the bug.
  • Verify that library implementations of device mapper, such as libdevmapper and devicemapper-rs, use 8‑byte aligned buffers and update them if necessary.
  • For custom tools that interact with the device mapper, inspect ioctl handling code to ensure proper buffer bounds checking and alignments are maintained.

Generated by OpenCVE AI on June 8, 2026 at 18:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 08 Jun 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120

Mon, 08 Jun 2026 17:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dm: fix a buffer overflow in ioctl processing Tony Asleson (using Claude) found a buffer overflow in dm-ioctl in the function retrieve_status: 1. The code in retrieve_status checks that the output string fits into the output buffer and writes the output string there 2. Then, the code aligns the "outptr" variable to the next 8-byte boundary: outptr = align_ptr(outptr); 3. The alignment doesn't check overflow, so outptr could point past the buffer end 4. The "for" loop is iterated again, it executes: remaining = len - (outptr - outbuf); 5. If "outptr" points past "outbuf + len", the arithmetics wraps around and the variable "remaining" contains unusually high number 6. With "remaining" being high, the code writes more data past the end of the buffer Luckily, this bug has no security implications because: 1. Only root can issue device mapper ioctls 2. The commonly used libraries that communicate with device mapper (libdevmapper and devicemapper-rs) use buffer size that is aligned to 8 bytes - thus, "outptr = align_ptr(outptr)" can't overshoot the input buffer and the bug can't happen accidentally
Title dm: fix a buffer overflow in ioctl processing
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-08T15:46:21.401Z

Reserved: 2026-05-13T15:03:33.110Z

Link: CVE-2026-46294

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-08T17:16:47.757

Modified: 2026-06-08T17:16:47.757

Link: CVE-2026-46294

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-08T20:00:15Z

Weaknesses