# CVE-2024-26867: comedi: comedi\_8255: Correct error in subdevice initialization

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-04-17T10:27:28.795Z
- **Modified:** 2026-06-17T07:18:32.990Z

## Who should check

- Anyone running Linux \>= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, \< 4a825457a45d8debc46ab8cba57d47462411710d; \>= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, \< cfa9ba1ae0bef0681833a22d326174fe633caab5
- Anyone running Linux 6.7

## Description

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

comedi: comedi\_8255: Correct error in subdevice initialization

The refactoring done in commit 5c57b1ccecc7 ("comedi: comedi\_8255: Rework
subdevice initialization functions") to the initialization of the io
field of struct subdev\_8255\_private broke all cards using the
drivers/comedi/drivers/comedi\_8255.c module.

Prior to 5c57b1ccecc7, \_\_subdev\_8255\_init() initialized the io field
in the newly allocated struct subdev\_8255\_private to the non-NULL
callback given to the function, otherwise it used a flag parameter to
select between subdev\_8255\_mmio and subdev\_8255\_io. The refactoring
removed that logic and the flag, as subdev\_8255\_mm\_init() and
subdev\_8255\_io\_init() now explicitly pass subdev\_8255\_mmio and
subdev\_8255\_io respectively to \_\_subdev\_8255\_init(), only
\_\_subdev\_8255\_init() never sets spriv-\>io to the supplied
callback. That spriv-\>io is NULL leads to a later BUG:

BUG: kernel NULL pointer dereference, address: 0000000000000000
PGD 0 P4D 0
Oops: 0010 \[\#1\] SMP PTI
CPU: 1 PID: 1210 Comm: systemd-udevd Not tainted 6.7.3-x86\_64 \#1
Hardware name: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffa3f1c02d7b78 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff91f847aefd00 RCX: 000000000000009b
RDX: 0000000000000003 RSI: 0000000000000001 RDI: ffff91f840f6fc00
RBP: ffff91f840f6fc00 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 000000000000005f R12: 0000000000000000
R13: 0000000000000000 R14: ffffffffc0102498 R15: ffff91f847ce6ba8
FS:  00007f72f4e8f500(0000) GS:ffff91f8d5c80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000010540e000 CR4: 00000000000406f0
Call Trace:
 \<TASK\>
 ? \_\_die\_body+0x15/0x57
 ? page\_fault\_oops+0x2ef/0x33c
 ? insert\_vmap\_area.constprop.0+0xb6/0xd5
 ? alloc\_vmap\_area+0x529/0x5ee
 ? exc\_page\_fault+0x15a/0x489
 ? asm\_exc\_page\_fault+0x22/0x30
 \_\_subdev\_8255\_init+0x79/0x8d \[comedi\_8255\]
 pci\_8255\_auto\_attach+0x11a/0x139 \[8255\_pci\]
 comedi\_auto\_config+0xac/0x117 \[comedi\]
 ? \_\_pfx\_\_\_driver\_attach+0x10/0x10
 pci\_device\_probe+0x88/0xf9
 really\_probe+0x101/0x248
 \_\_driver\_probe\_device+0xbb/0xed
 driver\_probe\_device+0x1a/0x72
 \_\_driver\_attach+0xd4/0xed
 bus\_for\_each\_dev+0x76/0xb8
 bus\_add\_driver+0xbe/0x1be
 driver\_register+0x9a/0xd8
 comedi\_pci\_driver\_register+0x28/0x48 \[comedi\_pci\]
 ? \_\_pfx\_pci\_8255\_driver\_init+0x10/0x10 \[8255\_pci\]
 do\_one\_initcall+0x72/0x183
 do\_init\_module+0x5b/0x1e8
 init\_module\_from\_file+0x86/0xac
 \_\_do\_sys\_finit\_module+0x151/0x218
 do\_syscall\_64+0x72/0xdb
 entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76
RIP: 0033:0x7f72f50a0cb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 47 71 0c 00 f7 d8 64 89 01 48
RSP: 002b:00007ffd47e512d8 EFLAGS: 00000246 ORIG\_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 0000562dd06ae070 RCX: 00007f72f50a0cb9
RDX: 0000000000000000 RSI: 00007f72f52d32df RDI: 000000000000000e
RBP: 0000000000000000 R08: 00007f72f5168b20 R09: 0000000000000000
R10: 0000000000000050 R11: 0000000000000246 R12: 00007f72f52d32df
R13: 0000000000020000 R14: 0000562dd06785c0 R15: 0000562dcfd0e9a8
 \</TASK\>
Modules linked in: 8255\_pci(+) comedi\_8255 comedi\_pci comedi intel\_gtt e100(+) acpi\_cpufreq rtc\_cmos usbhid
CR2: 0000000000000000
---\[ end trace 0000000000000000 \]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffa3f1c02d7b78 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff91f847aefd00 RCX: 000000000000009b
RDX: 0000000000000003 RSI: 0000000000000001 RDI: ffff91f840f6fc00
RBP: ffff91f840f6fc00 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 000000000000005f R12: 0000000000000000
R13: 0000000000000000 R14: ffffffffc0102498 R15: ffff91f847ce6ba8
FS: 
---truncated---

## Affected and fixed versions

- Linux: \>= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, \< 4a825457a45d8debc46ab8cba57d47462411710d; \>= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, \< cfa9ba1ae0bef0681833a22d326174fe633caab5 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26867.md
Affected: Linux >= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, < 4a825457a45d8debc46ab8cba57d47462411710d; >= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, < cfa9ba1ae0bef0681833a22d326174fe633caab5; Linux 6.7
Fixed in: Linux 4a825457a45d8debc46ab8cba57d47462411710d

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-2024-26867 being exploited?

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

### How serious is CVE-2024-26867?

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

### Which versions are affected by CVE-2024-26867?

Linux \>= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, \< 4a825457a45d8debc46ab8cba57d47462411710d; \>= 5c57b1ccecc72738d4b9be2dfcdfb9001be76bd7, \< cfa9ba1ae0bef0681833a22d326174fe633caab5; Linux 6.7.

### Is there a fix for CVE-2024-26867?

Yes. Fixed in Linux 4a825457a45d8debc46ab8cba57d47462411710d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26867?

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/4a825457a45d8debc46ab8cba57d47462411710d>
- patch: <https://git.kernel.org/stable/c/cfa9ba1ae0bef0681833a22d326174fe633caab5>

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

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