fbdev: omapfb: Add 'plane' value check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 559d67018950ced65c73358cd69c4bdd2b0c5dd6 · < 52eafaa56f8f6d6a0cdff9282b25b4acbde34edc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fbdev: omapfb: Add 'plane' value check
Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane.
The value of this parameter is initialized in dss_init_overlays and in the current state of the code it cannot take this value so it's not a real problem.
For the purposes of defensive coding it wouldn't be superfluous to check the parameter value, because some functions down the call stack process this value correctly and some not.
For example, in dispc_ovl_setup_global_alpha it may lead to buffer overflow.
Add check for this value.
Found by Linux Verification Center (linuxtesting.org) with SVACE static analysis tool.
From the CVE record · Linux
The Linux kernel's omapfb overlay setup did not check for a plane value that could lead to a buffer overflow in a downstream function. The input says the value cannot occur in the current code, so it does not describe a reachable attack or establish network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their build includes omapfb; affected versions are not specified.