
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68222 is an uninitialized memory vulnerability in the Linux kernel's pinctrl s32cc driver, affecting systems using NXP S32G series processors. The s32_pinctrl_desc structure is allocated via devm_kmalloc() without initializing all fields — specifically num_custom_params — which is subsequently used in pinconf_generic_parse_dt_config(), causing intermittent allocation errors and device configuration failures. It was published on December 16, 2025, and affects the Linux kernel as shipped in Microsoft's Azure Linux 3 (azl3_kernel_6.6.117.1-1). The CVSS v3.1 base score is 6.2 (Medium) (Microsoft MSRC).
The root cause is use of uninitialized memory (CWE-457): s32_pinctrl_desc is allocated with devm_kmalloc() in s32_pinctrl_probe(), which does not zero-initialize the allocated memory. The uninitialized num_custom_params field is later consumed by pinconf_generic_parse_dt_config(), which uses it to calculate allocation sizes, leading to erroneous or excessively large memory allocation requests and kernel warnings such as __alloc_pages_noprof+0x290/0x300. The attack vector is local with no privileges or user interaction required, as the flaw is triggered during kernel driver probe operations (e.g., when the i2c-imx driver is loaded on affected NXP S32G hardware). The fix replaces devm_kmalloc() with devm_kzalloc() to ensure zero-initialization of all structure fields (Microsoft MSRC).
Exploitation of this vulnerability results in intermittent kernel memory allocation warnings and failures during the probe of the s32cc pinctrl driver, which cascade to dependent drivers such as i2c-imx. This causes device tree parsing failures (e.g., "could not parse node property" errors), preventing proper initialization of I2C and other hardware interfaces on NXP S32G series processors. The primary impact is availability — affected systems experience device initialization failures and platform instability — with no confidentiality or integrity impact (Microsoft MSRC).
The fix is to replace devm_kmalloc() with devm_kzalloc() in s32_pinctrl_probe(), ensuring all fields of s32_pinctrl_desc are zero-initialized. Patches are available in the Linux kernel stable tree (commits 3b90bd8, 7bbdd6c, 97ea34d, 583ac7f) and have been incorporated into Microsoft's Azure Linux 3 kernel update (azl3_kernel_6.6.117.1-1). Ubuntu has also issued security notices USN-8094-1 through USN-8094-5 and USN-8152-1 addressing this CVE. Administrators running NXP S32G-based systems or Azure Linux 3 should apply the relevant kernel updates promptly (Microsoft MSRC, Ubuntu USN-8094-1, Ubuntu USN-8152-1).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."