CVE-2026-93213: of: fix out-of-bounds read in of_alias_scan() stem parser
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
of: fix out-of-bounds read in of_alias_scan() stem parser
The stem parser tests isdigit(*(end - 1)) before checking end > start and so reads one byte before the property name when the name is empty or all digits. Check the bound first.
The Linux kernel CVE team has assigned CVE-2026-93213 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 5.10.270 with commit fd0c7bbda81c0e0c1cb7b68d267b87371584f560 Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 5.15.221 with commit 958d7ee9fcf008ef9d2072c6410ee1bf6abf3b64 Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 6.1.188 with commit f7f6c3e32a31f2e1ed12075e8cd22b370a84e67a Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 6.6.157 with commit da7a80ddc610a19b0378016a4d816b9355f013a7 Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 6.12.109 with commit 96a9c984dd7c3589a2707a32b62802f98311dbfd Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 6.18.50 with commit 9253cfc5a85be1494ce56b4fc6f2d2b509440910 Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 7.2.4 with commit acd1b49043366f43e932308b4db7d3ce568eeadb Issue introduced in 3.2 with commit 611cad720148c899db5a383c1c676fd820df7023 and fixed in 7.3-rc1 with commit 5bb01c657ff9fc807c2c592ca18af34c4fc3bc6f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93213
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/of/base.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/fd0c7bbda81c0e0c1cb7b68d267b87371584f560 https://git.kernel.org/stable/c/958d7ee9fcf008ef9d2072c6410ee1bf6abf3b64 https://git.kernel.org/stable/c/f7f6c3e32a31f2e1ed12075e8cd22b370a84e67a https://git.kernel.org/stable/c/da7a80ddc610a19b0378016a4d816b9355f013a7 https://git.kernel.org/stable/c/96a9c984dd7c3589a2707a32b62802f98311dbfd https://git.kernel.org/stable/c/9253cfc5a85be1494ce56b4fc6f2d2b509440910 https://git.kernel.org/stable/c/acd1b49043366f43e932308b4db7d3ce568eeadb https://git.kernel.org/stable/c/5bb01c657ff9fc807c2c592ca18af34c4fc3bc6f