# CVE-2022-50260: drm/msm: Make .remove and .shutdown HW shutdown consistent

> 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, NVD) `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)
- **Published:** 2025-09-15T14:02:50.710Z
- **Modified:** 2026-06-17T05:23:05.937Z

## Who should check

- Anyone running Linux \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 26f9a766f87b33c50ed400a9500cc1dc9aced953; \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 0e6649a2e31ac157c711d583ec8f5ec59da5de0e; \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 0a58d2ae572adaec8d046f8d35b40c2c32ac7468; 3d516e369e3a563e7da39c72b06d78c7f1b09b1e; 8bc5c9ba5a1d67aaf6957199b2ab8a24402741a9; 19583b280801b6ba4a36172113db42413860d1c4; 56ed34ea6cd73c2fd5384d03a9034e6f229a390a; \>= 4.14.197, \< 4.15; \>= 4.19.144, \< 4.20; \>= 5.4.64, \< 5.5; …
- Anyone running Linux 5.9

## Description

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

drm/msm: Make .remove and .shutdown HW shutdown consistent

Drivers' .remove and .shutdown callbacks are executed on different code
paths. The former is called when a device is removed from the bus, while
the latter is called at system shutdown time to quiesce the device.

This means that some overlap exists between the two, because both have to
take care of properly shutting down the hardware. But currently the logic
used in these two callbacks isn't consistent in msm drivers, which could
lead to kernel panic.

For example, on .remove the component is deleted and its .unbind callback
leads to the hardware being shutdown but only if the DRM device has been
marked as registered.

That check doesn't exist in the .shutdown logic and this can lead to the
driver calling drm\_atomic\_helper\_shutdown() for a DRM device that hasn't
been properly initialized.

A situation like this can happen if drivers for expected sub-devices fail
to probe, since the .bind callback will never be executed. If that is the
case, drm\_atomic\_helper\_shutdown() will attempt to take mutexes that are
only initialized if drm\_mode\_config\_init() is called during a device bind.

This bug was attempted to be fixed in commit 623f279c7781 ("drm/msm: fix
shutdown hook in case GPU components failed to bind"), but unfortunately
it still happens in some cases as the one mentioned above, i.e:

  systemd-shutdown\[1\]: Powering off.
  kvm: exiting hardware virtualization
  platform wifi-firmware.0: Removing from iommu group 12
  platform video-firmware.0: Removing from iommu group 10
  ------------\[ cut here \]------------
  WARNING: CPU: 6 PID: 1 at drivers/gpu/drm/drm\_modeset\_lock.c:317 drm\_modeset\_lock\_all\_ctx+0x3c4/0x3d0
  ...
  Hardware name: Google CoachZ (rev3+) (DT)
  pstate: a0400009 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
  pc : drm\_modeset\_lock\_all\_ctx+0x3c4/0x3d0
  lr : drm\_modeset\_lock\_all\_ctx+0x48/0x3d0
  sp : ffff80000805bb80
  x29: ffff80000805bb80 x28: ffff327c00128000 x27: 0000000000000000
  x26: 0000000000000000 x25: 0000000000000001 x24: ffffc95d820ec030
  x23: ffff327c00bbd090 x22: ffffc95d8215eca0 x21: ffff327c039c5800
  x20: ffff327c039c5988 x19: ffff80000805bbe8 x18: 0000000000000034
  x17: 000000040044ffff x16: ffffc95d80cac920 x15: 0000000000000000
  x14: 0000000000000315 x13: 0000000000000315 x12: 0000000000000000
  x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
  x8 : ffff80000805bc28 x7 : 0000000000000000 x6 : 0000000000000000
  x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
  x2 : ffff327c00128000 x1 : 0000000000000000 x0 : ffff327c039c59b0
  Call trace:
   drm\_modeset\_lock\_all\_ctx+0x3c4/0x3d0
   drm\_atomic\_helper\_shutdown+0x70/0x134
   msm\_drv\_shutdown+0x30/0x40
   platform\_shutdown+0x28/0x40
   device\_shutdown+0x148/0x350
   kernel\_power\_off+0x38/0x80
   \_\_do\_sys\_reboot+0x288/0x2c0
   \_\_arm64\_sys\_reboot+0x28/0x34
   invoke\_syscall+0x48/0x114
   el0\_svc\_common.constprop.0+0x44/0xec
   do\_el0\_svc+0x2c/0xc0
   el0\_svc+0x2c/0x84
   el0t\_64\_sync\_handler+0x11c/0x150
   el0t\_64\_sync+0x18c/0x190
  ---\[ end trace 0000000000000000 \]---
  Unable to handle kernel NULL pointer dereference at virtual address 0000000000000018
  Mem abort info:
    ESR = 0x0000000096000004
    EC = 0x25: DABT (current EL), IL = 32 bits
    SET = 0, FnV = 0
    EA = 0, S1PTW = 0
    FSC = 0x04: level 0 translation fault
  Data abort info:
    ISV = 0, ISS = 0x00000004
    CM = 0, WnR = 0
  user pgtable: 4k pages, 48-bit VAs, pgdp=000000010eab1000
  \[0000000000000018\] pgd=0000000000000000, p4d=0000000000000000
  Internal error: Oops: 96000004 \[\#1\] PREEMPT SMP
  ...
  Hardware name: Google CoachZ (rev3+) (DT)
  pstate: a0400009 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
  pc : ww\_mutex\_lock+0x28/0x32c
  lr : drm\_modeset\_lock\_all\_ctx+0x1b0/0x3d0
  sp : ffff80000805bb50
  x29: ffff80000805bb50 x28: ffff327c00128000 x27: 0000000000000000
  x26: 00000
---truncated---

## Affected and fixed versions

- Linux: \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 26f9a766f87b33c50ed400a9500cc1dc9aced953; \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 0e6649a2e31ac157c711d583ec8f5ec59da5de0e; \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 0a58d2ae572adaec8d046f8d35b40c2c32ac7468; 3d516e369e3a563e7da39c72b06d78c7f1b09b1e; 8bc5c9ba5a1d67aaf6957199b2ab8a24402741a9; 19583b280801b6ba4a36172113db42413860d1c4; 56ed34ea6cd73c2fd5384d03a9034e6f229a390a; \>= 4.14.197, \< 4.15; \>= 4.19.144, \< 4.20; \>= 5.4.64, \< 5.5; … (cvelist)
- Linux: 5.9 (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-50260. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50260.md
Affected: Linux >= 9d5cbf5fe46e350715389d89d0c350d83289a102, < 26f9a766f87b33c50ed400a9500cc1dc9aced953; >= 9d5cbf5fe46e350715389d89d0c350d83289a102, < 0e6649a2e31ac157c711d583ec8f5ec59da5de0e; >= 9d5cbf5fe46e350715389d89d0c350d83289a102, < 0a58d2ae572adaec8d046f8d35b40c2c32ac7468; 3d516e369e3a563e7da39c72b0…
Fixed in: Linux 26f9a766f87b33c50ed400a9500cc1dc9aced953, Linux 0e6649a2e31ac157c711d583ec8f5ec59da5de0e, Linux 0a58d2ae572adaec8d046f8d35b40c2c32ac7468, Linux 4.15, Linux 4.20, Linux 5.5

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-50260 being exploited?

There is no confirmed exploitation: CVE-2022-50260 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-2022-50260?

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

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

Linux \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 26f9a766f87b33c50ed400a9500cc1dc9aced953; \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 0e6649a2e31ac157c711d583ec8f5ec59da5de0e; \>= 9d5cbf5fe46e350715389d89d0c350d83289a102, \< 0a58d2ae572adaec8d046f8d35b40c2c32ac7468; 3d516e369e3a563e7da39c72b06d78c7f1b09b1e; 8bc5c9ba5a1d67aaf6957199b2ab8a24402741a9; 19583b280801b6ba4a36172113db42413860d1c4; 56ed34ea6cd73c2fd5384d03a9034e6f229a390a; \>= 4.14.197, \< 4.15; \>= 4.19.144, \< 4.20; \>= 5.4.64, \< 5.5; …; Linux 5.9.

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

Yes. Fixed in Linux 26f9a766f87b33c50ed400a9500cc1dc9aced953, Linux 0e6649a2e31ac157c711d583ec8f5ec59da5de0e, Linux 0a58d2ae572adaec8d046f8d35b40c2c32ac7468, Linux 4.15, Linux 4.20, Linux 5.5. No fix listed yet: follow the vendor advisory.

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

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/26f9a766f87b33c50ed400a9500cc1dc9aced953>
- patch: <https://git.kernel.org/stable/c/0e6649a2e31ac157c711d583ec8f5ec59da5de0e>
- patch: <https://git.kernel.org/stable/c/0a58d2ae572adaec8d046f8d35b40c2c32ac7468>

## 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-50260>

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