# CVE-2026-31751: comedi: dt2815: add hardware detection to prevent crash

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.11% (percentile 1, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2026-05-01T14:14:43.551Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Anyone running Linux \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 8d63161837f1bf8810dbcd2a583c2bbf5ca6d733; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< d2a786efdb9971f2a647724625da5bbecc994dc9; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< d5d9df8b08d68d083ac57abc2c887dfb1f31af63; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 65c528fbeddd88478c210052f6c7b21be4973156; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 34c8b3a91bdfbe4573650b4cd750ef639101fdc5; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 34b13250c618d7441508c6ef369144aa8a9b9bfa; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 93853512f565e625df2397f0d8050d6aafd7c3ad
- Anyone running Linux 2.6.30

## Description

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

comedi: dt2815: add hardware detection to prevent crash

The dt2815 driver crashes when attached to I/O ports without actual
hardware present. This occurs because syzkaller or users can attach
the driver to arbitrary I/O addresses via COMEDI\_DEVCONFIG ioctl.

When no hardware exists at the specified port, inb() operations return
0xff (floating bus), but outb() operations can trigger page faults due
to undefined behavior, especially under race conditions:

  BUG: unable to handle page fault for address: 000000007fffff90
  \#PF: supervisor write access in kernel mode
  \#PF: error\_code(0x0002) - not-present page
  RIP: 0010:dt2815\_attach+0x6e0/0x1110

Add hardware detection by reading the status register before attempting
any write operations. If the read returns 0xff, assume no hardware is
present and fail the attach with -ENODEV. This prevents crashes from
outb() operations on non-existent hardware.

## Affected and fixed versions

- Linux: \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 8d63161837f1bf8810dbcd2a583c2bbf5ca6d733; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< d2a786efdb9971f2a647724625da5bbecc994dc9; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< d5d9df8b08d68d083ac57abc2c887dfb1f31af63; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 65c528fbeddd88478c210052f6c7b21be4973156; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 34c8b3a91bdfbe4573650b4cd750ef639101fdc5; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 34b13250c618d7441508c6ef369144aa8a9b9bfa; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 93853512f565e625df2397f0d8050d6aafd7c3ad (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- Upgrade Linux to 93853512f565e625df2397f0d8050d6aafd7c3ad 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-31751. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31751.md
Affected: Linux >= d6a929b7608ae157cef86d00cc580d1038f0b985, < 8d63161837f1bf8810dbcd2a583c2bbf5ca6d733; >= d6a929b7608ae157cef86d00cc580d1038f0b985, < d2a786efdb9971f2a647724625da5bbecc994dc9; >= d6a929b7608ae157cef86d00cc580d1038f0b985, < 0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3; >= d6a929b7608ae157cef86d0…
Fixed in: Linux 8d63161837f1bf8810dbcd2a583c2bbf5ca6d733, Linux 0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3, Linux 65c528fbeddd88478c210052f6c7b21be4973156, Linux 34c8b3a91bdfbe4573650b4cd750ef639101fdc5, Linux 34b13250c618d7441508c6ef369144aa8a9b9bfa, Linux 93853512f565e625df2397f0d8050d6aafd7c3ad

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-31751 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 8d63161837f1bf8810dbcd2a583c2bbf5ca6d733; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< d2a786efdb9971f2a647724625da5bbecc994dc9; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< d5d9df8b08d68d083ac57abc2c887dfb1f31af63; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 65c528fbeddd88478c210052f6c7b21be4973156; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 34c8b3a91bdfbe4573650b4cd750ef639101fdc5; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 34b13250c618d7441508c6ef369144aa8a9b9bfa; \>= d6a929b7608ae157cef86d00cc580d1038f0b985, \< 93853512f565e625df2397f0d8050d6aafd7c3ad; Linux 2.6.30.

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

Yes. Fixed in Linux 8d63161837f1bf8810dbcd2a583c2bbf5ca6d733, Linux 0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3, Linux 65c528fbeddd88478c210052f6c7b21be4973156, Linux 34c8b3a91bdfbe4573650b4cd750ef639101fdc5, Linux 34b13250c618d7441508c6ef369144aa8a9b9bfa, Linux 93853512f565e625df2397f0d8050d6aafd7c3ad. Upgrade Linux to 93853512f565e625df2397f0d8050d6aafd7c3ad or later.

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

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/8d63161837f1bf8810dbcd2a583c2bbf5ca6d733>
- patch: <https://git.kernel.org/stable/c/d2a786efdb9971f2a647724625da5bbecc994dc9>
- patch: <https://git.kernel.org/stable/c/0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3>
- patch: <https://git.kernel.org/stable/c/d5d9df8b08d68d083ac57abc2c887dfb1f31af63>
- patch: <https://git.kernel.org/stable/c/65c528fbeddd88478c210052f6c7b21be4973156>
- patch: <https://git.kernel.org/stable/c/34c8b3a91bdfbe4573650b4cd750ef639101fdc5>
- patch: <https://git.kernel.org/stable/c/34b13250c618d7441508c6ef369144aa8a9b9bfa>
- patch: <https://git.kernel.org/stable/c/93853512f565e625df2397f0d8050d6aafd7c3ad>

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

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