{"id":"CVE-2026-43397","aliases":["CVE-2026-43397"],"related":[],"kind":"vulnerability","state":"published","title":"drm/bridge: samsung-dsim: Fix memory leak in error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/bridge: samsung-dsim: Fix memory leak in error path\n\nIn samsung_dsim_host_attach(), drm_bridge_add() is called to add the\nbridge. However, if samsung_dsim_register_te_irq() or\npdata->host_ops->attach() fails afterwards, the function returns\nwithout removing the bridge, causing a memory leak.\n\nFix this by adding proper error handling with goto labels to ensure\ndrm_bridge_remove() is called in all error paths. Also ensure that\nsamsung_dsim_unregister_te_irq() is called if the attach operation\nfails after the TE IRQ has been registered.\n\nsamsung_dsim_unregister_te_irq() function is moved without changes\nto be before samsung_dsim_host_attach() to avoid forward declaration.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/bridge: samsung-dsim: Fix memory leak in error path\n\nIn samsung_dsim_host_attach(), drm_bridge_add() is called to add the\nbridge. However, if samsung_dsim_register_te_irq() or\npdata->host_ops->attach() fails afterwards, the function returns\nwithout removing the bridge, causing a memory leak.\n\nFix this by adding proper error handling with goto labels to ensure\ndrm_bridge_remove() is called in all error paths. Also ensure that\nsamsung_dsim_unregister_te_irq() is called if the attach operation\nfails after the TE IRQ has been registered.\n\nsamsung_dsim_unregister_te_irq() function is moved without changes\nto be before samsung_dsim_host_attach() to avoid forward declaration.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/bridge: samsung-dsim: Corrección de fuga de memoria en la ruta de error\n\nEn samsung_dsim_host_attach(), se llama a drm_bridge_add() para añadir el puente. Sin embargo, si samsung_dsim_register_te_irq() o pdata  ->  host_ops  ->  attach() falla después, la función retorna sin eliminar el puente, causando una fuga de memoria.\n\nEsto se corrige añadiendo un manejo de errores adecuado con etiquetas goto para asegurar que se llama a drm_bridge_remove() en todas las rutas de error. También se asegura que se llama a samsung_dsim_unregister_te_irq() si la operación de adjuntar falla después de que el TE IRQ ha sido registrado.\n\nLa función samsung_dsim_unregister_te_irq() se mueve sin cambios para estar antes de samsung_dsim_host_attach() para evitar la declaración anticipada.","source":"nvd"}],"published":"2026-05-08T14:21:40.185Z","modified":"2026-11-11T20:10:00.273Z","severity":{"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"},"severities":[{"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":"e7447128ca4a250374d6721ee98e3e3cf99551a6","fixed":"98310fe3a2a79671b739a5344c1a11d74c503e25","status":"affected"},{"type":"git","introduced":"e7447128ca4a250374d6721ee98e3e3cf99551a6","fixed":"0b07f7d2c5a4078c2f1c11bb36685084fe4e5c95","status":"affected"},{"type":"git","introduced":"e7447128ca4a250374d6721ee98e3e3cf99551a6","fixed":"e6d779654cda63d632bd8dfcdcabd125057e30a5","status":"affected"},{"type":"git","introduced":"e7447128ca4a250374d6721ee98e3e3cf99551a6","fixed":"a40b92fb4b26d4cb1b5e439e55a56db7e79a82d1","status":"affected"},{"type":"git","introduced":"e7447128ca4a250374d6721ee98e3e3cf99551a6","fixed":"803ec1faf7c1823e6e3b1f2aaa81be18528c9436","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.19","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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.4","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.78"},{"status":"affected","introduced":"6.13","fixed":"6.18.19"},{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/98310fe3a2a79671b739a5344c1a11d74c503e25","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b07f7d2c5a4078c2f1c11bb36685084fe4e5c95","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e6d779654cda63d632bd8dfcdcabd125057e30a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a40b92fb4b26d4cb1b5e439e55a56db7e79a82d1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/803ec1faf7c1823e6e3b1f2aaa81be18528c9436","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43397","url":"https://www.cve.org/CVERecord?id=CVE-2026-43397","licence":"CVE Terms of Use","modified":"2026-05-11T22:23:47.602Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43397","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43397","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.046Z","epss":{"score":0.00122,"percentile":0.02159,"date":"2026-12-01T12:00:22.000Z"}}