---
id: CVE-2022-50287
title: 'drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs'
summary: |-
  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…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= a87d0a84760726445dcc0f0177623f0d683f3559 <
    4758d04014cfe6cdb6e9b4738d1d6728487bbb3a
  - >-
    Linux >= a87d0a84760726445dcc0f0177623f0d683f3559 <
    7c852e8f93f04e57c1e3883caa72542469c6c4c4
  - >-
    Linux >= a87d0a84760726445dcc0f0177623f0d683f3559 <
    1382901f75a5a7dc8eac05059fd0c7816def4eae
  - Linux 5.19
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:09:04.348580Z'
published: '2025-09-15'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:10:33.330Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-50287'
references:
  - url: 'https://git.kernel.org/stable/c/4758d04014cfe6cdb6e9b4738d1d6728487bbb3a'
  - url: 'https://git.kernel.org/stable/c/7c852e8f93f04e57c1e3883caa72542469c6c4c4'
  - url: 'https://git.kernel.org/stable/c/1382901f75a5a7dc8eac05059fd0c7816def4eae'
tags:
  - cve.org
epss: 0.00159
epssPercentile: 0.0503
ingestedAt: '2026-11-05T22:38:31.721Z'
---

## Overview

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

- `Linux >= a87d0a84760726445dcc0f0177623f0d683f3559 < 4758d04014cfe6cdb6e9b4738d1d6728487bbb3a`
- `Linux >= a87d0a84760726445dcc0f0177623f0d683f3559 < 7c852e8f93f04e57c1e3883caa72542469c6c4c4`
- `Linux >= a87d0a84760726445dcc0f0177623f0d683f3559 < 1382901f75a5a7dc8eac05059fd0c7816def4eae`
- `Linux 5.19`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
