CVE-2022-50287

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50287
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50287.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50287
Downstream
Published
2025-09-15T15:15:39Z
Modified
2025-09-15T20:01:24Z
Summary
[none]
Details

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

drm/i915/bios: fix a memory leak in generatelfpdata_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)

References

Affected packages