CVE-2026-139782

Not scored yetLast modified Dec 2, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 02a58681b48caf417edfdc100d1e7e28c0e66b97; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2aea3d551ef6b7f1354aab0ccba5d6a189e87e10; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 40c86b6d61895bbbd83c774e362e0d2b6b584728; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e4a9298361c79fe7c809d61c9a546ddd0cdba566; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e4ce30e393f264def20791662865d092cd616776; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6b5f7c695dbbba72b9a5991c084f09454b63bcb8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0d903b068e85848347f8641c0e51c45636ee4f60; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3de5aa458dede472a253266d02902bd95af8e849; < 5.10.275; < 5.15.226; < 6.1.193; < 6.6.163; < 6.12.119; < 6.18.65; < 7.3.6
LinuxLinux—

References

Timeline

Published
Nov 30, 2026
Last modified
Dec 2, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139783In the Linux kernel, the following vulnerability has been resolved: ovl: inherit FMODE_NONOTIFY when reading directory layers Listing a meCVE-2026-139784In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: q6apm: clear g_apm on driver removal The global g_apm poinCVE-2026-139785In the Linux kernel, the following vulnerability has been resolved: mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags vmCVE-2026-1397867.0In the Linux kernel, the following vulnerability has been resolved: mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows So fCVE-2026-139787In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl() nvme_tcp_free_ctrCVE-2026-1397887.0In the Linux kernel, the following vulnerability has been resolved: cipso: stop modifying live ip_options_rcu cipso_v4_delopt() operates oCVE-2026-139789In the Linux kernel, the following vulnerability has been resolved: hugetlbfs: enforce F_SEAL_EXEC in setattr F_SEAL_EXEC is enforced by sCVE-2026-139794.3Inappropriate implementation in Paint in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to perform UI spoofing via a craftedCVE-2026-139790In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jCVE-2026-139791In the Linux kernel, the following vulnerability has been resolved: net: Use a dedicated flag to track disabled napi instances Trying to dCVE-2026-1397927.0In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Prevent O_APPEND open on OSS streams ALSA PCM core accepts CVE-2026-139793In the Linux kernel, the following vulnerability has been resolved: inet: frags: bound the wmem charge of the socket completing a reassembl
CVE-2026-139782: Unscored | Vulnix