CVE-2022-50035: drm/amdgpu: Fix use-after-free on amdgpu_bo_list mutex

Published Jun 18, 2025
·
Updated

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

drm/amdgpu: Fix use-after-free on amdgpubolist mutex

If amdgpucsvmhandling returns r != 0, then it will unlock the bolistmutex inside the function amdgpucsvmhandling and again on amdgpucsparserfini. This problem results in the following use-after-free problem:

[ 220.280990] ------------[ cut here ]------------ [ 220.281000] refcountt: underflow; use-after-free. [ 220.281019] WARNING: CPU: 1 PID: 3746 at lib/refcount.c:28 refcountwarnsaturate+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.x8664 #1 [ 220.281421] Hardware name: System manufacturer System Product Name/ROG STRIX X570-I GAMING, BIOS 4403 04/27/2022 [ 220.281426] RIP: 0010:refcountwarnsaturate+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] amdgpucsioctl+0x4e2/0x2070 [amdgpu] [ 220.281806] ? amdgpucsfindmapping+0xe0/0xe0 [amdgpu] [ 220.282028] drmioctlkernel+0xa4/0x150 [ 220.282043] drmioctl+0x21f/0x420 [ 220.282053] ? amdgpucsfindmapping+0xe0/0xe0 [amdgpu] [ 220.282275] ? lockrelease+0x14f/0x460 [ 220.282282] ? rawspinunlockirqrestore+0x30/0x60 [ 220.282290] ? rawspinunlockirqrestore+0x30/0x60 [ 220.282297] ? lockdephardirqson+0x7d/0x100 [ 220.282305] ? rawspinunlockirqrestore+0x40/0x60 [ 220.282317] amdgpudrmioctl+0x4a/0x80 [amdgpu] [ 220.282534] x64sysioctl+0x90/0xd0 [ 220.282545] dosyscall64+0x5b/0x80 [ 220.282551] ? futexwake+0x6c/0x150 [ 220.282568] ? lockisheldtype+0xe8/0x140 [ 220.282580] ? dosyscall64+0x67/0x80 [ 220.282585] ? lockdephardirqson+0x7d/0x100 [ 220.282592] ? dosyscall64+0x67/0x80 [ 220.282597] ? dosyscall64+0x67/0x80 [ 220.282602] ? lockdephardirqson+0x7d/0x100 [ 220.282609] entrySYSCALL64afterhwframe+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 ORIGRAX: 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>] upconsolesem+0x5e/0x70 [ 220.282704] hardirqs last disabled at (6232326): [<ffffffff9718cd63>] upconsolesem+0x43/0x70 [ 220.282709] softirqs last enabled at (6232072): [<ffffffff970ff669>] irqexitrcu+0xf9/0x170 [ 220.282716] softirqs last disabled at (6232061): [<ffffffff97 ---truncated---

Affected Software

9 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.19.1<5.19.4
Linux Linux kernel=5.19
Linux Linux kernel=5.19-rc8
Linux Linux kernel=6.0-rc1
debian/linux<6.0.2-1
6.0.2-1
debian/linux<6.0.2-1
6.0.2-1
debian/linux<6.0.2-1
6.0.2-1
debian/linux
6.0.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.0.2-1

Event History

Jun 18, 2025
CVE Published
via MITRE·11:01 AM
Data Sourced
via MITRE·11:01 AM
Description
Data Sourced
via NVD·11:15 AM
Description
Data Sourced
via OSV·11:15 AM
DescriptionSeverityAffected Software
Data Sourced
via Red Hat·12:09 PM
DescriptionSeverityAffected Software
Nov 13, 2025
Data Sourced
via NVD·06:42 PM
RemedySeverityWeaknessAffected Software
Aug 4, 2026
Data Sourced
via MITRE·09:07 AM
Severity
Updated
via NVD·10:18 AM
Severity

Frequently Asked Questions

1

What is the severity of CVE-2022-50035?

CVE-2022-50035 has been classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2022-50035?

To fix CVE-2022-50035, update to the latest version of the Linux kernel where this vulnerability has been patched.

3

What is the impact of CVE-2022-50035?

The impact of CVE-2022-50035 includes potential denial of service due to a use-after-free vulnerability affecting the amdgpu driver functions.

4

Which versions of the Linux kernel are affected by CVE-2022-50035?

CVE-2022-50035 affects various versions of the Linux kernel prior to the patch being applied.

5

Is CVE-2022-50035 related to graphics processing?

Yes, CVE-2022-50035 involves the amdgpu driver which is crucial for AMD graphics processing in the Linux kernel.

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