CVE-2025-39807: drm/mediatek: Add error handling for old state CRTC in atomic_disable

Published Sep 16, 2025
·
Updated

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

drm/mediatek: Add error handling for old state CRTC in atomicdisable

Introduce error handling to address an issue where, after a hotplug event, the cursor continues to update. This situation can lead to a kernel panic due to accessing the NULL oldstate->crtc.

E,g. Unable to handle kernel NULL pointer dereference at virtual address Call trace: mtkcrtcplanedisable+0x24/0x140 mtkplaneatomicupdate+0x8c/0xa8 drmatomichelpercommitplanes+0x114/0x2c8 drmatomichelpercommittailrpm+0x4c/0x158 committail+0xa0/0x168 drmatomichelpercommit+0x110/0x120 drmatomiccommit+0x8c/0xe0 drmatomichelperupdateplane+0xd4/0x128 setplaneatomic+0xcc/0x110 drmmodecursorcommon+0x250/0x440 drmmodecursorioctl+0x44/0x70 drmioctl+0x264/0x5d8 arm64sysioctl+0xd8/0x510 invokesyscall+0x6c/0xe0 doel0svc+0x68/0xe8 el0svc+0x34/0x60 el0t64synchandler+0x1c/0xf8 el0t64sync+0x180/0x188

Adding NULL pointer checks to ensure stability by preventing operations on an invalid CRTC state.

Affected Software

10 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.12.40<6.12.45
Linux Linux kernel>=6.15.8<6.16
Linux Linux kernel>=6.16.1<6.16.5
Linux Linux kernel=6.16
Linux Linux kernel=6.16-rc7
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1

Event History

Sep 16, 2025
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-39807?

The severity of CVE-2025-39807 is categorized as a moderate vulnerability impacting the Linux kernel.

2

How do I fix CVE-2025-39807?

To fix CVE-2025-39807, update to the latest Linux kernel version that includes the patch addressing this issue.

3

What systems are affected by CVE-2025-39807?

CVE-2025-39807 affects systems running the Linux kernel with the Mediatek DRM subsystem.

4

What details are known about the vulnerability CVE-2025-39807?

CVE-2025-39807 involves a flaw in error handling during atomic disable processes after a hotplug event.

5

Are there any known exploits for CVE-2025-39807?

As of now, there are no publicly known exploits for CVE-2025-39807.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203