# CVE-2025-68257: comedi: check device's attached status in compat ioctls

CVE-2025-68257 is fixed in 20 products on 1 platform, first by DEBIAN-CVE-2025-68257, released December 16, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-68257
- Priority: Routine
- CVSS: 5.5 (Moderate)
- EPSS: 0.0020
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 16, 2025
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-68257

## Description

In the Linux kernel, the following vulnerability has been resolved:  comedi: check device's attached status in compat ioctls  Syzbot identified an issue [1] that crashes kernel, seemingly due to unexistent callback dev->get_valid_routes(). By all means, this should not occur as said callback must always be set to get_zero_valid_routes() in __comedi_device_postconfig().  As the crash seems to appear exclusively in i386 kernels, at least, judging from [1] reports, the blame lies with compat versions of standard IOCTL handlers. Several of them are modified and do not use comedi_unlocked_ioctl(). While functionality of these ioctls essentially copy their original versions, they do not have required sanity check for device's attached status. This, in turn, leads to a possibility of calling select IOCTLs on a device that has not been properly setup, even via COMEDI_DEVCONFIG.  Doing so on unconfigured devices means that several crucial steps are missed, for instance, specifying dev->get_valid_routes() callback.  Fix this somewhat crudely by ensuring device's attached status before performing any ioctls, improving logic consistency between modern and compat functions.  [1] Syzbot report: BUG: kernel NULL pointer dereference, address: 0000000000000000 ... CR2: ffffffffffffffd6 CR3: 000000006c717000 CR4: 0000000000352ef0 Call Trace:  <TASK>  get_valid_routes drivers/comedi/comedi_fops.c:1322 [inline]  parse_insn+0x78c/0x1970 drivers/comedi/comedi_fops.c:1401  do_insnlist_ioctl+0x272/0x700 drivers/comedi/comedi_fops.c:1594  compat_insnlist drivers/comedi/comedi_fops.c:3208 [inline]  comedi_compat_ioctl+0x810/0x990 drivers/comedi/comedi_fops.c:3273  __do_compat_sys_ioctl fs/ioctl.c:695 [inline]  __se_compat_sys_ioctl fs/ioctl.c:638 [inline]  __ia32_compat_sys_ioctl+0x242/0x370 fs/ioctl.c:638  do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] ...

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | dtb-aarch64 opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | dtb-aarch64 opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-64kb opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-64kb opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-64kb sles 15.7 | 6.4.0-150700.53.28.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-64kb sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-azure opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-azure sles 15.7 | 6.4.0-150700.20.24.1 | [SUSE-SU-2026:0281-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0281-1.md) | Jan 23, 2026 |
| Linux | kernel-azure sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-debug opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-default opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-default opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-default sles 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-default sles 15.7 | 6.4.0-150700.53.28.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-default sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-default-base opensuse-leap 15.6 | 6.4.0-150600.23.84.1.150600.12.38.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-default-base opensuse-leap 16.0 | 6.12.0-160000.9.1.160000.2.6 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-default-base sles 15.6 | 6.4.0-150600.23.84.1.150600.12.38.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-default-base sles 15.7 | 6.4.0-150700.53.28.1.150700.17.19.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-default-base sles 16.0 | 6.12.0-160000.9.1.160000.2.6 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-docs opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-docs opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-docs sles 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-docs sles 15.7 | 6.4.0-150700.53.28.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-docs sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-kvmsmall opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-kvmsmall opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-kvmsmall sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-livepatch-SLE15-SP6_Update_19 sles 15.6 | 1-150600.13.3.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-livepatch-SLE15-SP7-RT_Update_8 sles 15.7 | 1-150700.1.3.1 | [SUSE-SU-2026:0278-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0278-1.md) | Jan 23, 2026 |
| Linux | kernel-livepatch-SLE15-SP7_Update_8 sles 15.7 | 1-150700.15.3.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-obs-build opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-obs-build opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-obs-build sles 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-obs-build sles 15.7 | 6.4.0-150700.53.28.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-obs-qa opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-obs-qa opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-obs-qa sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-rt opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-source opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-source opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-source sles 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-source sles 15.7 | 6.4.0-150700.53.28.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-source sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-source-azure sles 15.7 | 6.4.0-150700.20.24.1 | [SUSE-SU-2026:0281-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0281-1.md) | Jan 23, 2026 |
| Linux | kernel-syms opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-syms opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-syms sles 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-syms sles 15.7 | 6.4.0-150700.53.28.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-syms sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | kernel-syms-azure sles 15.7 | 6.4.0-150700.20.24.1 | [SUSE-SU-2026:0281-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0281-1.md) | Jan 23, 2026 |
| Linux | kernel-zfcpdump opensuse-leap 15.6 | 6.4.0-150600.23.84.1 | [SUSE-SU-2026:0293-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0293-1.md) | Jan 26, 2026 |
| Linux | kernel-zfcpdump opensuse-leap 16.0 | 6.12.0-160000.9.1 | [OPENSUSE-SU-2026:20145-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20145-1.md) | Feb 2, 2026 |
| Linux | kernel-zfcpdump sles 15.7 | 6.4.0-150700.53.28.1 | [SUSE-SU-2026:0315-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0315-1.md) | Jan 28, 2026 |
| Linux | kernel-zfcpdump sles 16.0 | 6.12.0-160000.9.1 | [SUSE-SU-2026:20220-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-20220-1.md) | Feb 2, 2026 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.162-1 | [DEBIAN-CVE-2025-68257](https://patchblox.com/security/data/fix/linux/debian-cve-2025-68257.md) | Dec 16, 2025 |
| Linux | linux Debian 13.5 (trixie) | 6.12.63-1 | [DEBIAN-CVE-2025-68257](https://patchblox.com/security/data/fix/linux/debian-cve-2025-68257.md) | Dec 16, 2025 |
| Linux | linux Debian 14 | 6.17.12-1 | [DEBIAN-CVE-2025-68257](https://patchblox.com/security/data/fix/linux/debian-cve-2025-68257.md) | Dec 16, 2025 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
