CVE-2026-31749
comedi: ni_atmio16d: Fix invalid clean-up after failed attach
Check your servers for CVE-2026-31749
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31749 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
comedi: ni_atmio16d: Fix invalid clean-up after failed attach
If the driver's COMEDI "attach" handler function (`atmio16d_attach()`) returns an error, the COMEDI core will call the driver's "detach" handler function (`atmio16d_detach()`) to clean up. This calls `reset_atmio16d()` unconditionally, but depending on where the error occurred in the attach handler, the device may not have been sufficiently initialized to call `reset_atmio16d()`. It uses `dev->iobase` as the I/O port base address and `dev->private` as the pointer to the COMEDI device's private data structure. `dev->iobase` may still be set to its initial value of 0, which would result in undesired writes to low I/O port addresses. `dev->private` may still be `NULL`, which would result in null pointer dereferences.
Fix `atmio16d_detach()` by checking that `dev->private` is valid (non-null) before calling `reset_atmio16d()`. This implies that `dev->iobase` was set correctly since that is set up before `dev->private`.
Exploitation
EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.59% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before a01dd339ea6ac58b0967a50085622a6017351140 affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before 933a2d6a95f9bfb203e562c9be1dd990c735535c affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before 5d8d88c8c0eec230de8f1f60e0920a4337939a88 affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before f517646e008fe99ca1800601cd011b110f8684ae affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before 3848ae00b1642e2c98ff8cbfd2d3b38c6f53b5c3 affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before 43c68a2c7cc35b7c2a83c285cb4ad3d472b8caa2 affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before d07d97ca4f7fac467cdcf4a012690853958b7e89 affected from 2323b276308a5da5774b778f39c7fd94b2a3022a, before 101ab946b79ad83b36d5cfd47de587492a80acf0
Other versions: unaffected
|
| Linux |
affected 2.6.30 unaffected before 2.6.30 unaffected from 5.10.253 up to and including 5.10.* unaffected from 5.15.203 up to and including 5.15.* unaffected from 6.1.168 up to and including 6.1.* unaffected from 6.6.134 up to and including 6.6.* unaffected from 6.12.81 up to and including 6.12.* unaffected from 6.18.22 up to and including 6.18.* unaffected from 6.19.12 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31749 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31749
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31749
trivy image --scanners vuln IMAGE | grep CVE-2026-31749
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a01dd339ea6ac58b0967a50085622a6017351140 git.kernel.org
- https://git.kernel.org/stable/c/933a2d6a95f9bfb203e562c9be1dd990c735535c git.kernel.org
- https://git.kernel.org/stable/c/5d8d88c8c0eec230de8f1f60e0920a4337939a88 git.kernel.org
- https://git.kernel.org/stable/c/f517646e008fe99ca1800601cd011b110f8684ae git.kernel.org
- https://git.kernel.org/stable/c/3848ae00b1642e2c98ff8cbfd2d3b38c6f53b5c3 git.kernel.org
- https://git.kernel.org/stable/c/43c68a2c7cc35b7c2a83c285cb4ad3d472b8caa2 git.kernel.org
- https://git.kernel.org/stable/c/d07d97ca4f7fac467cdcf4a012690853958b7e89 git.kernel.org
- https://git.kernel.org/stable/c/101ab946b79ad83b36d5cfd47de587492a80acf0 git.kernel.org
Source: the record CVE-2026-31749 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse