# CVE-2022-50287: drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:21:23.403Z
- Modified: 2026-11-05T20:17:32.753Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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)

(As written by CVE List.)

## Affected

- Linux Linux: from a87d0a84760726445dcc0f0177623f0d683f3559 before 4758d04014cfe6cdb6e9b4738d1d6728487bbb3a; from a87d0a84760726445dcc0f0177623f0d683f3559 before 7c852e8f93f04e57c1e3883caa72542469c6c4c4; from a87d0a84760726445dcc0f0177623f0d683f3559 before 1382901f75a5a7dc8eac05059fd0c7816def4eae; 5.19 (not affected: before 5.19; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.19 before 6.0.16; from 6.1 before 6.1.2

## References

- <https://git.kernel.org/stable/c/4758d04014cfe6cdb6e9b4738d1d6728487bbb3a> (patch)
- <https://git.kernel.org/stable/c/7c852e8f93f04e57c1e3883caa72542469c6c4c4> (patch)
- <https://git.kernel.org/stable/c/1382901f75a5a7dc8eac05059fd0c7816def4eae> (patch)

## Sources

- CVE List: [CVE-2022-50287](https://www.cve.org/CVERecord?id=CVE-2022-50287), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50287](https://nvd.nist.gov/vuln/detail/CVE-2022-50287), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50287 · Whole record: https://cve.day/CVE-2022-50287.json · Rebuilt by cve.day 2026-11-25T22:58:21.149Z
