# CVE-2026-99527: spmi: Fix potential use-after-free by grabbing of_node reference

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-19T14:44:39.046Z
- Modified: 2026-11-19T15:18:08.410Z
- Assigned by: Linux

## Description

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

spmi: Fix potential use-after-free by grabbing of_node reference

As noticed by Sashiko during a review run of an unrelated patch,
in of_spmi_register_devices(), for_each_available_child_of_node()
is used to loop through children, and to also assign a node to a
newly created SPMI child device.

Problem is that the refcount is dropped at every iteration so, in
the specific case of DT overlays, a use-after-free may occur when
an overlay is dynamically unloaded!

To resolve this, increase the of_node refcount when assigning (in
function of_spmi_register_devices) and release the reference in
spmi_device_remove().

(As written by CVE List.)

## Affected

- Linux Linux: from bc32bbd0401170853b479645002df52f849f48fe before b5e5d035abd1b49ecc9c85320fd6dfcc57ef9c79; from bc32bbd0401170853b479645002df52f849f48fe before 5653608781a660485d5e9be48a1d06025c4b97cf; from bc32bbd0401170853b479645002df52f849f48fe before f7aa9de4f2b197cdd704cdc476901b68ee128433; 6.14 (not affected: before 6.14; from 6.18.61 up to 6.18.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b5e5d035abd1b49ecc9c85320fd6dfcc57ef9c79>
- <https://git.kernel.org/stable/c/5653608781a660485d5e9be48a1d06025c4b97cf>
- <https://git.kernel.org/stable/c/f7aa9de4f2b197cdd704cdc476901b68ee128433>

## Sources

- CVE List: [CVE-2026-99527](https://www.cve.org/CVERecord?id=CVE-2026-99527), CVE Terms of Use, modified 2026-11-19
- NVD: [CVE-2026-99527](https://nvd.nist.gov/vuln/detail/CVE-2026-99527), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-99527 · Whole record: https://cve.day/CVE-2026-99527.json · Rebuilt by cve.day 2026-11-25T22:59:52.104Z
