{"id":"CVE-2024-50214","summary":"drm/connector: hdmi: Fix memory leak in drm_display_mode_from_cea_vic()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/connector: hdmi: Fix memory leak in drm_display_mode_from_cea_vic()\n\nmodprobe drm_connector_test and then rmmod drm_connector_test,\nthe following memory 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 0xffffff80cb0ee400 (size 128):\n\t  comm \"kunit_try_catch\", pid 1948, jiffies 4294950339\n\t  hex dump (first 32 bytes):\n\t    14 44 02 00 80 07 d8 07 04 08 98 08 00 00 38 04  .D............8.\n\t    3c 04 41 04 65 04 00 00 05 00 00 00 00 00 00 00  \u003c.A.e...........\n\t  backtrace (crc 90e9585c):\n\t    [\u003c00000000ec42e3d7\u003e] kmemleak_alloc+0x34/0x40\n\t    [\u003c00000000d0ef055a\u003e] __kmalloc_cache_noprof+0x26c/0x2f4\n\t    [\u003c00000000c2062161\u003e] drm_mode_duplicate+0x44/0x19c\n\t    [\u003c00000000f96c74aa\u003e] drm_display_mode_from_cea_vic+0x88/0x98\n\t    [\u003c00000000d8f2c8b4\u003e] 0xffffffdc982a4868\n\t    [\u003c000000005d164dbc\u003e] kunit_try_run_case+0x13c/0x3ac\n\t    [\u003c000000006fb23398\u003e] kunit_generic_run_threadfn_adapter+0x80/0xec\n\t    [\u003c000000006ea56ca0\u003e] kthread+0x2e8/0x374\n\t    [\u003c000000000676063f\u003e] ret_from_fork+0x10/0x20\n\t......\n\nFree `mode` by using drm_kunit_display_mode_from_cea_vic()\nto fix it.","modified":"2026-03-20T12:38:15.288649Z","published":"2024-11-09T10:14:26.138Z","related":["USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50214.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/926163342a2e7595d950e84c17c693b1272bd491"},{"type":"WEB","url":"https://git.kernel.org/stable/c/df2b00685cd33cd85be8910c7d6d22c4ebbf18bb"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50214.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50214"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"abb6f74973e20956d42e8227dde6fb4e92502c14"},{"fixed":"df2b00685cd33cd85be8910c7d6d22c4ebbf18bb"},{"fixed":"926163342a2e7595d950e84c17c693b1272bd491"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50214.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}