# CVE-2025-38266: pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-07-10T07:37:34.431Z
- **Modified:** 2026-09-14T12:17:36.437Z

## Who should check

- Anyone running Linux \>= 3cc64c13deb38080afc6b37060e825d4fe0a4737, \< eae2b12df3aac874566f7025799ca4219572e44c; \>= 7586766229354983cf5572f81295e69bf5abccf5, \< e578bbff985822573a27d4b7c9ec858e6014d033; \>= 00f864b4b5ce3c50f3217626c8de97fbda1b2ea6, \< abe8ad6a1a00c5c7be28b038d0ede0bdcacd8610; \>= 3ef9f710efcb5cc1335b5b09c16c757f703d7e5f, \< 9ebe21ede792cef851847648962c363cac67d17f; \>= 3ef9f710efcb5cc1335b5b09c16c757f703d7e5f, \< 1c9977b263475373b31bbf86af94a5c9ae2be42c
- Anyone running Linux 6.15

## 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 and fixed versions

- Linux: \>= 3cc64c13deb38080afc6b37060e825d4fe0a4737, \< eae2b12df3aac874566f7025799ca4219572e44c; \>= 7586766229354983cf5572f81295e69bf5abccf5, \< e578bbff985822573a27d4b7c9ec858e6014d033; \>= 00f864b4b5ce3c50f3217626c8de97fbda1b2ea6, \< abe8ad6a1a00c5c7be28b038d0ede0bdcacd8610; \>= 3ef9f710efcb5cc1335b5b09c16c757f703d7e5f, \< 9ebe21ede792cef851847648962c363cac67d17f; \>= 3ef9f710efcb5cc1335b5b09c16c757f703d7e5f, \< 1c9977b263475373b31bbf86af94a5c9ae2be42c (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 1c9977b263475373b31bbf86af94a5c9ae2be42c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38266. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38266.md
Affected: Linux >= 3cc64c13deb38080afc6b37060e825d4fe0a4737, < eae2b12df3aac874566f7025799ca4219572e44c; >= 7586766229354983cf5572f81295e69bf5abccf5, < e578bbff985822573a27d4b7c9ec858e6014d033; >= 00f864b4b5ce3c50f3217626c8de97fbda1b2ea6, < abe8ad6a1a00c5c7be28b038d0ede0bdcacd8610; >= 3ef9f710efcb5cc1335b5b0…
Fixed in: Linux 9ebe21ede792cef851847648962c363cac67d17f, Linux 1c9977b263475373b31bbf86af94a5c9ae2be42c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38266 being exploited?

There is no confirmed exploitation: CVE-2025-38266 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-38266?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38266?

Linux \>= 3cc64c13deb38080afc6b37060e825d4fe0a4737, \< eae2b12df3aac874566f7025799ca4219572e44c; \>= 7586766229354983cf5572f81295e69bf5abccf5, \< e578bbff985822573a27d4b7c9ec858e6014d033; \>= 00f864b4b5ce3c50f3217626c8de97fbda1b2ea6, \< abe8ad6a1a00c5c7be28b038d0ede0bdcacd8610; \>= 3ef9f710efcb5cc1335b5b09c16c757f703d7e5f, \< 9ebe21ede792cef851847648962c363cac67d17f; \>= 3ef9f710efcb5cc1335b5b09c16c757f703d7e5f, \< 1c9977b263475373b31bbf86af94a5c9ae2be42c; Linux 6.15.

### Is there a fix for CVE-2025-38266?

Yes. Fixed in Linux 9ebe21ede792cef851847648962c363cac67d17f, Linux 1c9977b263475373b31bbf86af94a5c9ae2be42c. Upgrade Linux to 1c9977b263475373b31bbf86af94a5c9ae2be42c or later.

### How do I check if I'm affected by CVE-2025-38266?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9ebe21ede792cef851847648962c363cac67d17f>
- patch: <https://git.kernel.org/stable/c/1c9977b263475373b31bbf86af94a5c9ae2be42c>
- other: <https://git.kernel.org/stable/c/eae2b12df3aac874566f7025799ca4219572e44c>
- other: <https://git.kernel.org/stable/c/e578bbff985822573a27d4b7c9ec858e6014d033>
- other: <https://git.kernel.org/stable/c/abe8ad6a1a00c5c7be28b038d0ede0bdcacd8610>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38266>

HTML: <https://flawdb.com/CVE-2025-38266> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38266>
