CVE-2026-43340

comedi: Reinit dev->spinlock between attachments to low-level drivers

No CVSS score yet EPSS 0.16%

Published 8 May 2026 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2026-43340

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-43340 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

comedi: Reinit dev->spinlock between attachments to low-level drivers

`struct comedi_device` is the main controlling structure for a COMEDI device created by the COMEDI subsystem. It contains a member `spinlock` containing a spin-lock that is initialized by the COMEDI subsystem, but is reserved for use by a low-level driver attached to the COMEDI device (at least since commit 25436dc9d84f ("Staging: comedi: remove RT code")).

Some COMEDI devices (those created on initialization of the COMEDI subsystem when the "comedi.comedi_num_legacy_minors" parameter is non-zero) can be attached to different low-level drivers over their lifetime using the `COMEDI_DEVCONFIG` ioctl command. This can result in inconsistent lock states being reported when there is a mismatch in the spin-lock locking levels used by each low-level driver to which the COMEDI device has been attached. Fix it by reinitializing `dev->spinlock` before calling the low-level driver's `attach` function pointer if `CONFIG_LOCKDEP` is enabled.

Exploitation

EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.02% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before 3181c34b415c5464be9d34bff3e43ef63b747039
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before 2b1f49e4fdff3ef0f8e9158bbb5b149e06287560
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before 4d5ffe524903a30e2e0da7d16841a56bec2de55c
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before c01bcc67a9a692d65508ebd480405b5e77d562b7
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before 430291d8f3884f57ae0057049b0ca291453e29e1
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before b89c026227712c367950bbae055a5b31073d3b30
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before 83134a7a176ce5b4b19b6edecf4360e8d98d1a5a
affected from ed9eccbe8970f6eedc1b978c157caf1251a896d4, before 4b9a9a6d71e3e252032f959fb3895a33acb5865c
Other versions: unaffected
Linux
affected 2.6.29
unaffected before 2.6.29
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-43340 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-43340

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-43340
trivy image --scanners vuln IMAGE | grep CVE-2026-43340

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

Source: the record CVE-2026-43340 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.