Bug 2395279 (CVE-2022-50287) - CVE-2022-50287 kernel: drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs
Summary: CVE-2022-50287 kernel: drm/i915/bios: fix a memory leak in generate_lfp_data_...
Keywords:
Status: NEW
Alias: CVE-2022-50287
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 15:04 UTC by OSIDB Bzimport
Modified: 2025-09-16 12:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-15 15:04:55 UTC
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)


Note You need to log in before you can comment on or make changes to this bug.