CVE-2026-139782
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.
Affected versions
Linux kernel versions
3.11
and later are 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
and their respective stable series.
References
8 totalFrequently asked questions
-
What is CVE-2026-139782?
CVE-2026-139782 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 3.11 onward and has been patched in 5.10.275, 5.15.226, 6.1.193 and others. CVE-2026-139782 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2026-139782?
Yes. CVE-2026-139782 has been patched. Fixed versions include 5.10.275, 5.15.226, 6.1.193 and others. If you are running Linux kernel 3.11 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-139782 actively exploited?
No. CVE-2026-139782 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.