CVE-2024-50213: drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()

Published Nov 9, 2024
·
Updated

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

7 affected componentsFixes available
Linux Linux kernel>=6.11<6.11.7
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
Linux Linux kernel=6.12-rc3
Linux Linux kernel=6.12-rc4
Linux Linux kernel=6.12-rc5
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Nov 9, 2024
CVE Published
via MITRE·10:14 AM
Data Sourced
via MITRE·10:14 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 28, 2025
Data Sourced
via Launchpad·12:45 AM
Description
Mar 28, 2025
Data Sourced
via Ubuntu·12:52 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

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