Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: drm/i915/bios: range check LFP Data Block panel_type2 While the panel_type from LFP Data Block is range checked, panel_type2 is not. Add a few helpers for range checking, and use them to not only check panel_type2, but also improve clarity and correctness in the panel type selection. Discovered using AI-assisted static analysis confirmed by Intel Product Security. v2: - Fix commit message typo (Michał) - Add is_panel_type_pnp() (Ville) (cherry picked from commit c9ebe5d2f25729d6cfbbb1235d640bf67f9275df)
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 6434cf630086eea2d091f122f5802582a05d9d1c before dc30139679354860faf8ca6a0f231cd39d692db7; affected 6434cf630086eea2d091f122f5802582a05d9d1c before e7b5694645b03e80830dc141b59fc65aac693c70; affected 6434cf630086eea2d091f122f5802582a05d9d1c before 8b2da44446f9dce2ae50fee78bac2734d4277143; affected 6434cf630086eea2d091f122f5802582a05d9d1c before 8887b94d2fc93071bf6ff09c39d474510e6f582f; affected 6434cf630086eea2d091f122f5802582a05d9d1c before 2084503f2d087bf956198e7f6eb25b03a7049cb2 |
| Linux / Linux | affected 6.0; unaffected 0 before 6.0; unaffected 6.6.160 through 6.6.*; unaffected 6.12.101 through 6.12.*; unaffected 6.18.42 through 6.18.*; unaffected 7.1.6 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/dc30139679354860faf8ca6a0f231cd39d692db7
- https://git.kernel.org/stable/c/e7b5694645b03e80830dc141b59fc65aac693c70
- https://git.kernel.org/stable/c/8b2da44446f9dce2ae50fee78bac2734d4277143
- https://git.kernel.org/stable/c/8887b94d2fc93071bf6ff09c39d474510e6f582f
- https://git.kernel.org/stable/c/2084503f2d087bf956198e7f6eb25b03a7049cb2