{"id":"CVE-2026-43280","aliases":["CVE-2026-43280"],"related":[],"kind":"vulnerability","state":"published","title":"drm/xe: Add bounds check on pat_index to prevent OOB kernel read in madvise","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Add bounds check on pat_index to prevent OOB kernel read in madvise\n\nWhen user provides a bogus pat_index value through the madvise IOCTL, the\nxe_pat_index_get_coh_mode() function performs an array access without\nvalidating bounds. This allows a malicious user to trigger an out-of-bounds\nkernel read from the xe->pat.table array.\n\nThe vulnerability exists because the validation in madvise_args_are_sane()\ndirectly calls xe_pat_index_get_coh_mode(xe, args->pat_index.val) without\nfirst checking if pat_index is within [0, xe->pat.n_entries).\n\nAlthough xe_pat_index_get_coh_mode() has a WARN_ON to catch this in debug\nbuilds, it still performs the unsafe array access in production kernels.\n\nv2(Matthew Auld)\n- Using array_index_nospec() to mitigate spectre attacks when the value\nis used\n\nv3(Matthew Auld)\n- Put the declarations at the start of the block\n\n(cherry picked from commit 944a3329b05510d55c69c2ef455136e2fc02de29)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Add bounds check on pat_index to prevent OOB kernel read in madvise\n\nWhen user provides a bogus pat_index value through the madvise IOCTL, the\nxe_pat_index_get_coh_mode() function performs an array access without\nvalidating bounds. This allows a malicious user to trigger an out-of-bounds\nkernel read from the xe->pat.table array.\n\nThe vulnerability exists because the validation in madvise_args_are_sane()\ndirectly calls xe_pat_index_get_coh_mode(xe, args->pat_index.val) without\nfirst checking if pat_index is within [0, xe->pat.n_entries).\n\nAlthough xe_pat_index_get_coh_mode() has a WARN_ON to catch this in debug\nbuilds, it still performs the unsafe array access in production kernels.\n\nv2(Matthew Auld)\n- Using array_index_nospec() to mitigate spectre attacks when the value\nis used\n\nv3(Matthew Auld)\n- Put the declarations at the start of the block\n\n(cherry picked from commit 944a3329b05510d55c69c2ef455136e2fc02de29)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/xe: Añadir comprobación de límites en pat_index para prevenir una lectura de kernel fuera de límites (OOB) en madvise\n\nCuando el usuario proporciona un valor pat_index inválido a través del IOCTL de madvise, la función xe_pat_index_get_coh_mode() realiza un acceso a un array sin validar los límites. Esto permite a un usuario malicioso desencadenar una lectura de kernel fuera de límites desde el array xe  ->  pat.table.\n\nLa vulnerabilidad existe porque la validación en madvise_args_are_sane() llama directamente a xe_pat_index_get_coh_mode(xe, args  ->  pat_index.val) sin comprobar primero si pat_index está dentro de [0, xe  ->  pat.n_entries).\n\nAunque xe_pat_index_get_coh_mode() tiene un WARN_ON para detectar esto en compilaciones de depuración, todavía realiza el acceso inseguro al array en kernels de producción.\n\nv2(Matthew Auld)\n- Usando array_index_nospec() para mitigar ataques Spectre cuando se usa el valor\n\nv3(Matthew Auld)\n- Poner las declaraciones al inicio del bloque\n\n(seleccionado de la confirmación 944a3329b05510d55c69c2ef455136e2fc02de29)","source":"nvd"}],"published":"2026-05-06T11:29:01.562Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"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:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"ada7486c5668db542a7d361268df931aca5b726a","fixed":"ffba51100ff61792fefbae11ca38ac1987a818dd","status":"affected"},{"type":"git","introduced":"ada7486c5668db542a7d361268df931aca5b726a","fixed":"79f52655567a6471ff3d0d6325ede91bb14461f4","status":"affected"},{"type":"git","introduced":"ada7486c5668db542a7d361268df931aca5b726a","fixed":"fbbe32618e97eff81577a01eb7d9adcd64a216d7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","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.18","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ffba51100ff61792fefbae11ca38ac1987a818dd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79f52655567a6471ff3d0d6325ede91bb14461f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbbe32618e97eff81577a01eb7d9adcd64a216d7","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T15:16:15.978Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43280","url":"https://www.cve.org/CVERecord?id=CVE-2026-43280","licence":"CVE Terms of Use","modified":"2026-10-19T19:16:25.879Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43280","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43280","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.766Z","epss":{"score":0.00118,"percentile":0.01895,"date":"2026-12-01T12:00:22.000Z"}}