CVE-2026-23068

spi: spi-sprd-adi: Fix double free in probe error path

No CVSS score yet EPSS 0.16%

Published 4 Feb 2026 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2026-23068

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-23068 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:

spi: spi-sprd-adi: Fix double free in probe error path

The driver currently uses spi_alloc_host() to allocate the controller but registers it using devm_spi_register_controller().

If devm_register_restart_handler() fails, the code jumps to the put_ctlr label and calls spi_controller_put(). However, since the controller was registered via a devm function, the device core will automatically call spi_controller_put() again when the probe fails. This results in a double-free of the spi_controller structure.

Fix this by switching to devm_spi_alloc_host() and removing the manual spi_controller_put() call.

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 4.82% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ac1775012058e13ef1522938e27f5973d9e3f053, before bddd3d10d039729b81cfb0804520c8832a701a0e
affected from ac1775012058e13ef1522938e27f5973d9e3f053, before 417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c
affected from ac1775012058e13ef1522938e27f5973d9e3f053, before 346775f2b4cf839177e8e86b94aa180a06dc15b0
affected from ac1775012058e13ef1522938e27f5973d9e3f053, before f6d6b3f172df118db582fe5ec43ae223a55d99cf
affected from ac1775012058e13ef1522938e27f5973d9e3f053, before 383d4f5cffcc8df930d95b06518a9d25a6d74aac
Other versions: unaffected
Linux
affected 4.17
unaffected before 4.17
unaffected from 6.1.162 up to and including 6.1.*
unaffected from 6.6.122 up to and including 6.6.*
unaffected from 6.12.68 up to and including 6.12.*
unaffected from 6.18.8 up to and including 6.18.*
unaffected 6.19 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-23068 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23068

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

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