# CVE-2025-68332: comedi: c6xdigio: Fix invalid PNP driver unregistration

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-22T16:14:10.146Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 407b25bb9284d69c27309e691ab1e02f9e1c46ac; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< f7fa1f4670c3c358a451546f0b80b9231952912d; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< e8110402b0c24d822b0b933d87d50870d59667ef; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 72b3627b0d3b819de49b29c2c8cb1c64d54536b9; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 9fd8c8ad35c8d2390ce5ca2eb523c044bebdc072; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 698149d797d0178162f394c55d4ed52aa0e0b7f6; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 888f7e2847bcb9df8257e656e1e837828942c53b; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 72262330f7b3ad2130e800cecf02adcce3c32c77
- Anyone running Linux 2.6.30

## Description

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

comedi: c6xdigio: Fix invalid PNP driver unregistration

The Comedi low-level driver "c6xdigio" seems to be for a parallel port
connected device.  When the Comedi core calls the driver's Comedi
"attach" handler \`c6xdigio\_attach()\` to configure a Comedi to use this
driver, it tries to enable the parallel port PNP resources by
registering a PNP driver with \`pnp\_register\_driver()\`, but ignores the
return value.  (The \`struct pnp\_driver\` it uses has only the \`name\` and
\`id\_table\` members filled in.)  The driver's Comedi "detach" handler
\`c6xdigio\_detach()\` unconditionally unregisters the PNP driver with
\`pnp\_unregister\_driver()\`.

It is possible for \`c6xdigio\_attach()\` to return an error before it
calls \`pnp\_register\_driver()\` and it is possible for the call to
\`pnp\_register\_driver()\` to return an error (that is ignored).  In both
cases, the driver should not be calling \`pnp\_unregister\_driver()\` as it
does in \`c6xdigio\_detach()\`.  (Note that \`c6xdigio\_detach()\` will be
called by the Comedi core if \`c6xdigio\_attach()\` returns an error, or if
the Comedi core decides to detach the Comedi device from the driver for
some other reason.)

The unconditional call to \`pnp\_unregister\_driver()\` without a previous
successful call to \`pnp\_register\_driver()\` will cause
\`driver\_unregister()\` to issue a warning "Unexpected driver
unregister!".  This was detected by Syzbot \[1\].

Also, the PNP driver registration and unregistration should be done at
module init and exit time, respectively, not when attaching or detaching
Comedi devices to the driver.  (There might be more than one Comedi
device being attached to the driver, although that is unlikely.)

Change the driver to do the PNP driver registration at module init time,
and the unregistration at module exit time.  Since \`c6xdigio\_detach()\`
now only calls \`comedi\_legacy\_detach()\`, remove the function and change
the Comedi driver "detach" handler to \`comedi\_legacy\_detach\`.

-------------------------------------------
\[1\] Syzbot sample crash report:
Unexpected driver unregister!
WARNING: CPU: 0 PID: 5970 at drivers/base/driver.c:273 driver\_unregister drivers/base/driver.c:273 \[inline\]
WARNING: CPU: 0 PID: 5970 at drivers/base/driver.c:273 driver\_unregister+0x90/0xb0 drivers/base/driver.c:270
Modules linked in:
CPU: 0 UID: 0 PID: 5970 Comm: syz.0.17 Not tainted syzkaller \#0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:driver\_unregister drivers/base/driver.c:273 \[inline\]
RIP: 0010:driver\_unregister+0x90/0xb0 drivers/base/driver.c:270
Code: 48 89 ef e8 c2 e6 82 fc 48 89 df e8 3a 93 ff ff 5b 5d e9 c3 6d d9 fb e8 be 6d d9 fb 90 48 c7 c7 e0 f8 1f 8c e8 51 a2 97 fb 90 \<0f\> 0b 90 90 5b 5d e9 a5 6d d9 fb e8 e0 f4 41 fc eb 94 e8 d9 f4 41
RSP: 0018:ffffc9000373f9a0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffffff8ff24720 RCX: ffffffff817b6ee8
RDX: ffff88807c932480 RSI: ffffffff817b6ef5 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffffffff8ff24660
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88814cca0000
FS:  000055556dab1500(0000) GS:ffff8881249d9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f77f285cd0 CR3: 000000007d871000 CR4: 00000000003526f0
Call Trace:
 \<TASK\>
 comedi\_device\_detach\_locked+0x12f/0xa50 drivers/comedi/drivers.c:207
 comedi\_device\_detach+0x67/0xb0 drivers/comedi/drivers.c:215
 comedi\_device\_attach+0x43d/0x900 drivers/comedi/drivers.c:1011
 do\_devconfig\_ioctl+0x1b1/0x710 drivers/comedi/comedi\_fops.c:872
 comedi\_unlocked\_ioctl+0x165d/0x2f00 drivers/comedi/comedi\_fops.c:2178
 vfs\_ioctl fs/ioctl.c:51 \[inline\]
 \_\_do\_sys\_ioctl fs/ioctl.c:597 \[inline\]
 \_\_se\_sys\_ioctl fs/ioctl.c:583 \[inline\]
 \_\_x64\_sys\_ioctl+0x18e/0x210 fs/ioctl.c:583
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_sys
---truncated---

## Affected and fixed versions

- Linux: \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 407b25bb9284d69c27309e691ab1e02f9e1c46ac; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< f7fa1f4670c3c358a451546f0b80b9231952912d; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< e8110402b0c24d822b0b933d87d50870d59667ef; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 72b3627b0d3b819de49b29c2c8cb1c64d54536b9; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 9fd8c8ad35c8d2390ce5ca2eb523c044bebdc072; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 698149d797d0178162f394c55d4ed52aa0e0b7f6; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 888f7e2847bcb9df8257e656e1e837828942c53b; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 72262330f7b3ad2130e800cecf02adcce3c32c77 (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- Upgrade Linux to 72262330f7b3ad2130e800cecf02adcce3c32c77 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68332.md
Affected: Linux >= 2c89e159cd2f386285e9522d6476dd7e801bee22, < 407b25bb9284d69c27309e691ab1e02f9e1c46ac; >= 2c89e159cd2f386285e9522d6476dd7e801bee22, < f7fa1f4670c3c358a451546f0b80b9231952912d; >= 2c89e159cd2f386285e9522d6476dd7e801bee22, < e8110402b0c24d822b0b933d87d50870d59667ef; >= 2c89e159cd2f386285e9522…
Fixed in: Linux 407b25bb9284d69c27309e691ab1e02f9e1c46ac, Linux 72b3627b0d3b819de49b29c2c8cb1c64d54536b9, Linux 9fd8c8ad35c8d2390ce5ca2eb523c044bebdc072, Linux 698149d797d0178162f394c55d4ed52aa0e0b7f6, Linux 888f7e2847bcb9df8257e656e1e837828942c53b, Linux 72262330f7b3ad2130e800cecf02adcce3c32c77

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-2025-68332 being exploited?

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

### How serious is CVE-2025-68332?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68332?

Linux \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 407b25bb9284d69c27309e691ab1e02f9e1c46ac; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< f7fa1f4670c3c358a451546f0b80b9231952912d; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< e8110402b0c24d822b0b933d87d50870d59667ef; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 72b3627b0d3b819de49b29c2c8cb1c64d54536b9; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 9fd8c8ad35c8d2390ce5ca2eb523c044bebdc072; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 698149d797d0178162f394c55d4ed52aa0e0b7f6; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 888f7e2847bcb9df8257e656e1e837828942c53b; \>= 2c89e159cd2f386285e9522d6476dd7e801bee22, \< 72262330f7b3ad2130e800cecf02adcce3c32c77; Linux 2.6.30.

### Is there a fix for CVE-2025-68332?

Yes. Fixed in Linux 407b25bb9284d69c27309e691ab1e02f9e1c46ac, Linux 72b3627b0d3b819de49b29c2c8cb1c64d54536b9, Linux 9fd8c8ad35c8d2390ce5ca2eb523c044bebdc072, Linux 698149d797d0178162f394c55d4ed52aa0e0b7f6, Linux 888f7e2847bcb9df8257e656e1e837828942c53b, Linux 72262330f7b3ad2130e800cecf02adcce3c32c77. Upgrade Linux to 72262330f7b3ad2130e800cecf02adcce3c32c77 or later.

### How do I check if I'm affected by CVE-2025-68332?

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

- other: <https://git.kernel.org/stable/c/407b25bb9284d69c27309e691ab1e02f9e1c46ac>
- other: <https://git.kernel.org/stable/c/f7fa1f4670c3c358a451546f0b80b9231952912d>
- other: <https://git.kernel.org/stable/c/e8110402b0c24d822b0b933d87d50870d59667ef>
- other: <https://git.kernel.org/stable/c/72b3627b0d3b819de49b29c2c8cb1c64d54536b9>
- other: <https://git.kernel.org/stable/c/9fd8c8ad35c8d2390ce5ca2eb523c044bebdc072>
- other: <https://git.kernel.org/stable/c/698149d797d0178162f394c55d4ed52aa0e0b7f6>
- other: <https://git.kernel.org/stable/c/888f7e2847bcb9df8257e656e1e837828942c53b>
- other: <https://git.kernel.org/stable/c/72262330f7b3ad2130e800cecf02adcce3c32c77>

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

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