CVE-2026-139782: Linux kernel · comedi: addi_apci_3xxx: fix subdevice count underallocation
Source GCVE Database
Not known to be exploited · fixed in e4ce30e393f264def20791662865d092cd616776 : update Linux kernel when convenient.
Data as of 30 Nov 2026, 17:16 UTC
Rated by Threat Radar · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in e4ce30e393f264def20791662865d092cd616776, e4a9298361c79fe7c809d61c9a546ddd0cdba566, 40c86b6d61895bbbd83c774e362e0d2b6b584728 +12
Exploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
Description
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-139782 (opens in a new tab)
- git.kernel.org/stable/c/02a58681b48caf417edfdc100d1e7e28c0e66b97 (opens in a new tab)
- git.kernel.org/stable/c/0d903b068e85848347f8641c0e51c45636ee4f60 (opens in a new tab)
- git.kernel.org/stable/c/2aea3d551ef6b7f1354aab0ccba5d6a189e87e10 (opens in a new tab)
- git.kernel.org/stable/c/3de5aa458dede472a253266d02902bd95af8e849 (opens in a new tab)
- git.kernel.org/stable/c/40c86b6d61895bbbd83c774e362e0d2b6b584728 (opens in a new tab)
- git.kernel.org/stable/c/6b5f7c695dbbba72b9a5991c084f09454b63bcb8 (opens in a new tab)
- git.kernel.org/stable/c/e4a9298361c79fe7c809d61c9a546ddd0cdba566 (opens in a new tab)
- git.kernel.org/stable/c/e4ce30e393f264def20791662865d092cd616776 (opens in a new tab)