# CVE-2025-68222: pinctrl: s32cc: fix uninitialized memory in s32\_pinctrl\_desc

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T13:57:15.832Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 3b90bd8aaeb21b513ecc4ed03299e80ece44a333; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 583ac7f65791ceda38ea1a493a4859f7161dcb03; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 7bbdd6c30e8fd92f7165b7730b038cfe42102004; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 97ea34defbb57bfaf71ce487b1b0865ffd186e81
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: s32cc: fix uninitialized memory in s32\_pinctrl\_desc

s32\_pinctrl\_desc is allocated with devm\_kmalloc(), but not all of its
fields are initialized. Notably, num\_custom\_params is used in
pinconf\_generic\_parse\_dt\_config(), resulting in intermittent allocation
errors, such as the following splat when probing i2c-imx:

        WARNING: CPU: 0 PID: 176 at mm/page\_alloc.c:4795 \_\_alloc\_pages\_noprof+0x290/0x300
        \[...\]
        Hardware name: NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3) (DT)
        \[...\]
        Call trace:
         \_\_alloc\_pages\_noprof+0x290/0x300 (P)
         \_\_\_kmalloc\_large\_node+0x84/0x168
         \_\_kmalloc\_large\_node\_noprof+0x34/0x120
         \_\_kmalloc\_noprof+0x2ac/0x378
         pinconf\_generic\_parse\_dt\_config+0x68/0x1a0
         s32\_dt\_node\_to\_map+0x104/0x248
         dt\_to\_map\_one\_config+0x154/0x1d8
         pinctrl\_dt\_to\_map+0x12c/0x280
         create\_pinctrl+0x6c/0x270
         pinctrl\_get+0xc0/0x170
         devm\_pinctrl\_get+0x50/0xa0
         pinctrl\_bind\_pins+0x60/0x2a0
         really\_probe+0x60/0x3a0
        \[...\]
         \_\_platform\_driver\_register+0x2c/0x40
         i2c\_adap\_imx\_init+0x28/0xff8 \[i2c\_imx\]
        \[...\]

This results in later parse failures that can cause issues in dependent
drivers:

        s32g-siul2-pinctrl 4009c240.pinctrl: /soc@0/pinctrl@4009c240/i2c0-pins/i2c0-grp0: could not parse node property
        s32g-siul2-pinctrl 4009c240.pinctrl: /soc@0/pinctrl@4009c240/i2c0-pins/i2c0-grp0: could not parse node property
        \[...\]
        pca953x 0-0022: failed writing register: -6
        i2c i2c-0: IMX I2C adapter registered
        s32g-siul2-pinctrl 4009c240.pinctrl: /soc@0/pinctrl@4009c240/i2c2-pins/i2c2-grp0: could not parse node property
        s32g-siul2-pinctrl 4009c240.pinctrl: /soc@0/pinctrl@4009c240/i2c2-pins/i2c2-grp0: could not parse node property
        i2c i2c-1: IMX I2C adapter registered
        s32g-siul2-pinctrl 4009c240.pinctrl: /soc@0/pinctrl@4009c240/i2c4-pins/i2c4-grp0: could not parse node property
        s32g-siul2-pinctrl 4009c240.pinctrl: /soc@0/pinctrl@4009c240/i2c4-pins/i2c4-grp0: could not parse node property
        i2c i2c-2: IMX I2C adapter registered

Fix this by initializing s32\_pinctrl\_desc with devm\_kzalloc() instead of
devm\_kmalloc() in s32\_pinctrl\_probe(), which sets the previously
uninitialized fields to zero.

## Affected and fixed versions

- Linux: \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 3b90bd8aaeb21b513ecc4ed03299e80ece44a333; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 583ac7f65791ceda38ea1a493a4859f7161dcb03; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 7bbdd6c30e8fd92f7165b7730b038cfe42102004; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 97ea34defbb57bfaf71ce487b1b0865ffd186e81 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 97ea34defbb57bfaf71ce487b1b0865ffd186e81 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-68222. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68222.md
Affected: Linux >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 3b90bd8aaeb21b513ecc4ed03299e80ece44a333; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 583ac7f65791ceda38ea1a493a4859f7161dcb03; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 7bbdd6c30e8fd92f7165b7730b038cfe42102004; >= fd84aaa8173d3ff86f8df20…
Fixed in: Linux 3b90bd8aaeb21b513ecc4ed03299e80ece44a333, Linux 583ac7f65791ceda38ea1a493a4859f7161dcb03, Linux 7bbdd6c30e8fd92f7165b7730b038cfe42102004, Linux 97ea34defbb57bfaf71ce487b1b0865ffd186e81

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-68222 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 3b90bd8aaeb21b513ecc4ed03299e80ece44a333; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 583ac7f65791ceda38ea1a493a4859f7161dcb03; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 7bbdd6c30e8fd92f7165b7730b038cfe42102004; \>= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, \< 97ea34defbb57bfaf71ce487b1b0865ffd186e81; Linux 6.4.

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

Yes. Fixed in Linux 3b90bd8aaeb21b513ecc4ed03299e80ece44a333, Linux 583ac7f65791ceda38ea1a493a4859f7161dcb03, Linux 7bbdd6c30e8fd92f7165b7730b038cfe42102004, Linux 97ea34defbb57bfaf71ce487b1b0865ffd186e81. Upgrade Linux to 97ea34defbb57bfaf71ce487b1b0865ffd186e81 or later.

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

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

- other: <https://git.kernel.org/stable/c/3b90bd8aaeb21b513ecc4ed03299e80ece44a333>
- other: <https://git.kernel.org/stable/c/583ac7f65791ceda38ea1a493a4859f7161dcb03>
- other: <https://git.kernel.org/stable/c/7bbdd6c30e8fd92f7165b7730b038cfe42102004>
- other: <https://git.kernel.org/stable/c/97ea34defbb57bfaf71ce487b1b0865ffd186e81>

## 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-68222>

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