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

spi: rockchip-sfc: Fix double-free in remove() callback

The driver uses devm_spi_register_controller() for registration, which
automatically unregisters the controller via devm cleanup when the
device is removed. The manual call to spi_unregister_controller() in
the remove() callback can lead to a double-free.

And to make sure controller is unregistered before DMA buffer is
unmapped, switch to use spi_register_controller() in probe().
Published: 2026-05-08
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel rockchip‑sfc SPI controller driver registers its controller with devm_spi_register_controller(), which automatically unregisters the controller during device removal. The driver also calls spi_unregister_controller() in its remove() callback, which can cause a double‑free of the same controller object. According to CWE‑1341 and CWE‑415, this double‑free can corrupt kernel memory.

Affected Systems

Linux kernel versions that include the rockchip‑sfc driver prior to the fix commit (for example, commit 111e2863) and any kernel builds lacking that commit are affected. This includes the 7.0 release candidates (rc1, rc2, rc3) and earlier kernels. Systems using Rockchip SoCs and running vulnerable kernel versions with the driver built into the kernel or as a module are impacted; distributions that have incorporated the patch commit are not vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity flaw, while the EPSS score of <1% suggests a low likelihood of exploitation, and it is not listed in the CISA KEV catalog. The double‑free occurs during device removal, so an attacker would need the ability to trigger removal of the rockchip‑sfc controller, which typically requires local or hardware access. Based on the description, it is inferred that an attacker would need to have such removal capability to exploit the bug. While the double‑free can corrupt kernel memory, the CVE description does not explicitly state that this leads to arbitrary code execution or privilege escalation; such consequences are therefore not guaranteed by the information provided.

Generated by OpenCVE AI on May 20, 2026 at 22:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that includes commit 111e2863, which removes the double‑free bug and uses spi_register_controller() during probe().
  • If an immediate kernel upgrade is not possible, unload or disable the rockchip_sfc module at runtime with "modprobe -r rockchip_sfc" or by disabling the driver in the kernel configuration.
  • For custom kernel builds that still contain the affected driver code, edit the source to remove or comment out the manual spi_unregister_controller() call in the remove() callback and rely on devm cleanup.

Generated by OpenCVE AI on May 20, 2026 at 22:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 20 May 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 09 May 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 09 May 2026 12:15:00 +0000


Fri, 08 May 2026 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 08 May 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: spi: rockchip-sfc: Fix double-free in remove() callback The driver uses devm_spi_register_controller() for registration, which automatically unregisters the controller via devm cleanup when the device is removed. The manual call to spi_unregister_controller() in the remove() callback can lead to a double-free. And to make sure controller is unregistered before DMA buffer is unmapped, switch to use spi_register_controller() in probe().
Title spi: rockchip-sfc: Fix double-free in remove() callback
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-11T22:25:00.962Z

Reserved: 2026-05-01T14:12:56.010Z

Link: CVE-2026-43460

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-08T15:16:58.880

Modified: 2026-05-20T18:50:11.847

Link: CVE-2026-43460

cve-icon Redhat

Severity :

Publid Date: 2026-05-08T00:00:00Z

Links: CVE-2026-43460 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-20T22:15:25Z

Weaknesses