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

Published Sep 15, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/i915/bios: fix a memory leak in generatelfpdataptrs

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 ptrsblock.

(cherry picked from commit 7674cd0b7d28b952151c3df26bbfa7e07eb2b4ec)

Affected Software

3 affected components
Linux Linux kernel
Linux Linux kernel>=5.19<6.0.16
Linux Linux kernel>=6.1<6.1.2

Event History

Sep 15, 2025
CVE Published
via MITRE·02:21 PM
Data Sourced
via MITRE·02:21 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203