CVE-2026-31562
drm/mediatek: dsi: Store driver data before invoking mipi_dsi_host_register
Mitigation
- Upgrade Linux to 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a or later.
Who should check
- Anyone running Linux >= e4732b590a77318dff134612b013d66d2448ab20, < 57b4864ca02f76d7debe8ce14c912335aef16055; >= e4732b590a77318dff134612b013d66d2448ab20, < 9a709b7e36324dfc1e6728eb81405470b7ae84e5; >= e4732b590a77318dff134612b013d66d2448ab20, < df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b; >= e4732b590a77318dff134612b013d66d2448ab20, < 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a
- Anyone running Linux 6.9
Vulnerability facts
- Affected
- Linux >= e4732b590a77318dff134612b013d66d2448ab20, < 57b4864ca02f76d7debe8ce14c912335aef16055; >= e4732b590a77318dff134612b013d66d2448ab20, < 9a709b7e36324dfc1e6728eb81405470b7ae84e5; >= e4732b590a77318dff134612b013d66d2448ab20, < df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b; >= e4732b590a77318dff134612b013d66d2448ab20, < 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a; Linux 6.9
- Fixed in
- Linux 57b4864ca02f76d7debe8ce14c912335aef16055, Linux 9a709b7e36324dfc1e6728eb81405470b7ae84e5, Linux 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.17% chance of exploitation in 30 days (percentile 3, 2026-11-26)
- CWE
- CWE-476
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= e4732b590a77318dff134612b013d66d2448ab20, < 57b4864ca02f76d7debe8ce14c912335aef16055; >= e4732b590a77318dff134612b013d66d2448ab20, < 9a709b7e36324dfc1e6728eb81405470b7ae84e5; >= e4732b590a77318dff134612b013d66d2448ab20, < df03f5ac1eae7c5a2c01846e3e64dfc2870eec6b; >= e4732b590a77318dff134612b013d66d2448ab20, < 4cfdfeb6ac06079f92fccd977fa742d6c5b8dd3a | — | cvelist |
| Linux | 6.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
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-26).
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.