# CVE-2026-46294: dm: fix a buffer overflow in ioctl processing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-06-08T15:46:21.401Z
- **Modified:** 2026-11-06T17:17:54.643Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8c5311237448f6ffeecc9aec2362e3692623668; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 448ee8fb79c26a26599ffa4b2adeb4322d3d3d8c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 526ff9126a0ae087b65726e1faf31114c718020d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f0b0b09d9840838ae77ccdd6a62de0daef4e6e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d271631023cbe1cbe7c31a0275ab797883be6e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5af6a879e915ae7bcd83695c316ebb32e1c61bc2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8daa6c708ef524089ae43f2aed9190acb26d7df8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2fa49cc884f6496a915c35621ba4da35649bf159
- Anyone running Linux 2.6.12

## 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

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8c5311237448f6ffeecc9aec2362e3692623668; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 448ee8fb79c26a26599ffa4b2adeb4322d3d3d8c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 526ff9126a0ae087b65726e1faf31114c718020d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f0b0b09d9840838ae77ccdd6a62de0daef4e6e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d271631023cbe1cbe7c31a0275ab797883be6e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5af6a879e915ae7bcd83695c316ebb32e1c61bc2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8daa6c708ef524089ae43f2aed9190acb26d7df8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2fa49cc884f6496a915c35621ba4da35649bf159 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 2fa49cc884f6496a915c35621ba4da35649bf159 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46294. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46294.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c8c5311237448f6ffeecc9aec2362e3692623668; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 448ee8fb79c26a26599ffa4b2adeb4322d3d3d8c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 526ff9126a0ae087b65726e1faf31114c718020d; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 448ee8fb79c26a26599ffa4b2adeb4322d3d3d8c, Linux 526ff9126a0ae087b65726e1faf31114c718020d, Linux 5af6a879e915ae7bcd83695c316ebb32e1c61bc2, Linux 8daa6c708ef524089ae43f2aed9190acb26d7df8, Linux 2fa49cc884f6496a915c35621ba4da35649bf159

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46294 being exploited?

There is no confirmed exploitation: CVE-2026-46294 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46294?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-46294?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8c5311237448f6ffeecc9aec2362e3692623668; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 448ee8fb79c26a26599ffa4b2adeb4322d3d3d8c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 526ff9126a0ae087b65726e1faf31114c718020d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f0b0b09d9840838ae77ccdd6a62de0daef4e6e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d271631023cbe1cbe7c31a0275ab797883be6e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5af6a879e915ae7bcd83695c316ebb32e1c61bc2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8daa6c708ef524089ae43f2aed9190acb26d7df8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2fa49cc884f6496a915c35621ba4da35649bf159; Linux 2.6.12.

### Is there a fix for CVE-2026-46294?

Yes. Fixed in Linux 448ee8fb79c26a26599ffa4b2adeb4322d3d3d8c, Linux 526ff9126a0ae087b65726e1faf31114c718020d, Linux 5af6a879e915ae7bcd83695c316ebb32e1c61bc2, Linux 8daa6c708ef524089ae43f2aed9190acb26d7df8, Linux 2fa49cc884f6496a915c35621ba4da35649bf159. Upgrade Linux to 2fa49cc884f6496a915c35621ba4da35649bf159 or later.

### How do I check if I'm affected by CVE-2026-46294?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c8c5311237448f6ffeecc9aec2362e3692623668>
- patch: <https://git.kernel.org/stable/c/448ee8fb79c26a26599ffa4b2adeb4322d3d3d8c>
- patch: <https://git.kernel.org/stable/c/526ff9126a0ae087b65726e1faf31114c718020d>
- patch: <https://git.kernel.org/stable/c/f0b0b09d9840838ae77ccdd6a62de0daef4e6e0a>
- patch: <https://git.kernel.org/stable/c/d271631023cbe1cbe7c31a0275ab797883be6e0a>
- patch: <https://git.kernel.org/stable/c/5af6a879e915ae7bcd83695c316ebb32e1c61bc2>
- patch: <https://git.kernel.org/stable/c/8daa6c708ef524089ae43f2aed9190acb26d7df8>
- patch: <https://git.kernel.org/stable/c/2fa49cc884f6496a915c35621ba4da35649bf159>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46294>

HTML: <https://flawdb.com/CVE-2026-46294> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46294>
