CVE-2024-50213
drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 4af70f19e55904147c0515ff874204a5306ac807, < 3bc3fae8a0f22e0e713729b50e2111f6a8c64724; >= 4af70f19e55904147c0515ff874204a5306ac807, < add4163aca0d4a86e9fe4aa513865e4237db8aef
- Anyone running Linux 6.11
Vulnerability facts
- Affected
- Linux >= 4af70f19e55904147c0515ff874204a5306ac807, < 3bc3fae8a0f22e0e713729b50e2111f6a8c64724; >= 4af70f19e55904147c0515ff874204a5306ac807, < add4163aca0d4a86e9fe4aa513865e4237db8aef; Linux 6.11
- Fixed in
- Linux 3bc3fae8a0f22e0e713729b50e2111f6a8c64724
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic() modprobe drm_hdmi_state_helper_test and then rmmod it, the following memory leak occurs. The `mode` allocated in drm_mode_duplicate() called by drm_display_mode_from_cea_vic() is not freed, which cause the memory leak: unreferenced object 0xffffff80ccd18100 (size 128): comm "kunit_try_catch", 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>] kmemleak_alloc+0x34/0x40 [<000000001cd4cf73>] __kmalloc_cache_noprof+0x26c/0x2f4 [<00000000f1f3cffa>] drm_mode_duplicate+0x44/0x19c [<000000008cbeef13>] drm_display_mode_from_cea_vic+0x88/0x98 [<0000000019daaacf>] 0xffffffedc11ae69c [<000000000aad0f85>] kunit_try_run_case+0x13c/0x3ac [<00000000a9210bac>] kunit_generic_run_threadfn_adapter+0x80/0xec [<000000000a0b2e9e>] kthread+0x2e8/0x374 [<00000000bd668858>] ret_from_fork+0x10/0x20 ...... Free `mode` by using drm_kunit_display_mode_from_cea_vic() to fix it.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-50213. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-50213.md Affected: Linux >= 4af70f19e55904147c0515ff874204a5306ac807, < 3bc3fae8a0f22e0e713729b50e2111f6a8c64724; >= 4af70f19e55904147c0515ff874204a5306ac807, < add4163aca0d4a86e9fe4aa513865e4237db8aef; Linux 6.11 Fixed in: Linux 3bc3fae8a0f22e0e713729b50e2111f6a8c64724 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2024-50213 being exploited?
There is no confirmed exploitation: CVE-2024-50213 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-50213?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-50213?
Linux >= 4af70f19e55904147c0515ff874204a5306ac807, < 3bc3fae8a0f22e0e713729b50e2111f6a8c64724; >= 4af70f19e55904147c0515ff874204a5306ac807, < add4163aca0d4a86e9fe4aa513865e4237db8aef; Linux 6.11.
Is there a fix for CVE-2024-50213?
Yes. Fixed in Linux 3bc3fae8a0f22e0e713729b50e2111f6a8c64724. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-50213?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.