CVE-2025-38266
Linux Ubuntu vulnerability analysis and mitigation

Overview

A vulnerability was discovered in the Linux kernel related to invalid pointer dereferencing in the pinctrl MediaTek EINT driver. The issue was introduced by commit 3ef9f710efcb which added EINT support for multiple addresses, affecting v1 platforms. The vulnerability was discovered on July 10, 2025, and impacts systems using the MediaTek pinctrl driver, particularly observed on Genio 350 EVK (MT8365) devices (NVD CVE).

Technical details

The vulnerability stems from an access to the 'soc' field of struct mtkpinctrl in mtkeintdoinit() function, which includes pinctrl-mtk-common-v2.h. However, pinctrl drivers using the v1 common driver include pinctrl-mtk-common.h instead, which has a different definition of struct mtkpinctrl without the 'soc' field. This mismatch causes an invalid pointer dereference when mtkeintdoinit() is called on v1 platforms, resulting in system crashes early in the boot process that are only visible with earlycon (NVD CVE).

Impact

The vulnerability causes system crashes very early in the boot process on affected v1 platforms, particularly observed on Genio 350 EVK (MT8365) devices. The crash occurs due to invalid pointer dereferencing, which can prevent the system from properly booting (NVD CVE).

Mitigation and workarounds

The issue has been resolved by modifying the mtkeintdoinit() function to accept 'struct mtkeintpin' as a parameter instead of relying on the struct mtkpinctrl. This change removes the dependency on any particular struct mtk_pinctrl definition, effectively fixing the invalid pointer dereference issue (NVD CVE).

Additional resources


SourceThis report was generated using AI

Related Linux Ubuntu vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40266MEDIUM6.5
  • Linux DebianLinux Debian
  • linux-aws-fips
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-modules-extra
NoNoDec 04, 2025
CVE-2025-40263MEDIUM5.1
  • Linux DebianLinux Debian
  • linux
NoNoDec 04, 2025
CVE-2025-66270MEDIUM4.7
  • Linux DebianLinux Debian
  • gnome-shell-extension-gsconnect
NoYesDec 05, 2025
CVE-2025-40265N/AN/A
  • Linux DebianLinux Debian
  • linux
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management