# CVE-2026-31562: drm/mediatek: dsi: Store driver data before invoking mipi\_dsi\_host\_register

> 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.17% (percentile 3, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2026-04-24T14:35:43.950Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= e4732b590a77318dff134612b013d66d2448ab20, \< 57b4864ca02f76d7debe8ce14c912335aef16055; \>= e4732b590a77318dff134612b013d66d2448ab20, \< 9a709b7e36324dfc1e6728eb81405470b7ae84e5; \>= e4732b590a77318dff134612b013d66d2448ab20, \< df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b; \>= e4732b590a77318dff134612b013d66d2448ab20, \< 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a
- Anyone running Linux 6.9

## Description

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

drm/mediatek: dsi: Store driver data before invoking mipi\_dsi\_host\_register

The call to mipi\_dsi\_host\_register triggers a callback to mtk\_dsi\_bind,
which uses dev\_get\_drvdata to retrieve the mtk\_dsi struct, so this
structure needs to be stored inside the driver data before invoking it.

As drvdata is currently uninitialized it leads to a crash when
registering the DSI DRM encoder right after acquiring
the mode\_config.idr\_mutex, blocking all subsequent DRM operations.

Fixes the following crash during mediatek-drm probe (tested on Xiaomi
Smart Clock x04g):

Unable to handle kernel NULL pointer dereference at virtual address
 0000000000000040
\[...\]
Modules linked in: mediatek\_drm(+) drm\_display\_helper cec drm\_client\_lib
 drm\_dma\_helper drm\_kms\_helper panel\_simple
\[...\]
Call trace:
 drm\_mode\_object\_add+0x58/0x98 (P)
 \_\_drm\_encoder\_init+0x48/0x140
 drm\_encoder\_init+0x6c/0xa0
 drm\_simple\_encoder\_init+0x20/0x34 \[drm\_kms\_helper\]
 mtk\_dsi\_bind+0x34/0x13c \[mediatek\_drm\]
 component\_bind\_all+0x120/0x280
 mtk\_drm\_bind+0x284/0x67c \[mediatek\_drm\]
 try\_to\_bring\_up\_aggregate\_device+0x23c/0x320
 \_\_component\_add+0xa4/0x198
 component\_add+0x14/0x20
 mtk\_dsi\_host\_attach+0x78/0x100 \[mediatek\_drm\]
 mipi\_dsi\_attach+0x2c/0x50
 panel\_simple\_dsi\_probe+0x4c/0x9c \[panel\_simple\]
 mipi\_dsi\_drv\_probe+0x1c/0x28
 really\_probe+0xc0/0x3dc
 \_\_driver\_probe\_device+0x80/0x160
 driver\_probe\_device+0x40/0x120
 \_\_device\_attach\_driver+0xbc/0x17c
 bus\_for\_each\_drv+0x88/0xf0
 \_\_device\_attach+0x9c/0x1cc
 device\_initial\_probe+0x54/0x60
 bus\_probe\_device+0x34/0xa0
 device\_add+0x5b0/0x800
 mipi\_dsi\_device\_register\_full+0xdc/0x16c
 mipi\_dsi\_host\_register+0xc4/0x17c
 mtk\_dsi\_probe+0x10c/0x260 \[mediatek\_drm\]
 platform\_probe+0x5c/0xa4
 really\_probe+0xc0/0x3dc
 \_\_driver\_probe\_device+0x80/0x160
 driver\_probe\_device+0x40/0x120
 \_\_driver\_attach+0xc8/0x1f8
 bus\_for\_each\_dev+0x7c/0xe0
 driver\_attach+0x24/0x30
 bus\_add\_driver+0x11c/0x240
 driver\_register+0x68/0x130
 \_\_platform\_register\_drivers+0x64/0x160
 mtk\_drm\_init+0x24/0x1000 \[mediatek\_drm\]
 do\_one\_initcall+0x60/0x1d0
 do\_init\_module+0x54/0x240
 load\_module+0x1838/0x1dc0
 init\_module\_from\_file+0xd8/0xf0
 \_\_arm64\_sys\_finit\_module+0x1b4/0x428
 invoke\_syscall.constprop.0+0x48/0xc8
 do\_el0\_svc+0x3c/0xb8
 el0\_svc+0x34/0xe8
 el0t\_64\_sync\_handler+0xa0/0xe4
 el0t\_64\_sync+0x198/0x19c
Code: 52800022 941004ab 2a0003f3 37f80040 (29005a80)

## Affected and fixed versions

- Linux: \>= e4732b590a77318dff134612b013d66d2448ab20, \< 57b4864ca02f76d7debe8ce14c912335aef16055; \>= e4732b590a77318dff134612b013d66d2448ab20, \< 9a709b7e36324dfc1e6728eb81405470b7ae84e5; \>= e4732b590a77318dff134612b013d66d2448ab20, \< df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b; \>= e4732b590a77318dff134612b013d66d2448ab20, \< 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-31562.md
Affected: Linux >= e4732b590a77318dff134612b013d66d2448ab20, < 57b4864ca02f76d7debe8ce14c912335aef16055; >= e4732b590a77318dff134612b013d66d2448ab20, < 9a709b7e36324dfc1e6728eb81405470b7ae84e5; >= e4732b590a77318dff134612b013d66d2448ab20, < df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b; >= e4732b590a77318dff13461…
Fixed in: Linux 57b4864ca02f76d7debe8ce14c912335aef16055, Linux 9a709b7e36324dfc1e6728eb81405470b7ae84e5, Linux 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a

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-2026-31562 being exploited?

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

### How serious is CVE-2026-31562?

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

### Which versions are affected by CVE-2026-31562?

Linux \>= e4732b590a77318dff134612b013d66d2448ab20, \< 57b4864ca02f76d7debe8ce14c912335aef16055; \>= e4732b590a77318dff134612b013d66d2448ab20, \< 9a709b7e36324dfc1e6728eb81405470b7ae84e5; \>= e4732b590a77318dff134612b013d66d2448ab20, \< df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b; \>= e4732b590a77318dff134612b013d66d2448ab20, \< 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a; Linux 6.9.

### Is there a fix for CVE-2026-31562?

Yes. Fixed in Linux 57b4864ca02f76d7debe8ce14c912335aef16055, Linux 9a709b7e36324dfc1e6728eb81405470b7ae84e5, Linux 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a. Upgrade Linux to 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a or later.

### How do I check if I'm affected by CVE-2026-31562?

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/9a709b7e36324dfc1e6728eb81405470b7ae84e5>
- patch: <https://git.kernel.org/stable/c/df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b>
- patch: <https://git.kernel.org/stable/c/4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a>
- other: <https://git.kernel.org/stable/c/57b4864ca02f76d7debe8ce14c912335aef16055>

## 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-2026-31562>

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