Bug 2587081 (CVE-2026-139782) - CVE-2026-139782 kernel: kernel: Denial of service via out-of-bounds write in comedi addi_apci_3xxx driver
Summary: CVE-2026-139782 kernel: kernel: Denial of service via out-of-bounds write in ...
Keywords:
Status: NEW
Alias: CVE-2026-139782
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 14:58 UTC by OSIDB Bzimport
Modified: 2026-12-01 10:06 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 14:58:29 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.