soc: qcom: qmi_encdec: Restrict string length in decode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 · < 22ee7c9c7f381be178b4457bc54530002e08e938| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: qmi_encdec: Restrict string length in decode
The QMI TLV value for strings in a lot of qmi element info structures account for null terminated strings with MAX_LEN + 1. If a string is actually MAX_LEN + 1 length, this will cause an out of bounds access when the NULL character is appended in decoding.
From the CVE record · Linux
The Linux kernel's qmi_encdec component can access memory out of bounds when decoding a QMI TLV string of length MAX_LEN + 1 and appending a null character. The input does not specify how an attacker could supply such a string, or whether authentication or user interaction is required.
Engineers running the Linux kernel should check whether their builds include the affected QMI decoding code; affected versions are not specified.