CVE-2024-50213: drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
In the Linux kernel, the following vulnerability has been resolved:
drm/tests: hdmi: Fix memory leaks in drmdisplaymodefromceavic()
modprobe drmhdmistatehelpertest and then rmmod it, the following memory leak occurs.
The mode allocated in drmmodeduplicate() called by drmdisplaymodefromceavic() is not freed, which cause the memory leak:
unreferenced object 0xffffff80ccd18100 (size 128): comm "kunittrycatch", pid 1851, jiffies 4295059695 hex dump (first 32 bytes): 57 62 00 00 80 02 90 02 f0 02 20 03 00 00 e0 01 Wb........ ..... ea 01 ec 01 0d 02 00 00 0a 00 00 00 00 00 00 00 ................ backtrace (crc c2f1aa95): [<000000000f10b11b>] kmemleakalloc+0x34/0x40 [<000000001cd4cf73>] kmalloccachenoprof+0x26c/0x2f4 [<00000000f1f3cffa>] drmmodeduplicate+0x44/0x19c [<000000008cbeef13>] drmdisplaymodefromceavic+0x88/0x98 [<0000000019daaacf>] 0xffffffedc11ae69c [<000000000aad0f85>] kunittryruncase+0x13c/0x3ac [<00000000a9210bac>] kunitgenericrunthreadfnadapter+0x80/0xec [<000000000a0b2e9e>] kthread+0x2e8/0x374 [<00000000bd668858>] retfromfork+0x10/0x20 ......
Free mode by using drmkunitdisplaymodefromceavic() to fix it.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50213?
CVE-2024-50213 is considered a high-severity vulnerability due to potential memory leaks that can lead to resource exhaustion.
How do I fix CVE-2024-50213?
To fix CVE-2024-50213, update the Linux kernel to version 6.11.8 or later to ensure the memory leak issue is resolved.
Which versions of the Linux kernel are affected by CVE-2024-50213?
CVE-2024-50213 affects Linux kernel versions from 6.11 to 6.12-rc5 inclusively.
What is the nature of the vulnerability in CVE-2024-50213?
CVE-2024-50213 involves memory leaks in the drm_display_mode_from_cea_vic() function when using the drm_hdmi_state_helper_test module.
What are potential impacts of CVE-2024-50213?
The potential impacts of CVE-2024-50213 include degraded system performance and possible denial of service due to resource exhaustion from memory leaks.