{"id":"CVE-2026-99145","aliases":["CVE-2026-99145"],"related":[],"kind":"vulnerability","state":"published","title":"drm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change\n\nPinned bos have their pages removed from the shrinker's shrinkable /\npurgeable counts on pin, and added back on unpin according to the\nbo's purgeable state at that time.\n\nHowever, xe_bo_set_purgeable_shrinker() unconditionally transfers\npages between the shrinkable and purgeable counts. If the purgeable\nstate of a pinned bo changes, for example by userspace madvising\nDONTNEED on a VMA of a bo that is also pinned as a scanout buffer,\nthis underflows one count and, after unpin, leaves the other one\npermanently inflated.\n\nOnly update the purgeable flag for pinned bos, and leave the page\naccounting to unpin.\n\n(cherry picked from commit afe6bc012034123fd838328668e609bf57e46bd3)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change\n\nPinned bos have their pages removed from the shrinker's shrinkable /\npurgeable counts on pin, and added back on unpin according to the\nbo's purgeable state at that time.\n\nHowever, xe_bo_set_purgeable_shrinker() unconditionally transfers\npages between the shrinkable and purgeable counts. If the purgeable\nstate of a pinned bo changes, for example by userspace madvising\nDONTNEED on a VMA of a bo that is also pinned as a scanout buffer,\nthis underflows one count and, after unpin, leaves the other one\npermanently inflated.\n\nOnly update the purgeable flag for pinned bos, and leave the page\naccounting to unpin.\n\n(cherry picked from commit afe6bc012034123fd838328668e609bf57e46bd3)","source":"cvelist"}],"published":"2026-10-28T10:35:02.038Z","modified":"2026-10-28T11:17:34.547Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"536a2ead3a8f2048643da3e8340a4d73fdf71903","fixed":"135e998dd1e66b8854db7bd356b6563baf8b9d51","status":"affected"},{"type":"git","introduced":"536a2ead3a8f2048643da3e8340a4d73fdf71903","fixed":"ffbfd3f98f4393e91dffce3a46ccb7cf5329cf2f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.2.13","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/135e998dd1e66b8854db7bd356b6563baf8b9d51","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ffbfd3f98f4393e91dffce3a46ccb7cf5329cf2f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99145","url":"https://www.cve.org/CVERecord?id=CVE-2026-99145","licence":"CVE Terms of Use","modified":"2026-10-28T10:35:02.038Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99145","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99145","licence":"Public domain","modified":"2026-10-28T11:17:34.547Z"}],"updatedAt":"2026-11-25T22:59:47.577Z","epss":{"score":0.00163,"percentile":0.05707,"date":"2026-12-02T12:00:21.000Z"}}