CVE-2025-38266

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38266
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38266.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38266
Downstream
Published
2025-07-10T07:37:34.431Z
Modified
2025-12-05T09:27:38.970752Z
Summary
pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms
Details

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 mtkpinctrl in mtkeintdoinit() 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 mtkeintdo_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 mtkpinctrl' was only needed to get a 'struct mtkeintpin', make 'struct mtkeintpin' a parameter of mtkeintdoinit() so that callers need to supply it, removing mtkeintdoinit()'s dependency on any particular 'struct mtkpinctrl'.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38266.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3ef9f710efcb5cc1335b5b09c16c757f703d7e5f
Fixed
9ebe21ede792cef851847648962c363cac67d17f
Fixed
1c9977b263475373b31bbf86af94a5c9ae2be42c

Affected versions

v6.*

v6.14
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.15.1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.15.2