CVE-2026-139782
publishedcomedi: addi_apci_3xxx: fix subdevice count underallocation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 02a58681b48caf417edfdc100d1e7e28c0e66b97 · 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 2aea3d551ef6b7f1354aab0ccba5d6a189e87e10 · 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 40c86b6d61895bbbd83c774e362e0d2b6b584728 · 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < e4a9298361c79fe7c809d61c9a546ddd0cdba566 · 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < e4ce30e393f264def20791662865d092cd616776 · 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 6b5f7c695dbbba72b9a5991c084f09454b63bcb8 · 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 0d903b068e85848347f8641c0e51c45636ee4f60 · 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 3de5aa458dede472a253266d02902bd95af8e849 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.11 (affected) · 0 to < 3.11 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 02a58681b48caf417edfdc100d1e7e28c0e66b97 (affected · git)656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 2aea3d551ef6b7f1354aab0ccba5d6a189e87e10 (affected · git)656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 40c86b6d61895bbbd83c774e362e0d2b6b584728 (affected · git)656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < e4a9298361c79fe7c809d61c9a546ddd0cdba566 (affected · git)656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < e4ce30e393f264def20791662865d092cd616776 (affected · git)656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 6b5f7c695dbbba72b9a5991c084f09454b63bcb8 (affected · git)656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 0d903b068e85848347f8641c0e51c45636ee4f60 (affected · git)656e39fedcf01b688a2aa1dca78c6c2a571264f1 to < 3de5aa458dede472a253266d02902bd95af8e849 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.11 (affected)0 to < 3.11 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/02a58681b48caf417edfdc100d1e7e28c0e66b97
- https://git.kernel.org/stable/c/0d903b068e85848347f8641c0e51c45636ee4f60
- https://git.kernel.org/stable/c/2aea3d551ef6b7f1354aab0ccba5d6a189e87e10
- https://git.kernel.org/stable/c/3de5aa458dede472a253266d02902bd95af8e849
- https://git.kernel.org/stable/c/40c86b6d61895bbbd83c774e362e0d2b6b584728
- https://git.kernel.org/stable/c/6b5f7c695dbbba72b9a5991c084f09454b63bcb8
- https://git.kernel.org/stable/c/e4a9298361c79fe7c809d61c9a546ddd0cdba566
- https://git.kernel.org/stable/c/e4ce30e393f264def20791662865d092cd616776
Provider assertions
1Linux · cna
comedi: addi_apci_3xxx: fix subdevice count underallocation
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b3b2120de66bde2e19efb6107e81fc332ea814ada4317ac44b73921a9cf2f257
- Ingested
- 02 Dec 2026, 09:26:24 UTC
- Source record
- Official CVE record