# CVE-2022-50556: drm: Fix potential null-ptr-deref due to drmm\_mode\_config\_init()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-10-22T13:23:17.527Z
- **Modified:** 2026-06-17T05:23:47.193Z

## Who should check

- Anyone running Linux \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 5ae70041a6d7de62a0cdb2bbcfe0c9cf753035d0; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< d06e827a65a6bcd2e329045d891d0739cec1cf4a; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< b14147464251f66e38fa39f0aae9780466db8610; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 961620ad67611a7320a49f4b6f3c5e2906833a03; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 834c23e4f798dcdc8af251b3c428ceef94741991
- Anyone running Linux 4.0

## Description

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

drm: Fix potential null-ptr-deref due to drmm\_mode\_config\_init()

drmm\_mode\_config\_init() will call drm\_mode\_create\_standard\_properties()
and won't check the ret value. When drm\_mode\_create\_standard\_properties()
failed due to alloc, property will be a NULL pointer and may causes the
null-ptr-deref. Fix the null-ptr-deref by adding the ret value check.

Found null-ptr-deref while testing insert module bochs:
general protection fault, probably for non-canonical address
    0xdffffc000000000c: 0000 \[\#1\] SMP KASAN PTI
KASAN: null-ptr-deref in range \[0x0000000000000060-0x0000000000000067\]
CPU: 3 PID: 249 Comm: modprobe Not tainted 6.1.0-rc1+ \#364
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014
RIP: 0010:drm\_object\_attach\_property+0x73/0x3c0 \[drm\]
Call Trace:
 \<TASK\>
 \_\_drm\_connector\_init+0xb6c/0x1100 \[drm\]
 bochs\_pci\_probe.cold.11+0x4cb/0x7fe \[bochs\]
 pci\_device\_probe+0x17d/0x340
 really\_probe+0x1db/0x5d0
 \_\_driver\_probe\_device+0x1e7/0x250
 driver\_probe\_device+0x4a/0x120
 \_\_driver\_attach+0xcd/0x2c0
 bus\_for\_each\_dev+0x11a/0x1b0
 bus\_add\_driver+0x3d7/0x500
 driver\_register+0x18e/0x320
 do\_one\_initcall+0xc4/0x3e0
 do\_init\_module+0x1b4/0x630
 load\_module+0x5dca/0x7230
 \_\_do\_sys\_finit\_module+0x100/0x170
 do\_syscall\_64+0x3f/0x90
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
RIP: 0033:0x7ff65af9f839

## Affected and fixed versions

- Linux: \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 5ae70041a6d7de62a0cdb2bbcfe0c9cf753035d0; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< d06e827a65a6bcd2e329045d891d0739cec1cf4a; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< b14147464251f66e38fa39f0aae9780466db8610; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 961620ad67611a7320a49f4b6f3c5e2906833a03; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 834c23e4f798dcdc8af251b3c428ceef94741991 (cvelist)
- Linux: 4.0 (cvelist)

## Mitigation

- Upgrade Linux to 834c23e4f798dcdc8af251b3c428ceef94741991 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-50556. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50556.md
Affected: Linux >= 6b4959f43a04e12d39c5700607727f2cbcfeac31, < 5ae70041a6d7de62a0cdb2bbcfe0c9cf753035d0; >= 6b4959f43a04e12d39c5700607727f2cbcfeac31, < d06e827a65a6bcd2e329045d891d0739cec1cf4a; >= 6b4959f43a04e12d39c5700607727f2cbcfeac31, < b14147464251f66e38fa39f0aae9780466db8610; >= 6b4959f43a04e12d39c5700…
Fixed in: Linux 5ae70041a6d7de62a0cdb2bbcfe0c9cf753035d0, Linux 961620ad67611a7320a49f4b6f3c5e2906833a03, Linux 834c23e4f798dcdc8af251b3c428ceef94741991

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 5ae70041a6d7de62a0cdb2bbcfe0c9cf753035d0; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< d06e827a65a6bcd2e329045d891d0739cec1cf4a; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< b14147464251f66e38fa39f0aae9780466db8610; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 961620ad67611a7320a49f4b6f3c5e2906833a03; \>= 6b4959f43a04e12d39c5700607727f2cbcfeac31, \< 834c23e4f798dcdc8af251b3c428ceef94741991; Linux 4.0.

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

Yes. Fixed in Linux 5ae70041a6d7de62a0cdb2bbcfe0c9cf753035d0, Linux 961620ad67611a7320a49f4b6f3c5e2906833a03, Linux 834c23e4f798dcdc8af251b3c428ceef94741991. Upgrade Linux to 834c23e4f798dcdc8af251b3c428ceef94741991 or later.

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

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

- other: <https://git.kernel.org/stable/c/5ae70041a6d7de62a0cdb2bbcfe0c9cf753035d0>
- other: <https://git.kernel.org/stable/c/d06e827a65a6bcd2e329045d891d0739cec1cf4a>
- other: <https://git.kernel.org/stable/c/b14147464251f66e38fa39f0aae9780466db8610>
- other: <https://git.kernel.org/stable/c/961620ad67611a7320a49f4b6f3c5e2906833a03>
- other: <https://git.kernel.org/stable/c/834c23e4f798dcdc8af251b3c428ceef94741991>

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

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