drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.0.166.1.26.2In 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)
From the CVE record · Linux
The Linux kernel's drm/i915/bios code may free an offset pointer rather than the allocated block when the size is nonzero or the LVDS entry count is not three. This may cause a memory leak or undefined behavior. The input does not establish how an attacker could trigger the issue or whether access or user interaction is required.
Teams running Linux kernels with the affected drm/i915/bios code should check their kernel versions; affected versions are not specified.