CVE-2025-38266

pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms

MEDIUM
5.5
CVSS Score
Published: July 10, 2025 at 07:37 AM UTC
Updated: September 14, 2026 at 12:34 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms Commit 3ef9f710efcb ("pinctrl: mediatek: Add EINT support for multiple addresses") introduced an access to the 'soc' field of struct mtk_pinctrl in mtk_eint_do_init() and for that an include of pinctrl-mtk-common-v2.h. However, pinctrl drivers relying on the v1 common driver include pinctrl-mtk-common.h instead, which provides another definition of struct mtk_pinctrl that does not contain an 'soc' field. Since mtk_eint_do_init() can be called both by v1 and v2 drivers, it will now try to dereference an invalid pointer when called on v1 platforms. This has been observed on Genio 350 EVK (MT8365), which crashes very early in boot (the kernel trace can only be seen with earlycon). In order to fix this, since 'struct mtk_pinctrl' was only needed to get a 'struct mtk_eint_pin', make 'struct mtk_eint_pin' a parameter of mtk_eint_do_init() so that callers need to supply it, removing mtk_eint_do_init()'s dependency on any particular 'struct mtk_pinctrl'.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.15 ≤ v < 6.15.26.15 ≤ v < 6.160f864b4b5ce3c50f3217626c8de97fbda1b2ea63cc64c13deb38080afc6b37060e825d4fe0a47373ef9f710efcb5cc1335b5b09c16c757f703d7e5f6.157586766229354983cf5572f81295e69bf5abccf5
Vendor states this is fixed in 1c9977b263475373b31bbf86af94a5c9ae2be42c (fixed)
Vendor states this is fixed in 9ebe21ede792cef851847648962c363cac67d17f (fixed)
Vendor states this is fixed in abe8ad6a1a00c5c7be28b038d0ede0bdcacd8610 (fixed)
Vendor states this is fixed in e578bbff985822573a27d4b7c9ec858e6014d033 (fixed)
Vendor states this is fixed in eae2b12df3aac874566f7025799ca4219572e44c (fixed)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.15.2 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card