CVE-2025-38266CWE-476

CVE-2025-38266

Medium · published July 10, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
8.0
In the wild
Unconfirmed
What it is

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'.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00189 · 8.0th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2025-07-10T12:15Z
Affected products (1)
ProductVersionsFixed in
linux/linux_kernel≥ 6.15, < 6.15.26.15.2
References (5)
EPSS history
Timeline
  • 10 JUL 07:37Z
    pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms
    cvelistv5