{"id":"CVE-2025-40354","aliases":["CVE-2025-40354"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amd/display: increase max link count and fix link->enc NULL pointer access","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: increase max link count and fix link->enc NULL pointer access\n\n[why]\n1.) dc->links[MAX_LINKS] array size smaller than actual requested.\nmax_connector + max_dpia + 4 virtual = 14.\nincrease from 12 to 14.\n\n2.) hw_init() access null LINK_ENC for dpia non display_endpoint.\n\n(cherry picked from commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: increase max link count and fix link->enc NULL pointer access\n\n[why]\n1.) dc->links[MAX_LINKS] array size smaller than actual requested.\nmax_connector + max_dpia + 4 virtual = 14.\nincrease from 12 to 14.\n\n2.) hw_init() access null LINK_ENC for dpia non display_endpoint.\n\n(cherry picked from commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/amd/display: incrementar el conteo máximo de enlaces y corregir el acceso de puntero nulo a link -> enc\n\n[por qué]\n1.) Tamaño de array dc -> links[MAX_LINKS] menor que el realmente solicitado.\nmax_connector + max_dpia + 4 virtuales = 14.\naumento de 12 a 14.\n\n2.) Acceso de hw_init() a LINK_ENC nulo para dpia no display_endpoint.\n\n(extraído del commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45)","source":"nvd"}],"published":"2025-12-16T13:30:27.082Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"Linux","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"},"severities":[{"scorer":"Linux","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":[],"affected":[{"ranges":[{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"f28092be4e12b7df9e4f415d25bf0d767bc2d9ed","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"a3fc0d36cfb927f8986b83bf5fba47dbedad3c63","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"bec947cbe9a65783adb475a5fb47980d7b4f4796","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"6.12.56","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.6","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f28092be4e12b7df9e4f415d25bf0d767bc2d9ed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a3fc0d36cfb927f8986b83bf5fba47dbedad3c63","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bec947cbe9a65783adb475a5fb47980d7b4f4796","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40354","url":"https://www.cve.org/CVERecord?id=CVE-2025-40354","licence":"CVE Terms of Use","modified":"2026-08-05T12:09:51.348Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40354","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40354","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.471Z","epss":{"score":0.00163,"percentile":0.05767,"date":"2026-12-01T12:00:22.000Z"}}