{"id":"CVE-2026-99620","aliases":["CVE-2026-99620"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amdgpu: don't walk the CS chunks when allocating them failed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: don't walk the CS chunks when allocating them failed\n\namdgpu_cs_pass1() sets p->nchunks before allocating p->chunks, and the\nallocation failure path skips resetting it. amdgpu_cs_parser_fini() then\nfrees the kdata of nchunks chunks from a NULL array. On navi48 with the\nchunk array allocation failed through failslab:\n\n  Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI\n  KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]\n  RIP: 0010:amdgpu_cs_parser_fini+0x35d/0x710 [amdgpu]\n   amdgpu_cs_ioctl+0xcae/0x7a20 [amdgpu]\n   drm_ioctl_kernel+0x180/0x320 [drm]\n\nSet nchunks once the array exists.\n\n(cherry picked from commit 0c828445757b86aaa3ed2638832d76f450022bdf)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: don't walk the CS chunks when allocating them failed\n\namdgpu_cs_pass1() sets p->nchunks before allocating p->chunks, and the\nallocation failure path skips resetting it. amdgpu_cs_parser_fini() then\nfrees the kdata of nchunks chunks from a NULL array. On navi48 with the\nchunk array allocation failed through failslab:\n\n  Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI\n  KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]\n  RIP: 0010:amdgpu_cs_parser_fini+0x35d/0x710 [amdgpu]\n   amdgpu_cs_ioctl+0xcae/0x7a20 [amdgpu]\n   drm_ioctl_kernel+0x180/0x320 [drm]\n\nSet nchunks once the array exists.\n\n(cherry picked from commit 0c828445757b86aaa3ed2638832d76f450022bdf)","source":"cvelist"}],"published":"2026-11-20T05:49:40.646Z","modified":"2026-11-23T08:18:04.230Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"4cd5e39dd18a4ef6d13fd8ae6160e972f4687041","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"ce3e5a3441483c6c435c9ff1f94f174a28c6b27c","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"c30283492afb006b913410d01c5280d9eda866aa","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"ff9e4a98f6e854963bd5ed80a5790450956711a5","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"4a2f0b93077dc87f30ad73be8997761a71d124fc","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"e3be92649ed377d41b1687a84139fc17f335c21f","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"be90166ed3be02c13253f54ed2a8fe98a66cea30","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"ade92d50aad6799a5a9d7e73cd1604fd0576e656","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.2","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","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/4cd5e39dd18a4ef6d13fd8ae6160e972f4687041","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce3e5a3441483c6c435c9ff1f94f174a28c6b27c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c30283492afb006b913410d01c5280d9eda866aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff9e4a98f6e854963bd5ed80a5790450956711a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a2f0b93077dc87f30ad73be8997761a71d124fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3be92649ed377d41b1687a84139fc17f335c21f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be90166ed3be02c13253f54ed2a8fe98a66cea30","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ade92d50aad6799a5a9d7e73cd1604fd0576e656","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99620","url":"https://www.cve.org/CVERecord?id=CVE-2026-99620","licence":"CVE Terms of Use","modified":"2026-11-23T08:05:16.060Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99620","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99620","licence":"Public domain","modified":"2026-11-23T08:18:04.230Z"}],"updatedAt":"2026-11-25T22:59:52.283Z","epss":{"score":0.00211,"percentile":0.11974,"date":"2026-12-01T12:00:22.000Z"}}