# CVE-2022-50332: video/aperture: Call sysfb\_disable() before removing PCI devices

> 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.19% (percentile 5, 2026-11-26)
- **Published:** 2025-09-15T14:49:42.733Z
- **Modified:** 2026-11-05T20:17:35.447Z

## Who should check

- Anyone running Linux \>= cfecfc98a78d97a49807531b5b224459bda877de, \< 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4
- Anyone running Linux \>= 6.0.3, \< 6.0.6

## Description

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

video/aperture: Call sysfb\_disable() before removing PCI devices

Call sysfb\_disable() from aperture\_remove\_conflicting\_pci\_devices()
before removing PCI devices. Without, simpledrm can still bind to
simple-framebuffer devices after the hardware driver has taken over
the hardware. Both drivers interfere with each other and results are
undefined.

Reported modesetting errors \[1\] are shown below.

---- snap ----
rcu: INFO: rcu\_sched detected expedited stalls on CPUs/tasks: { 13-.... } 7 jiffies s: 165 root: 0x2000/.
rcu: blocking rcu\_node structures (internal RCU debug):
Task dump for CPU 13:
task:X               state:R  running task     stack:    0 pid: 4242 ppid:  4228 flags:0x00000008
Call Trace:
 \<TASK\>
 ? commit\_tail+0xd7/0x130
 ? drm\_atomic\_helper\_commit+0x126/0x150
 ? drm\_atomic\_commit+0xa4/0xe0
 ? drm\_plane\_get\_damage\_clips.cold+0x1c/0x1c
 ? drm\_atomic\_helper\_dirtyfb+0x19e/0x280
 ? drm\_mode\_dirtyfb\_ioctl+0x10f/0x1e0
 ? drm\_mode\_getfb2\_ioctl+0x2d0/0x2d0
 ? drm\_ioctl\_kernel+0xc4/0x150
 ? drm\_ioctl+0x246/0x3f0
 ? drm\_mode\_getfb2\_ioctl+0x2d0/0x2d0
 ? \_\_x64\_sys\_ioctl+0x91/0xd0
 ? do\_syscall\_64+0x60/0xd0
 ? entry\_SYSCALL\_64\_after\_hwframe+0x4b/0xb5
 \</TASK\>
...
rcu: INFO: rcu\_sched detected expedited stalls on CPUs/tasks: { 13-.... } 30 jiffies s: 169 root: 0x2000/.
rcu: blocking rcu\_node structures (internal RCU debug):
Task dump for CPU 13:
task:X               state:R  running task     stack:    0 pid: 4242 ppid:  4228 flags:0x0000400e
Call Trace:
 \<TASK\>
 ? memcpy\_toio+0x76/0xc0
 ? memcpy\_toio+0x1b/0xc0
 ? drm\_fb\_memcpy\_toio+0x76/0xb0
 ? drm\_fb\_blit\_toio+0x75/0x2b0
 ? simpledrm\_simple\_display\_pipe\_update+0x132/0x150
 ? drm\_atomic\_helper\_commit\_planes+0xb6/0x230
 ? drm\_atomic\_helper\_commit\_tail+0x44/0x80
 ? commit\_tail+0xd7/0x130
 ? drm\_atomic\_helper\_commit+0x126/0x150
 ? drm\_atomic\_commit+0xa4/0xe0
 ? drm\_plane\_get\_damage\_clips.cold+0x1c/0x1c
 ? drm\_atomic\_helper\_dirtyfb+0x19e/0x280
 ? drm\_mode\_dirtyfb\_ioctl+0x10f/0x1e0
 ? drm\_mode\_getfb2\_ioctl+0x2d0/0x2d0
 ? drm\_ioctl\_kernel+0xc4/0x150
 ? drm\_ioctl+0x246/0x3f0
 ? drm\_mode\_getfb2\_ioctl+0x2d0/0x2d0
 ? \_\_x64\_sys\_ioctl+0x91/0xd0
 ? do\_syscall\_64+0x60/0xd0
 ? entry\_SYSCALL\_64\_after\_hwframe+0x4b/0xb5
 \</TASK\>

The problem was added by commit 5e0137612430 ("video/aperture: Disable
and unregister sysfb devices via aperture helpers") to v6.0.3 and does
not exist in the mainline branch.

The mainline commit 5e0137612430 ("video/aperture: Disable and
unregister sysfb devices via aperture helpers") has been backported
from v6.0-rc1 to stable v6.0.3 from a larger patch series \[2\] that
reworks fbdev framebuffer ownership. The backport misses a change to
aperture\_remove\_conflicting\_pci\_devices(). Mainline itself is fine,
because the function does not exist there as a result of the patch
series.

Instead of backporting the whole series, fix the additional function.

## Affected and fixed versions

- Linux: \>= cfecfc98a78d97a49807531b5b224459bda877de, \< 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4 (cvelist)
- Linux: \>= 6.0.3, \< 6.0.6 (cvelist)

## Mitigation

- Upgrade Linux to 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4 or later.
- Upgrade Linux to 6.0.6 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-50332. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50332.md
Affected: Linux >= cfecfc98a78d97a49807531b5b224459bda877de, < 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4; Linux >= 6.0.3, < 6.0.6
Fixed in: Linux 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4, Linux 6.0.6

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

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

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

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

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

Linux \>= cfecfc98a78d97a49807531b5b224459bda877de, \< 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4; Linux \>= 6.0.3, \< 6.0.6.

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

Yes. Fixed in Linux 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4, Linux 6.0.6. Upgrade Linux to 25a6688f27ff54f97adf7cce1d7e18c38bf51eb4 or later. Upgrade Linux to 6.0.6 or later.

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

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/25a6688f27ff54f97adf7cce1d7e18c38bf51eb4>

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

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