PT-2026-163823

CVE-2026-139782

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾