# CVE-2022-50035: drm/amdgpu: Fix use-after-free on amdgpu\_bo\_list mutex

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-06-18T11:01:37.123Z
- **Modified:** 2026-08-05T08:57:13.064Z

## Who should check

- Anyone running Linux \>= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, \< 1b38e3b423f0bb41ee6abae5ca9deec1546ba227; \>= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, \< bbca24d0a3c11193bafb9e174f89f52a379006e3
- Anyone running Linux 5.19

## Description

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

drm/amdgpu: Fix use-after-free on amdgpu\_bo\_list mutex

If amdgpu\_cs\_vm\_handling returns r != 0, then it will unlock the
bo\_list\_mutex inside the function amdgpu\_cs\_vm\_handling and again on
amdgpu\_cs\_parser\_fini. This problem results in the following
use-after-free problem:

\[ 220.280990\] ------------\[ cut here \]------------
\[ 220.281000\] refcount\_t: underflow; use-after-free.
\[ 220.281019\] WARNING: CPU: 1 PID: 3746 at lib/refcount.c:28 refcount\_warn\_saturate+0xba/0x110
\[ 220.281029\] ------------\[ cut here \]------------
\[ 220.281415\] CPU: 1 PID: 3746 Comm: chrome:cs0 Tainted: G W L ------- --- 5.20.0-0.rc0.20220812git7ebfc85e2cd7.10.fc38.x86\_64 \#1
\[ 220.281421\] Hardware name: System manufacturer System Product Name/ROG STRIX X570-I GAMING, BIOS 4403 04/27/2022
\[ 220.281426\] RIP: 0010:refcount\_warn\_saturate+0xba/0x110
\[ 220.281431\] Code: 01 01 e8 79 4a 6f 00 0f 0b e9 42 47 a5 00 80 3d de
7e be 01 00 75 85 48 c7 c7 f8 98 8e 98 c6 05 ce 7e be 01 01 e8 56 4a
6f 00 \<0f\> 0b e9 1f 47 a5 00 80 3d b9 7e be 01 00 0f 85 5e ff ff ff 48
c7
\[ 220.281437\] RSP: 0018:ffffb4b0d18d7a80 EFLAGS: 00010282
\[ 220.281443\] RAX: 0000000000000026 RBX: 0000000000000003 RCX: 0000000000000000
\[ 220.281448\] RDX: 0000000000000001 RSI: ffffffff988d06dc RDI: 00000000ffffffff
\[ 220.281452\] RBP: 00000000ffffffff R08: 0000000000000000 R09: ffffb4b0d18d7930
\[ 220.281457\] R10: 0000000000000003 R11: ffffa0672e2fffe8 R12: ffffa058ca360400
\[ 220.281461\] R13: ffffa05846c50a18 R14: 00000000fffffe00 R15: 0000000000000003
\[ 220.281465\] FS: 00007f82683e06c0(0000) GS:ffffa066e2e00000(0000) knlGS:0000000000000000
\[ 220.281470\] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 220.281475\] CR2: 00003590005cc000 CR3: 00000001fca46000 CR4: 0000000000350ee0
\[ 220.281480\] Call Trace:
\[ 220.281485\] \<TASK\>
\[ 220.281490\] amdgpu\_cs\_ioctl+0x4e2/0x2070 \[amdgpu\]
\[ 220.281806\] ? amdgpu\_cs\_find\_mapping+0xe0/0xe0 \[amdgpu\]
\[ 220.282028\] drm\_ioctl\_kernel+0xa4/0x150
\[ 220.282043\] drm\_ioctl+0x21f/0x420
\[ 220.282053\] ? amdgpu\_cs\_find\_mapping+0xe0/0xe0 \[amdgpu\]
\[ 220.282275\] ? lock\_release+0x14f/0x460
\[ 220.282282\] ? \_raw\_spin\_unlock\_irqrestore+0x30/0x60
\[ 220.282290\] ? \_raw\_spin\_unlock\_irqrestore+0x30/0x60
\[ 220.282297\] ? lockdep\_hardirqs\_on+0x7d/0x100
\[ 220.282305\] ? \_raw\_spin\_unlock\_irqrestore+0x40/0x60
\[ 220.282317\] amdgpu\_drm\_ioctl+0x4a/0x80 \[amdgpu\]
\[ 220.282534\] \_\_x64\_sys\_ioctl+0x90/0xd0
\[ 220.282545\] do\_syscall\_64+0x5b/0x80
\[ 220.282551\] ? futex\_wake+0x6c/0x150
\[ 220.282568\] ? lock\_is\_held\_type+0xe8/0x140
\[ 220.282580\] ? do\_syscall\_64+0x67/0x80
\[ 220.282585\] ? lockdep\_hardirqs\_on+0x7d/0x100
\[ 220.282592\] ? do\_syscall\_64+0x67/0x80
\[ 220.282597\] ? do\_syscall\_64+0x67/0x80
\[ 220.282602\] ? lockdep\_hardirqs\_on+0x7d/0x100
\[ 220.282609\] entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[ 220.282616\] RIP: 0033:0x7f8282a4f8bf
\[ 220.282639\] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10
00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00
0f 05 \<89\> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00
00
\[ 220.282644\] RSP: 002b:00007f82683df410 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
\[ 220.282651\] RAX: ffffffffffffffda RBX: 00007f82683df588 RCX: 00007f8282a4f8bf
\[ 220.282655\] RDX: 00007f82683df4d0 RSI: 00000000c0186444 RDI: 0000000000000018
\[ 220.282659\] RBP: 00007f82683df4d0 R08: 00007f82683df5e0 R09: 00007f82683df4b0
\[ 220.282663\] R10: 00001d04000a0600 R11: 0000000000000246 R12: 00000000c0186444
\[ 220.282667\] R13: 0000000000000018 R14: 00007f82683df588 R15: 0000000000000003
\[ 220.282689\] \</TASK\>
\[ 220.282693\] irq event stamp: 6232311
\[ 220.282697\] hardirqs last enabled at (6232319): \[\<ffffffff9718cd7e\>\] \_\_up\_console\_sem+0x5e/0x70
\[ 220.282704\] hardirqs last disabled at (6232326): \[\<ffffffff9718cd63\>\] \_\_up\_console\_sem+0x43/0x70
\[ 220.282709\] softirqs last enabled at (6232072): \[\<ffffffff970ff669\>\] \_\_irq\_exit\_rcu+0xf9/0x170
\[ 220.282716\] softirqs last disabled at (6232061): \[\<ffffffff97
---truncated---

## Affected and fixed versions

- Linux: \>= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, \< 1b38e3b423f0bb41ee6abae5ca9deec1546ba227; \>= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, \< bbca24d0a3c11193bafb9e174f89f52a379006e3 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50035.md
Affected: Linux >= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, < 1b38e3b423f0bb41ee6abae5ca9deec1546ba227; >= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, < bbca24d0a3c11193bafb9e174f89f52a379006e3; Linux 5.19
Fixed in: Linux 1b38e3b423f0bb41ee6abae5ca9deec1546ba227

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-2022-50035 being exploited?

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

### How serious is CVE-2022-50035?

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

### Which versions are affected by CVE-2022-50035?

Linux \>= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, \< 1b38e3b423f0bb41ee6abae5ca9deec1546ba227; \>= 90af0ca047f3049c4b46e902f432ad6ef1e2ded6, \< bbca24d0a3c11193bafb9e174f89f52a379006e3; Linux 5.19.

### Is there a fix for CVE-2022-50035?

Yes. Fixed in Linux 1b38e3b423f0bb41ee6abae5ca9deec1546ba227. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50035?

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/1b38e3b423f0bb41ee6abae5ca9deec1546ba227>
- patch: <https://git.kernel.org/stable/c/bbca24d0a3c11193bafb9e174f89f52a379006e3>

## 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-2022-50035>

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