CVE-2026-31389

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

State
Published
Severity
7.8 High
Published
Apr 3, 2026
Updated
Oct 19, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 to before 0e23f50086da7d0b183dfeac26021acfcdee086bAffected
  • 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 to before 6bbd385b30c7fb6c7ee0669e9ada91490938c051Affected
  • 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 to before afe27c1f43aa57530011f419be6ddf71306565d2Affected
  • 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 to before 80f3e8cd2b4ad355b2ad2024cf423f6d183404f7Affected
  • 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 to before 23b51bad2eb8787aa74324cfccefb258515ae5baAffected
  • 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 to before 8634e05b08ead636e926022f4a98416e13440df9Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.167 through 6.1.*Not affected
  • 6.6.130 through 6.6.*Not affected
  • 6.12.78 through 6.12.*Not affected
  • 6.18.20 through 6.18.*Not affected
  • 6.19.10 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.