CVE-2026-99145

drm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change

Published Oct 28, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change

Pinned bos have their pages removed from the shrinker's shrinkable /
purgeable counts on pin, and added back on unpin according to the
bo's purgeable state at that time.

However, xe_bo_set_purgeable_shrinker() unconditionally transfers
pages between the shrinkable and purgeable counts. If the purgeable
state of a pinned bo changes, for example by userspace madvising
DONTNEED on a VMA of a bo that is also pinned as a scanout buffer,
this underflows one count and, after unpin, leaves the other one
permanently inflated.

Only update the purgeable flag for pinned bos, and leave the page
accounting to unpin.

(cherry picked from commit afe6bc012034123fd838328668e609bf57e46bd3)

Analysis

AI-generated

Technical impact

This vulnerability stems from an error in the Linux kernel’s DRM/xe subsystem where pinned buffer objects (bos) have their pages incorrectly transferred between shrinkable and purgeable categories when their purgeable state changes. The logic that updates the count unconditionally underflows the shrinker's purgeable counter and permanently inflates the shrinkable counter once the bos is unpinned. The primary impact is a corruption of kernel memory accounting, which could cause the kernel to misreport free memory, potentially leading to system instability or denial of service. The weakness, an integer underflow, is represented by CWE-193.

Affected Systems

All Linux kernel images that include the DRM/xe driver are affected, specifically those that have not yet incorporated the commit that resolved the issue (afe6bc012034123fd838328668e609bf57e46bd3). In practice, this means any actively maintained kernel version prior to the hotfix commit is vulnerable; newer releases that integrate the patch are not. The vulnerability does not target any specific vendor distribution but applies globally to kernels compiled with the DRM/xe subsystems.

Risk and Exploitability

With a CVSS score of 5.5, the vulnerability is considered moderate severity. The EPSS score is <1%, showing a low probability of exploitation, and it is not listed in the CISA KEV catalog. The potential for a local or privileged attacker to trigger the misuse of shrinker counts exists—especially if the attacker forces a VMA of a pinned bos to receive a MADV_DONTNEED—but requires significant knowledge of the kernel’s internal DRM/xe behavior and the system on which the vulnerable kernel runs. In the absence of a public exploit, the risk remains moderate due to the low probability of successful exploitation and the lack of known active attacks, though the impact on kernel memory accounting warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes commit afe6bc012034123fd838328668e609bf57e46bd3 to eliminate the count underflow bug
  • If an immediate kernel upgrade is not possible, avoid using MADV_DONTNEED on virtual memory areas associated with pinned buffer objects or disable scanout buffers that remain pinned while purged
  • Monitor kernel memory usage and shrinker counters for anomalies to detect residual accounting inconsistencies

Generated by OpenCVE AI on October 30, 2026 at 02:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-191
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-193
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change Pinned bos have their pages removed from the shrinker's shrinkable / purgeable counts on pin, and added back on unpin according to the bo's purgeable state at that time. However, xe_bo_set_purgeable_shrinker() unconditionally transfers pages between the shrinkable and purgeable counts. If the purgeable state of a pinned bo changes, for example by userspace madvising DONTNEED on a VMA of a bo that is also pinned as a scanout buffer, this underflows one count and, after unpin, leaves the other one permanently inflated. Only update the purgeable flag for pinned bos, and leave the page accounting to unpin. (cherry picked from commit afe6bc012034123fd838328668e609bf57e46bd3)
Title drm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

  • CWE-193

    Off-by-one Error

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 28, 2026, 10:35 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 28, 2026, 11:17 AM
Modified
Oct 28, 2026, 11:17 AM
Severity
Moderate
Public date
Oct 28, 2026, 10:35 AM