software node: Correct a OOB check in software_node_get_reference_args()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 59abd83672f70cac4b6bf9b237506c5bc6837606 · < 7af18e42bdefe1dba5bcb32555a4d524fd504939| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
software node: Correct a OOB check in software_node_get_reference_args()
software_node_get_reference_args() wants to get @index-th element, so the property value requires at least '(index + 1) * sizeof(*ref)' bytes but that can not be guaranteed by current OOB check, and may cause OOB for malformed property.
Fix by using as OOB check '((index + 1) * sizeof(*ref) > prop->length)'.
From the CVE record · Linux
An incorrect bounds check in the Linux kernel's software_node_get_reference_args() can cause an out-of-bounds read when processing a malformed property. The input does not specify how an attacker could supply that property or whether authentication or user interaction is required.
Teams running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified in the input.