CVE-2025-68222: pinctrl: s32cc: fix uninitialized memory in s32_pinctrl_desc

Published Dec 16, 2025
·
Updated

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

pinctrl: s32cc: fix uninitialized memory in s32pinctrldesc

s32pinctrldesc is allocated with devmkmalloc(), but not all of its fields are initialized. Notably, numcustomparams is used in pinconfgenericparsedtconfig(), resulting in intermittent allocation errors, such as the following splat when probing i2c-imx:

WARNING: CPU: 0 PID: 176 at mm/pagealloc.c:4795 allocpagesnoprof+0x290/0x300 [...] Hardware name: NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3) (DT) [...] Call trace: allocpagesnoprof+0x290/0x300 (P) kmalloclargenode+0x84/0x168 kmalloclargenodenoprof+0x34/0x120 kmallocnoprof+0x2ac/0x378 pinconfgenericparsedtconfig+0x68/0x1a0 s32dtnodetomap+0x104/0x248 dttomaponeconfig+0x154/0x1d8 pinctrldttomap+0x12c/0x280 createpinctrl+0x6c/0x270 pinctrlget+0xc0/0x170 devmpinctrlget+0x50/0xa0 pinctrlbindpins+0x60/0x2a0 reallyprobe+0x60/0x3a0 [...] platformdriverregister+0x2c/0x40 i2cadapimxinit+0x28/0xff8 [i2cimx] [...]

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 s32pinctrldesc with devmkzalloc() instead of devmkmalloc() in s32pinctrlprobe(), which sets the previously uninitialized fields to zero.

Affected Software

2 affected componentsFixes available
linux/kernel
Microsoft azl3 kernel 6.6.117.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel s32 pinctrl driver, change the allocation of s32_pinctrl_desc in s32_pinctrl_probe() from devm_kmalloc() to devm_kzalloc() so all descriptor fields are initialized to zero.

Event History

Dec 16, 2025
CVE Published
via MITRE·01:57 PM
Data Sourced
via MITRE·01:57 PM
Description
Data Sourced
via NVD·02:15 PM
Description
Dec 17, 2025
Data Sourced
via Microsoft·01:05 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-68222?

CVE-2025-68222 has been assigned a low severity rating due to its nature of involving uninitialized memory in a non-critical area.

2

How do I fix CVE-2025-68222?

To fix CVE-2025-68222, ensure you apply the latest patches or updates provided by your Linux distribution.

3

What is the impact of CVE-2025-68222 on my system?

The impact of CVE-2025-68222 may include potential information leaks due to the use of uninitialized memory.

4

Which Linux kernel versions are affected by CVE-2025-68222?

CVE-2025-68222 affects versions of the Linux kernel where s32_pinctrl_desc is implemented without proper memory initialization.

5

What components are involved in CVE-2025-68222?

CVE-2025-68222 specifically involves the pin control subsystem in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203