# CVE-2022-49070: fbdev: Fix unregistering of framebuffers without device

> 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, CNA) `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.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-26T01:54:36.360Z
- **Modified:** 2026-06-17T05:16:59.840Z

## Who should check

- Anyone running Linux \>= c894ac44786cfed383a6c6b20c1bfb12eb96018a, \< 2388f826cdc9af2651991adc0feb79de9bdf2232; \>= 9565a3b5203a4d57acbc1d0e981c6df71864b4ab, \< de33df481545974ba47c46f05194e769e4307843; \>= 4d695d7c276f15adb1d2b64c584c3cf8f4f9e9ce, \< feed87ff122b1640c221d4dd559442ab2cd50bb1; \>= 27599aacbaefcbf2af7b06b0029459bbf682000d, \< 0f525289ff0ddeb380813bd81e0f9bdaaa1c9078
- Anyone running Linux \>= 5.15.33, \< 5.15.34; \>= 5.16.19, \< 5.16.20; \>= 5.17.2, \< 5.17.3

## Description

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

fbdev: Fix unregistering of framebuffers without device

OF framebuffers do not have an underlying device in the Linux
device hierarchy. Do a regular unregister call instead of hot
unplugging such a non-existing device. Fixes a NULL dereference.
An example error message on ppc64le is shown below.

  BUG: Kernel NULL pointer dereference on read at 0x00000060
  Faulting instruction address: 0xc00000000080dfa4
  Oops: Kernel access of bad area, sig: 11 \[\#1\]
  LE PAGE\_SIZE=64K MMU=Hash SMP NR\_CPUS=2048 NUMA pSeries
  \[...\]
  CPU: 2 PID: 139 Comm: systemd-udevd Not tainted 5.17.0-ae085d7f9365 \#1
  NIP:  c00000000080dfa4 LR: c00000000080df9c CTR: c000000000797430
  REGS: c000000004132fe0 TRAP: 0300   Not tainted  (5.17.0-ae085d7f9365)
  MSR:  8000000002009033 \<SF,VEC,EE,ME,IR,DR,RI,LE\>  CR: 28228282  XER: 20000000
  CFAR: c00000000000c80c DAR: 0000000000000060 DSISR: 40000000 IRQMASK: 0
  GPR00: c00000000080df9c c000000004133280 c00000000169d200 0000000000000029
  GPR04: 00000000ffffefff c000000004132f90 c000000004132f88 0000000000000000
  GPR08: c0000000015658f8 c0000000015cd200 c0000000014f57d0 0000000048228283
  GPR12: 0000000000000000 c00000003fffe300 0000000020000000 0000000000000000
  GPR16: 0000000000000000 0000000113fc4a40 0000000000000005 0000000113fcfb80
  GPR20: 000001000f7283b0 0000000000000000 c000000000e4a588 c000000000e4a5b0
  GPR24: 0000000000000001 00000000000a0000 c008000000db0168 c0000000021f6ec0
  GPR28: c0000000016d65a8 c000000004b36460 0000000000000000 c0000000016d64b0
  NIP \[c00000000080dfa4\] do\_remove\_conflicting\_framebuffers+0x184/0x1d0
  \[c000000004133280\] \[c00000000080df9c\] do\_remove\_conflicting\_framebuffers+0x17c/0x1d0 (unreliable)
  \[c000000004133350\] \[c00000000080e4d0\] remove\_conflicting\_framebuffers+0x60/0x150
  \[c0000000041333a0\] \[c00000000080e6f4\] remove\_conflicting\_pci\_framebuffers+0x134/0x1b0
  \[c000000004133450\] \[c008000000e70438\] drm\_aperture\_remove\_conflicting\_pci\_framebuffers+0x90/0x100 \[drm\]
  \[c000000004133490\] \[c008000000da0ce4\] bochs\_pci\_probe+0x6c/0xa64 \[bochs\]
  \[...\]
  \[c000000004133db0\] \[c00000000002aaa0\] system\_call\_exception+0x170/0x2d0
  \[c000000004133e10\] \[c00000000000c3cc\] system\_call\_common+0xec/0x250

The bug \[1\] was introduced by commit 27599aacbaef ("fbdev: Hot-unplug
firmware fb devices on forced removal"). Most firmware framebuffers
have an underlying platform device, which can be hot-unplugged
before loading the native graphics driver. OF framebuffers do not
(yet) have that device. Fix the code by unregistering the framebuffer
as before without a hot unplug.

Tested with 5.17 on qemu ppc64le emulation.

## Affected and fixed versions

- Linux: \>= c894ac44786cfed383a6c6b20c1bfb12eb96018a, \< 2388f826cdc9af2651991adc0feb79de9bdf2232; \>= 9565a3b5203a4d57acbc1d0e981c6df71864b4ab, \< de33df481545974ba47c46f05194e769e4307843; \>= 4d695d7c276f15adb1d2b64c584c3cf8f4f9e9ce, \< feed87ff122b1640c221d4dd559442ab2cd50bb1; \>= 27599aacbaefcbf2af7b06b0029459bbf682000d, \< 0f525289ff0ddeb380813bd81e0f9bdaaa1c9078 (cvelist)
- Linux: \>= 5.15.33, \< 5.15.34; \>= 5.16.19, \< 5.16.20; \>= 5.17.2, \< 5.17.3 (cvelist)

## Mitigation

- Upgrade Linux to 0f525289ff0ddeb380813bd81e0f9bdaaa1c9078 or later.
- Upgrade Linux to 5.17.3 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-49070. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49070.md
Affected: Linux >= c894ac44786cfed383a6c6b20c1bfb12eb96018a, < 2388f826cdc9af2651991adc0feb79de9bdf2232; >= 9565a3b5203a4d57acbc1d0e981c6df71864b4ab, < de33df481545974ba47c46f05194e769e4307843; >= 4d695d7c276f15adb1d2b64c584c3cf8f4f9e9ce, < feed87ff122b1640c221d4dd559442ab2cd50bb1; >= 27599aacbaefcbf2af7b06b…
Fixed in: Linux 2388f826cdc9af2651991adc0feb79de9bdf2232, Linux 0f525289ff0ddeb380813bd81e0f9bdaaa1c9078, Linux 5.15.34, Linux 5.16.20, Linux 5.17.3

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

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

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

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

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

Linux \>= c894ac44786cfed383a6c6b20c1bfb12eb96018a, \< 2388f826cdc9af2651991adc0feb79de9bdf2232; \>= 9565a3b5203a4d57acbc1d0e981c6df71864b4ab, \< de33df481545974ba47c46f05194e769e4307843; \>= 4d695d7c276f15adb1d2b64c584c3cf8f4f9e9ce, \< feed87ff122b1640c221d4dd559442ab2cd50bb1; \>= 27599aacbaefcbf2af7b06b0029459bbf682000d, \< 0f525289ff0ddeb380813bd81e0f9bdaaa1c9078; Linux \>= 5.15.33, \< 5.15.34; \>= 5.16.19, \< 5.16.20; \>= 5.17.2, \< 5.17.3.

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

Yes. Fixed in Linux 2388f826cdc9af2651991adc0feb79de9bdf2232, Linux 0f525289ff0ddeb380813bd81e0f9bdaaa1c9078, Linux 5.15.34, Linux 5.16.20, Linux 5.17.3. Upgrade Linux to 0f525289ff0ddeb380813bd81e0f9bdaaa1c9078 or later. Upgrade Linux to 5.17.3 or later.

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

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/2388f826cdc9af2651991adc0feb79de9bdf2232>
- patch: <https://git.kernel.org/stable/c/de33df481545974ba47c46f05194e769e4307843>
- patch: <https://git.kernel.org/stable/c/feed87ff122b1640c221d4dd559442ab2cd50bb1>
- patch: <https://git.kernel.org/stable/c/0f525289ff0ddeb380813bd81e0f9bdaaa1c9078>

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

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