Out-of-bounds write in Linux kernel comedi addi_apci_3xxx driver
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel comedi addi_apci_3xxx driver is affected in versions before 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 and 7.3.6. In apci3xxx_auto_attach(), an inverted ternary counts zero subdevices for a board with analog input channels, so comedi_alloc_subdevices() allocates one entry too few. A later subdevice initialization then writes past the end of the allocated array, causing a slab out-of-bounds write.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: comedi: addi_apci_3xxx: fix subdevice count underallocation In apci3xxx_auto_attach(), the number of subdevices is computed with n_subdevices = (board->ai_n_chan ? 0 : 1) + board->has_ao + ... The ternary is inverted: when the board has analog input channels (ai_n_chan != 0), it counts 0 instead of 1, so the AI subdevice that is actually created is not accounted for. As a result comedi_alloc_subdevices() allocates one entry too few, and the later subdevice initialization (notably the TTL Digital I/O subdevice, which is populated last) writes past the end of the allocated array, causing a slab out-of-bounds write. Flip the ternary to count 1 when ai_n_chan is non-zero and 0 otherwise, matching the subdevice creation order in the function.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | before 5.10.275; before 5.15.226; before 6.1.193; before 6.6.163; before 6.12.119; before 6.18.65; before 7.3.6 | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 | Patch available | CNA |
| Linux | Linux | — | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected before 5.10.275; before 5.15.226; before 6.1.193; before 6.6.163; before 6.12.119; before 6.18.65; before 7.3.6 Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 Patch available CNA
- Linux VendorLinux Affected — Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 Patch available CNA
Remediation
The Linux kernel fixed versions are 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139782
- 2026-11-30 Alias added: GHSA-52v3-jg84-9mjj
References
Other 8
- https://git.kernel.org/stable/c/02a58681b48caf417edfdc100d1e7e28c0e66b97
- https://git.kernel.org/stable/c/2aea3d551ef6b7f1354aab0ccba5d6a189e87e10
- https://git.kernel.org/stable/c/40c86b6d61895bbbd83c774e362e0d2b6b584728
- https://git.kernel.org/stable/c/e4a9298361c79fe7c809d61c9a546ddd0cdba566
- https://git.kernel.org/stable/c/e4ce30e393f264def20791662865d092cd616776
- https://git.kernel.org/stable/c/6b5f7c695dbbba72b9a5991c084f09454b63bcb8
- https://git.kernel.org/stable/c/0d903b068e85848347f8641c0e51c45636ee4f60
- https://git.kernel.org/stable/c/3de5aa458dede472a253266d02902bd95af8e849
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139782 · CVE Program
- CVE-2026-139782 · NVD
- GHSA-52v3-jg84-9mjj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences