CVE-2026-52965: drm/ttm: Fix ttm_bo_swapout() infinite LRU walk on swapout failure

Published Jun 24, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/ttm: Fix ttmboswapout() infinite LRU walk on swapout failure

When ttmttswapout() fails, the current code calls ttmresourceaddbulkmove() followed by ttmresourcemovetolrutail() to restore the resource's bulkmove membership.

However, ttmresourcemovetolrutail() places the resource at the tail of the LRU list which, relative to the walk cursor's hitch node (placed immediately after the resource when it was yielded), puts the resource in front of the the hitch. The next listforeachentrycontinue() from the hitch finds the same resource again, causing an infinite loop.

Fix by deferring delbulkmove to the success path only.

On the success path, TTMTTFLAGSWAPPED has just been set by ttmttswapout() but the resource is still tracked in the bulkmove range, so ttmresourcedelbulkmove()'s !ttmresourceunevictable() guard would incorrectly skip the removal. Introduce ttmresourcedelbulkmoveunevictable() which bypasses that guard.

Affected Software

5 affected components
Linux Linux kernel (drm/ttm)
Linux Linux kernel>=6.13<7.0.10
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Defer ttm_resource_del_bulk_move() to the success path only, and use ttm_resource_del_bulk_move_unevictable() when ttm_tt_swapout() fails to restore the resource's bulk_move membership and prevent an infinite LRU walk.

Event History

Jun 24, 2026
CVE Published
via MITRE·04:28 PM
Data Sourced
via MITRE·04:28 PM
Description
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-52965?

CVE-2026-52965 has a risk rating of 17, indicating a significant vulnerability in the Linux kernel.

2

What causes CVE-2026-52965?

CVE-2026-52965 is caused by an infinite LRU walk occurring on swapout failure in the drm/ttm subsystem of the Linux kernel.

3

How do I fix CVE-2026-52965?

To fix CVE-2026-52965, update the Linux kernel to the latest version where this vulnerability has been addressed.

4

Which software is affected by CVE-2026-52965?

CVE-2026-52965 affects the Linux kernel specifically within the drm/ttm subsystem.

5

When was CVE-2026-52965 published?

CVE-2026-52965 was published on June 24, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203