CVE-2025-68222
pinctrl: s32cc: fix uninitialized memory in s32_pinctrl_desc
Mitigation
- Upgrade Linux to 97ea34defbb57bfaf71ce487b1b0865ffd186e81 or later.
Who should check
- Anyone running Linux >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 3b90bd8aaeb21b513ecc4ed03299e80ece44a333; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 583ac7f65791ceda38ea1a493a4859f7161dcb03; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 7bbdd6c30e8fd92f7165b7730b038cfe42102004; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 97ea34defbb57bfaf71ce487b1b0865ffd186e81
- Anyone running Linux 6.4
Vulnerability facts
- Affected
- Linux >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 3b90bd8aaeb21b513ecc4ed03299e80ece44a333; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 583ac7f65791ceda38ea1a493a4859f7161dcb03; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 7bbdd6c30e8fd92f7165b7730b038cfe42102004; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 97ea34defbb57bfaf71ce487b1b0865ffd186e81; Linux 6.4
- Fixed in
- Linux 3b90bd8aaeb21b513ecc4ed03299e80ece44a333, Linux 583ac7f65791ceda38ea1a493a4859f7161dcb03, Linux 7bbdd6c30e8fd92f7165b7730b038cfe42102004, Linux 97ea34defbb57bfaf71ce487b1b0865ffd186e81
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 3b90bd8aaeb21b513ecc4ed03299e80ece44a333; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 583ac7f65791ceda38ea1a493a4859f7161dcb03; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 7bbdd6c30e8fd92f7165b7730b038cfe42102004; >= fd84aaa8173d3ff86f8df2009921336a1ea53a8a, < 97ea34defbb57bfaf71ce487b1b0865ffd186e81 | — | cvelist |
| Linux | 6.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
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.