StraitOfVuln
Latest / CVE-2026-139782

CVE-2026-139782

Not yet scoredReceived
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-139782
Published / updated
30 Nov 2026, 14:20 UTC · last modified 02 Dec 2026, 10:17 UTC
Severity
Not yet scored by NVD
CVSS score
—
Affected vendor
Linux
Affected products
Linux
Affected versions
Linux: 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before 02a58681b48caf417edfdc100d1e7e28c0e66b97, 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before 2aea3d551ef6b7f1354aab0ccba5d6a189e87e10, 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before 40c86b6d61895bbbd83c774e362e0d2b6b584728, 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before e4a9298361c79fe7c809d61c9a546ddd0cdba566, 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before e4ce30e393f264def20791662865d092cd616776, 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before 6b5f7c695dbbba72b9a5991c084f09454b63bcb8, 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before 0d903b068e85848347f8641c0e51c45636ee4f60, 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to before 3de5aa458dede472a253266d02902bd95af8e849
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Linux 02a58681b48caf417edfdc100d1e7e28c0e66b97, Linux 2aea3d551ef6b7f1354aab0ccba5d6a189e87e10, Linux 40c86b6d61895bbbd83c774e362e0d2b6b584728, Linux e4a9298361c79fe7c809d61c9a546ddd0cdba566, Linux e4ce30e393f264def20791662865d092cd616776, Linux 6b5f7c695dbbba72b9a5991c084f09454b63bcb8, Linux 0d903b068e85848347f8641c0e51c45636ee4f60, Linux 3de5aa458dede472a253266d02902bd95af8e849
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.34% probability of exploitation in the next 30 days · 30% percentile (03 Dec 2026)
Weakness
—
Remediation
See the vendor advisory below.
Source (CNA)
416baaa9-dc9f-4396-8d5f-8c081fb06d67