CVE-2025-68222
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management