# CVE-2022-48634: drm/gma500: Fix BUG: sleeping function called from invalid context errors

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

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **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-667
- **Published:** 2024-04-28T12:59:19.749Z
- **Modified:** 2026-06-17T05:15:46.660Z

## Who should check

- Anyone running Linux \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< c5812807e416618477d1bb0049727ce8bb8292fd; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< e5ae504c8623476e13032670f1a6d6344d53ec9b; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< a6ed7624bf4d0a32f2631e74828bca7b7bf15afd; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< 63e37a79f7bd939314997e29c2f5a9f0ef184281
- Anyone running Linux 5.6

## Description

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

drm/gma500: Fix BUG: sleeping function called from invalid context errors

gma\_crtc\_page\_flip() was holding the event\_lock spinlock while calling
crtc\_funcs-\>mode\_set\_base() which takes ww\_mutex.

The only reason to hold event\_lock is to clear gma\_crtc-\>page\_flip\_event
on mode\_set\_base() errors.

Instead unlock it after setting gma\_crtc-\>page\_flip\_event and on
errors re-take the lock and clear gma\_crtc-\>page\_flip\_event it
it is still set.

This fixes the following WARN/stacktrace:

\[  512.122953\] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:870
\[  512.123004\] in\_atomic(): 1, irqs\_disabled(): 1, non\_block: 0, pid: 1253, name: gnome-shell
\[  512.123031\] preempt\_count: 1, expected: 0
\[  512.123048\] RCU nest depth: 0, expected: 0
\[  512.123066\] INFO: lockdep is turned off.
\[  512.123080\] irq event stamp: 0
\[  512.123094\] hardirqs last  enabled at (0): \[\<0000000000000000\>\] 0x0
\[  512.123134\] hardirqs last disabled at (0): \[\<ffffffff8d0ec28c\>\] copy\_process+0x9fc/0x1de0
\[  512.123176\] softirqs last  enabled at (0): \[\<ffffffff8d0ec28c\>\] copy\_process+0x9fc/0x1de0
\[  512.123207\] softirqs last disabled at (0): \[\<0000000000000000\>\] 0x0
\[  512.123233\] Preemption disabled at:
\[  512.123241\] \[\<0000000000000000\>\] 0x0
\[  512.123275\] CPU: 3 PID: 1253 Comm: gnome-shell Tainted: G        W         5.19.0+ \#1
\[  512.123304\] Hardware name: Packard Bell dot s/SJE01\_CT, BIOS V1.10 07/23/2013
\[  512.123323\] Call Trace:
\[  512.123346\]  \<TASK\>
\[  512.123370\]  dump\_stack\_lvl+0x5b/0x77
\[  512.123412\]  \_\_might\_resched.cold+0xff/0x13a
\[  512.123458\]  ww\_mutex\_lock+0x1e/0xa0
\[  512.123495\]  psb\_gem\_pin+0x2c/0x150 \[gma500\_gfx\]
\[  512.123601\]  gma\_pipe\_set\_base+0x76/0x240 \[gma500\_gfx\]
\[  512.123708\]  gma\_crtc\_page\_flip+0x95/0x130 \[gma500\_gfx\]
\[  512.123808\]  drm\_mode\_page\_flip\_ioctl+0x57d/0x5d0
\[  512.123897\]  ? drm\_mode\_cursor2\_ioctl+0x10/0x10
\[  512.123936\]  drm\_ioctl\_kernel+0xa1/0x150
\[  512.123984\]  drm\_ioctl+0x21f/0x420
\[  512.124025\]  ? drm\_mode\_cursor2\_ioctl+0x10/0x10
\[  512.124070\]  ? rcu\_read\_lock\_bh\_held+0xb/0x60
\[  512.124104\]  ? lock\_release+0x1ef/0x2d0
\[  512.124161\]  \_\_x64\_sys\_ioctl+0x8d/0xd0
\[  512.124203\]  do\_syscall\_64+0x58/0x80
\[  512.124239\]  ? do\_syscall\_64+0x67/0x80
\[  512.124267\]  ? trace\_hardirqs\_on\_prepare+0x55/0xe0
\[  512.124300\]  ? do\_syscall\_64+0x67/0x80
\[  512.124340\]  ? rcu\_read\_lock\_sched\_held+0x10/0x80
\[  512.124377\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[  512.124411\] RIP: 0033:0x7fcc4a70740f
\[  512.124442\] 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
\[  512.124470\] RSP: 002b:00007ffda73f5390 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
\[  512.124503\] RAX: ffffffffffffffda RBX: 000055cc9e474500 RCX: 00007fcc4a70740f
\[  512.124524\] RDX: 00007ffda73f5420 RSI: 00000000c01864b0 RDI: 0000000000000009
\[  512.124544\] RBP: 00007ffda73f5420 R08: 000055cc9c0b0cb0 R09: 0000000000000034
\[  512.124564\] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c01864b0
\[  512.124584\] R13: 0000000000000009 R14: 000055cc9df484d0 R15: 000055cc9af5d0c0
\[  512.124647\]  \</TASK\>

## Affected and fixed versions

- Linux: \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< c5812807e416618477d1bb0049727ce8bb8292fd; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< e5ae504c8623476e13032670f1a6d6344d53ec9b; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< a6ed7624bf4d0a32f2631e74828bca7b7bf15afd; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< 63e37a79f7bd939314997e29c2f5a9f0ef184281 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 63e37a79f7bd939314997e29c2f5a9f0ef184281 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48634.md
Affected: Linux >= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, < c5812807e416618477d1bb0049727ce8bb8292fd; >= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, < e5ae504c8623476e13032670f1a6d6344d53ec9b; >= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, < a6ed7624bf4d0a32f2631e74828bca7b7bf15afd; >= f76c22ce8fbbd03394eb9e2…
Fixed in: Linux 63e37a79f7bd939314997e29c2f5a9f0ef184281

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

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

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

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

Linux \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< c5812807e416618477d1bb0049727ce8bb8292fd; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< e5ae504c8623476e13032670f1a6d6344d53ec9b; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< a6ed7624bf4d0a32f2631e74828bca7b7bf15afd; \>= f76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c, \< 63e37a79f7bd939314997e29c2f5a9f0ef184281; Linux 5.6.

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

Yes. Fixed in Linux 63e37a79f7bd939314997e29c2f5a9f0ef184281. Upgrade Linux to 63e37a79f7bd939314997e29c2f5a9f0ef184281 or later.

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

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/c5812807e416618477d1bb0049727ce8bb8292fd>
- patch: <https://git.kernel.org/stable/c/e5ae504c8623476e13032670f1a6d6344d53ec9b>
- patch: <https://git.kernel.org/stable/c/a6ed7624bf4d0a32f2631e74828bca7b7bf15afd>
- patch: <https://git.kernel.org/stable/c/63e37a79f7bd939314997e29c2f5a9f0ef184281>

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

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