{"id":"CVE-2024-50213","aliases":["CVE-2024-50213"],"related":[],"kind":"vulnerability","state":"published","title":"drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()\n\nmodprobe drm_hdmi_state_helper_test and then rmmod it, the following\nmemory leak occurs.\n\nThe `mode` allocated in drm_mode_duplicate() called by\ndrm_display_mode_from_cea_vic() is not freed, which cause the memory leak:\n\n\tunreferenced object 0xffffff80ccd18100 (size 128):\n\t  comm \"kunit_try_catch\", pid 1851, jiffies 4295059695\n\t  hex dump (first 32 bytes):\n\t    57 62 00 00 80 02 90 02 f0 02 20 03 00 00 e0 01  Wb........ .....\n\t    ea 01 ec 01 0d 02 00 00 0a 00 00 00 00 00 00 00  ................\n\t  backtrace (crc c2f1aa95):\n\t    [<000000000f10b11b>] kmemleak_alloc+0x34/0x40\n\t    [<000000001cd4cf73>] __kmalloc_cache_noprof+0x26c/0x2f4\n\t    [<00000000f1f3cffa>] drm_mode_duplicate+0x44/0x19c\n\t    [<000000008cbeef13>] drm_display_mode_from_cea_vic+0x88/0x98\n\t    [<0000000019daaacf>] 0xffffffedc11ae69c\n\t    [<000000000aad0f85>] kunit_try_run_case+0x13c/0x3ac\n\t    [<00000000a9210bac>] kunit_generic_run_threadfn_adapter+0x80/0xec\n\t    [<000000000a0b2e9e>] kthread+0x2e8/0x374\n\t    [<00000000bd668858>] ret_from_fork+0x10/0x20\n\t......\n\nFree `mode` by using drm_kunit_display_mode_from_cea_vic()\nto fix it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()\n\nmodprobe drm_hdmi_state_helper_test and then rmmod it, the following\nmemory leak occurs.\n\nThe `mode` allocated in drm_mode_duplicate() called by\ndrm_display_mode_from_cea_vic() is not freed, which cause the memory leak:\n\n\tunreferenced object 0xffffff80ccd18100 (size 128):\n\t  comm \"kunit_try_catch\", pid 1851, jiffies 4295059695\n\t  hex dump (first 32 bytes):\n\t    57 62 00 00 80 02 90 02 f0 02 20 03 00 00 e0 01  Wb........ .....\n\t    ea 01 ec 01 0d 02 00 00 0a 00 00 00 00 00 00 00  ................\n\t  backtrace (crc c2f1aa95):\n\t    [<000000000f10b11b>] kmemleak_alloc+0x34/0x40\n\t    [<000000001cd4cf73>] __kmalloc_cache_noprof+0x26c/0x2f4\n\t    [<00000000f1f3cffa>] drm_mode_duplicate+0x44/0x19c\n\t    [<000000008cbeef13>] drm_display_mode_from_cea_vic+0x88/0x98\n\t    [<0000000019daaacf>] 0xffffffedc11ae69c\n\t    [<000000000aad0f85>] kunit_try_run_case+0x13c/0x3ac\n\t    [<00000000a9210bac>] kunit_generic_run_threadfn_adapter+0x80/0xec\n\t    [<000000000a0b2e9e>] kthread+0x2e8/0x374\n\t    [<00000000bd668858>] ret_from_fork+0x10/0x20\n\t......\n\nFree `mode` by using drm_kunit_display_mode_from_cea_vic()\nto fix it.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/tests: hdmi: Se corrigen las pérdidas de memoria en drm_display_mode_from_cea_vic() modprobe drm_hdmi_state_helper_test y luego rmmod, se produce la siguiente pérdida de memoria. El `modo` asignado en drm_mode_duplicate() llamado por drm_display_mode_from_cea_vic() no se libera, lo que causa la pérdida de memoria: objeto sin referencia 0xffffff80ccd18100 (tamaño 128): comm \"kunit_try_catch\", pid 1851, jiffies 4295059695 volcado hexadecimal (primeros 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): [&lt;000000000f10b11b&gt;] kmemleak_alloc+0x34/0x40 [&lt;000000001cd4cf73&gt;] __kmalloc_cache_noprof+0x26c/0x2f4 [&lt;00000000f1f3cffa&gt;] modo drm_duplicado+0x44/0x19c [&lt;000000008cbeef13&gt;] modo de visualización drm_desde_cea_vic+0x88/0x98 [&lt;0000000019daaacf&gt;] 0xffffffedc11ae69c [&lt;000000000aad0f85&gt;] caso de ejecución de intentos kunit+0x13c/0x3ac [&lt;00000000a9210bac&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec [&lt;000000000a0b2e9e&gt;] kthread+0x2e8/0x374 [&lt;00000000bd668858&gt;] ret_from_fork+0x10/0x20 ...... Libere el `modo` usando drm_kunit_display_mode_from_cea_vic() para solucionarlo.","source":"nvd"}],"published":"2024-11-09T10:14:25.218Z","modified":"2026-06-17T08:03:53.373Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"4af70f19e55904147c0515ff874204a5306ac807","fixed":"3bc3fae8a0f22e0e713729b50e2111f6a8c64724","status":"affected"},{"type":"git","introduced":"4af70f19e55904147c0515ff874204a5306ac807","fixed":"add4163aca0d4a86e9fe4aa513865e4237db8aef","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.11.7","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.11","fixed":"6.11.7"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3bc3fae8a0f22e0e713729b50e2111f6a8c64724","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/add4163aca0d4a86e9fe4aa513865e4237db8aef","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T20:17:15.760Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50213","url":"https://www.cve.org/CVERecord?id=CVE-2024-50213","licence":"CVE Terms of Use","modified":"2026-05-11T20:47:36.777Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50213","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50213","licence":"Public domain","modified":"2026-06-17T08:03:53.373Z"}],"updatedAt":"2026-11-25T22:58:47.959Z","epss":{"score":0.00202,"percentile":0.10654,"date":"2026-12-01T12:00:22.000Z"}}