# CVE-2023-53352: drm/ttm: check null pointer before accessing when swapping

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-17T14:56:42.698Z
- **Modified:** 2026-06-17T06:44:58.690Z

## Who should check

- Anyone running Linux \>= 8996b13051f0c211aaaf243dfd270003f1b67431, \< d39971d902d067b4dc366981b75b17c8c57ed5d1; \>= da60170558b956c1b45dee1c4423da2425037426, \< 8089eb93d6787dbf348863e935698b4610d90321; \>= 17e188e0feb008bab5f4b083083dff7cdc633ca1, \< 1fdd16d89c01336d9a942b5f03673c17d401da87; \>= c24d051e6b48015e32f1361cdf67e1784dd14a9f, \< 49b3b979e79faef129605018ad82aa0f2258f2f7; \>= a2848d08742c8e8494675892c02c0d22acbe3cf8, \< 2dedcf414bb01b8d966eb445db1d181d92304fb2
- Anyone running Linux \>= 5.15.124, \< 5.15.126; \>= 6.1.43, \< 6.1.45; \>= 6.4.8, \< 6.4.10

## Description

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

drm/ttm: check null pointer before accessing when swapping

Add a check to avoid null pointer dereference as below:

\[   90.002283\] general protection fault, probably for non-canonical
address 0xdffffc0000000000: 0000 \[\#1\] PREEMPT SMP KASAN NOPTI
\[   90.002292\] KASAN: null-ptr-deref in range
\[0x0000000000000000-0x0000000000000007\]
\[   90.002346\]  ? exc\_general\_protection+0x159/0x240
\[   90.002352\]  ? asm\_exc\_general\_protection+0x26/0x30
\[   90.002357\]  ? ttm\_bo\_evict\_swapout\_allowable+0x322/0x5e0 \[ttm\]
\[   90.002365\]  ? ttm\_bo\_evict\_swapout\_allowable+0x42e/0x5e0 \[ttm\]
\[   90.002373\]  ttm\_bo\_swapout+0x134/0x7f0 \[ttm\]
\[   90.002383\]  ? \_\_pfx\_ttm\_bo\_swapout+0x10/0x10 \[ttm\]
\[   90.002391\]  ? lock\_acquire+0x44d/0x4f0
\[   90.002398\]  ? ttm\_device\_swapout+0xa5/0x260 \[ttm\]
\[   90.002412\]  ? lock\_acquired+0x355/0xa00
\[   90.002416\]  ? do\_raw\_spin\_trylock+0xb6/0x190
\[   90.002421\]  ? \_\_pfx\_lock\_acquired+0x10/0x10
\[   90.002426\]  ? ttm\_global\_swapout+0x25/0x210 \[ttm\]
\[   90.002442\]  ttm\_device\_swapout+0x198/0x260 \[ttm\]
\[   90.002456\]  ? \_\_pfx\_ttm\_device\_swapout+0x10/0x10 \[ttm\]
\[   90.002472\]  ttm\_global\_swapout+0x75/0x210 \[ttm\]
\[   90.002486\]  ttm\_tt\_populate+0x187/0x3f0 \[ttm\]
\[   90.002501\]  ttm\_bo\_handle\_move\_mem+0x437/0x590 \[ttm\]
\[   90.002517\]  ttm\_bo\_validate+0x275/0x430 \[ttm\]
\[   90.002530\]  ? \_\_pfx\_ttm\_bo\_validate+0x10/0x10 \[ttm\]
\[   90.002544\]  ? kasan\_save\_stack+0x33/0x60
\[   90.002550\]  ? kasan\_set\_track+0x25/0x30
\[   90.002554\]  ? \_\_kasan\_kmalloc+0x8f/0xa0
\[   90.002558\]  ? amdgpu\_gtt\_mgr\_new+0x81/0x420 \[amdgpu\]
\[   90.003023\]  ? ttm\_resource\_alloc+0xf6/0x220 \[ttm\]
\[   90.003038\]  amdgpu\_bo\_pin\_restricted+0x2dd/0x8b0 \[amdgpu\]
\[   90.003210\]  ? \_\_x64\_sys\_ioctl+0x131/0x1a0
\[   90.003210\]  ? do\_syscall\_64+0x60/0x90

## Affected and fixed versions

- Linux: \>= 8996b13051f0c211aaaf243dfd270003f1b67431, \< d39971d902d067b4dc366981b75b17c8c57ed5d1; \>= da60170558b956c1b45dee1c4423da2425037426, \< 8089eb93d6787dbf348863e935698b4610d90321; \>= 17e188e0feb008bab5f4b083083dff7cdc633ca1, \< 1fdd16d89c01336d9a942b5f03673c17d401da87; \>= c24d051e6b48015e32f1361cdf67e1784dd14a9f, \< 49b3b979e79faef129605018ad82aa0f2258f2f7; \>= a2848d08742c8e8494675892c02c0d22acbe3cf8, \< 2dedcf414bb01b8d966eb445db1d181d92304fb2 (cvelist)
- Linux: \>= 5.15.124, \< 5.15.126; \>= 6.1.43, \< 6.1.45; \>= 6.4.8, \< 6.4.10 (cvelist)

## Mitigation

- Upgrade Linux to 2dedcf414bb01b8d966eb445db1d181d92304fb2 or later.
- Upgrade Linux to 6.4.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53352. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53352.md
Affected: Linux >= 8996b13051f0c211aaaf243dfd270003f1b67431, < d39971d902d067b4dc366981b75b17c8c57ed5d1; >= da60170558b956c1b45dee1c4423da2425037426, < 8089eb93d6787dbf348863e935698b4610d90321; >= 17e188e0feb008bab5f4b083083dff7cdc633ca1, < 1fdd16d89c01336d9a942b5f03673c17d401da87; >= c24d051e6b48015e32f1361…
Fixed in: Linux 8089eb93d6787dbf348863e935698b4610d90321, Linux 1fdd16d89c01336d9a942b5f03673c17d401da87, Linux 49b3b979e79faef129605018ad82aa0f2258f2f7, Linux 2dedcf414bb01b8d966eb445db1d181d92304fb2, Linux 5.15.126, Linux 6.1.45, Linux 6.4.10

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53352 being exploited?

There is no confirmed exploitation: CVE-2023-53352 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53352?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53352?

Linux \>= 8996b13051f0c211aaaf243dfd270003f1b67431, \< d39971d902d067b4dc366981b75b17c8c57ed5d1; \>= da60170558b956c1b45dee1c4423da2425037426, \< 8089eb93d6787dbf348863e935698b4610d90321; \>= 17e188e0feb008bab5f4b083083dff7cdc633ca1, \< 1fdd16d89c01336d9a942b5f03673c17d401da87; \>= c24d051e6b48015e32f1361cdf67e1784dd14a9f, \< 49b3b979e79faef129605018ad82aa0f2258f2f7; \>= a2848d08742c8e8494675892c02c0d22acbe3cf8, \< 2dedcf414bb01b8d966eb445db1d181d92304fb2; Linux \>= 5.15.124, \< 5.15.126; \>= 6.1.43, \< 6.1.45; \>= 6.4.8, \< 6.4.10.

### Is there a fix for CVE-2023-53352?

Yes. Fixed in Linux 8089eb93d6787dbf348863e935698b4610d90321, Linux 1fdd16d89c01336d9a942b5f03673c17d401da87, Linux 49b3b979e79faef129605018ad82aa0f2258f2f7, Linux 2dedcf414bb01b8d966eb445db1d181d92304fb2, Linux 5.15.126, Linux 6.1.45, Linux 6.4.10. Upgrade Linux to 2dedcf414bb01b8d966eb445db1d181d92304fb2 or later. Upgrade Linux to 6.4.10 or later.

### How do I check if I'm affected by CVE-2023-53352?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d39971d902d067b4dc366981b75b17c8c57ed5d1>
- patch: <https://git.kernel.org/stable/c/8089eb93d6787dbf348863e935698b4610d90321>
- patch: <https://git.kernel.org/stable/c/1fdd16d89c01336d9a942b5f03673c17d401da87>
- patch: <https://git.kernel.org/stable/c/49b3b979e79faef129605018ad82aa0f2258f2f7>
- patch: <https://git.kernel.org/stable/c/2dedcf414bb01b8d966eb445db1d181d92304fb2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53352>

HTML: <https://flawdb.com/CVE-2023-53352> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53352>
