CVE-2026-31389: spi: fix use-after-free on controller registration failure

Published Apr 3, 2026
·
Updated

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

spi: fix use-after-free on controller registration failure

Make sure to deregister from driver core also in the unlikely event that per-cpu statistics allocation fails during controller registration to avoid use-after-free (of driver resources) and unclocked register accesses.

Affected Software

10 affected components
Linux Linux kernel (SPI subsystem)
Linux Linux kernel>=6.0<6.1.167
Linux Linux kernel>=6.2<6.6.130
Linux Linux kernel>=6.7<6.12.78
Linux Linux kernel>=6.13<6.18.20
Linux Linux kernel>=6.19<6.19.10
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4

Event History

Apr 3, 2026
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
DescriptionSeverity
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

When can this flaw be triggered?

It is triggered when SPI controller registration fails because allocation of per-CPU statistics fails. The affected cleanup path can then leave driver-core registration in place while driver resources have been freed.

2

What access does an attacker need?

The supplied vector indicates local access, low attack complexity, and low privileges are required. No user interaction is required.

3

What is the potential impact?

The flaw can cause use-after-free of driver resources and accesses to registers while they are unclocked. The supplied severity vector indicates potential high impact to confidentiality, integrity, and availability.

4

What is the remediation?

Apply a Linux kernel update containing the SPI controller registration cleanup fix. The referenced stable kernel commits provide the available fix sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203