What’s Vulnerable › Vulnerabilities
CVE-2022-50287: drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-15 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs When (size != 0 || ptrs->lvds_ entries != 3), the program tries to free() the ptrs. However, the ptrs is not created by calling kzmalloc(), but is obtained by pointer offset operation. This may lead to memory leaks or undefined behavior. Fix this by replacing the arguments of kfree() with ptrs_block. (cherry picked from commit 7674cd0b7d28b952151c3df26bbfa7e07eb2b4ec)
Affected products
- Linux kernel: from 5.19 before 6.0.16; from 6.1 before 6.1.2 — fixed in 6.0.16, 6.1.2
How to fix
Upgrade to a fixed version: Linux kernel 6.0.16, 6.1.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1382901f75a5a7dc8eac05059fd0c7816def4eae
- https://git.kernel.org/stable/c/4758d04014cfe6cdb6e9b4738d1d6728487bbb3a
- https://git.kernel.org/stable/c/7c852e8f93f04e57c1e3883caa72542469c6c4c4
Get alerted when CVE-2022-50287 or the next vulnerability affects your stack