CVE-2026-31750
JSON

5.5medium

comedi: runflags cannot determine whether to reclaim chanlist

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: comedi: runflags cannot determine whether to reclaim chanlist syzbot reported a memory leak [1], because commit 4e1da516debb ("comedi: Add reference counting for Comedi command handling") did not consider the exceptional exit case in do_cmd_ioctl() where runflags is not set. This caused chanlist not to be properly freed by do_become_nonbusy(), as it only frees chanlist when runflags is correctly set. Added a check in do_become_nonbusy() for the case where runflags is not set, to properly free the chanlist memory. [1] BUG: memory leak backtrace (crc 844a0efa): __comedi_get_user_chanlist drivers/comedi/comedi_fops.c:1815 [inline] do_cmd_ioctl.part.0+0x112/0x350 drivers/comedi/comedi_fops.c:1890 do_cmd_ioctl drivers/comedi/comedi_fops.c:1858 [inline]

Affected

Product or packageVersionsReported by
Linux Linuxfrom 4e1da516debbe6a573ffa0392e2809d180d0575c before 830c848aba9f047eb6b34288975ebeb8e8621451, from 4e1da516debbe6a573ffa0392e2809d180d0575c before 29f644f14b89e6c4965e3c89251929e451190a66, 6.19
Not affected: before 6.19, from 6.19.12 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.19 before 6.19.12, 7.0NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: comedi: runflags cannot determine whether to reclaim chanlist syzbot reported a memory leak [1], because commit 4e1da516debb ("comedi: Add reference counting for Comedi command handling") did not consider the exceptional exit case in do_cmd_ioctl() where runflags is not set. This caused chanlist not to be properly freed by do_become_nonbusy(), as it only frees chanlist when runflags is correctly set. Added a check in do_become_nonbusy() for the case where runflags is not set, to properly free the chanlist memory. [1] BUG: memory leak backtrace (crc 844a0efa): __comedi_get_user_chanlist drivers/comedi/comedi_fops.c:1815 [inline] do_cmd_ioctl.part.0+0x112/0x350 drivers/comedi/comedi_fops.c:1890 do_cmd_ioctl drivers/comedi/comedi_fops.c:1858 [inline]

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: comedi: runflags no puede determinar si debe reclamar chanlist syzbot informó de una fuga de memoria [1], porque el commit 4e1da516debb (’comedi: Add reference counting for Comedi command handling’) no consideró el caso de salida excepcional en do_cmd_ioctl() donde runflags no está establecido. Esto causó que chanlist no fuera liberado correctamente por do_become_nonbusy(), ya que solo libera chanlist cuando runflags está correctamente establecido. Se añadió una comprobación en do_become_nonbusy() para el caso en que runflags no está establecido, para liberar correctamente la memoria de chanlist. [1] ERROR: fuga de memoria rastreo (crc 844a0efa): __comedi_get_user_chanlist drivers/comedi/comedi_fops.c:1815 [inline] do_cmd_ioctl.part.0+0x112/0x350 drivers/comedi/comedi_fops.c:1890 do_cmd_ioctl drivers/comedi/comedi_fops.c:1858 [inline]

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31750 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-31750 changed 2026-11-11Public domain