{"id":"CVE-2025-39882","aliases":["CVE-2025-39882"],"related":[],"kind":"vulnerability","state":"published","title":"drm/mediatek: fix potential OF node use-after-free","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: fix potential OF node use-after-free\n\nThe for_each_child_of_node() helper drops the reference it takes to each\nnode as it iterates over children and an explicit of_node_put() is only\nneeded when exiting the loop early.\n\nDrop the recently introduced bogus additional reference count decrement\nat each iteration that could potentially lead to a use-after-free.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: fix potential OF node use-after-free\n\nThe for_each_child_of_node() helper drops the reference it takes to each\nnode as it iterates over children and an explicit of_node_put() is only\nneeded when exiting the loop early.\n\nDrop the recently introduced bogus additional reference count decrement\nat each iteration that could potentially lead to a use-after-free.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/mediatek: corrige potencial uso después de liberación de nodo OF\n\nLa función auxiliar for_each_child_of_node() libera la referencia que toma a cada nodo mientras itera sobre los hijos y una llamada explícita a of_node_put() solo es necesaria al salir del bucle prematuramente.\n\nEliminar el recientemente introducido decremento adicional erróneo del contador de referencias en cada iteración que podría conducir potencialmente a un uso después de liberación.","source":"nvd"}],"published":"2025-09-23T06:00:51.036Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"7d98166183d627c0b9daca7672b2191fae0f8a03","fixed":"b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d","status":"affected"},{"type":"git","introduced":"31ce7c089b50c3d3056c37e0e25e7535e4428ae1","fixed":"b58a26cdd4795c1ce6a80e38e9348885555dacd6","status":"affected"},{"type":"git","introduced":"fae58d0155a979a8c414bbc12db09dd4b2f910d0","fixed":"c4901802ed1ce859242e10af06e6a7752cba0497","status":"affected"},{"type":"git","introduced":"1f403699c40f0806a707a9a6eed3b8904224021a","fixed":"4de37a48b6b58faaded9eb765047cf0d8785ea18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.6.105","fixed":"6.6.107","status":"affected"},{"type":"semver","introduced":"6.12.45","fixed":"6.12.48","status":"affected"},{"type":"semver","introduced":"6.16.5","fixed":"6.16.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.105","fixed":"6.6.107"},{"status":"affected","introduced":"6.12.45","fixed":"6.12.48"},{"status":"affected","introduced":"6.16.5","fixed":"6.16.8"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b58a26cdd4795c1ce6a80e38e9348885555dacd6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4901802ed1ce859242e10af06e6a7752cba0497","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4de37a48b6b58faaded9eb765047cf0d8785ea18","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-01-14T19:25:43.286Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39882","url":"https://www.cve.org/CVERecord?id=CVE-2025-39882","licence":"CVE Terms of Use","modified":"2026-08-05T12:05:53.126Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39882","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39882","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.035Z","epss":{"score":0.00163,"percentile":0.05695,"date":"2026-12-01T12:00:22.000Z"}}