Findings

CVE-2026-31749

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" handl…

Published May 1, 2026 · updated Jun 17, 2026 · linux linux kernel

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 ( ) returns an error, the COMEDI core will call the driver's "detach" handler function ( ) to clean up. This calls unconditionally, but depending on where the error occurred in the attach handler, the device may not have been sufficiently initialized to call . It uses as the I/O port base address and as the pointer to the COMEDI device's private data structure. may still be set to its initial value of 0, which would result in undesired writes to low I/O port addresses. may still be , which would result in null pointer dereferences. Fix by checking that is valid (non-null) before calling . This implies that was set correctly since that is set up before .

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. May 1, 2026 · NIST NVD

    Detected

    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 ( ) returns an error, the COMEDI core will call the driver's "detach" handler function ( ) to clean up. This calls unconditionally, but depending on where the error occurred in the attach handler, the device may not have

  2. Jun 17, 2026 · NIST NVD

    Updated

    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 ( ) returns an error, the COMEDI core will call the driver's "detach" handler function ( ) to clean up. This calls unconditionally, but depending on where the error occurred in the attach handler, the device may not have

Affected

  • cpe linux/linux kernelversion unspecified
  • cpe linux/linux kernel7.0

Sources

  • CVE.orgVulnerability recordCVE-2026-31749

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-31749

    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 ( ) returns an error, the COMEDI core will call the driver's "detach" handler fun

    nvd.nist.gov

References