Junglewise Threat Intelligence

CVE-2026-46261: Linux Kernel NULL pointer dereference in wpcm-fiu SPI driver

CVE-2026-46261 · Severity: info · Published 2026-06-03

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's SPI driver for WPCM-FIU components, which are used for interfacing with flash memory. A flaw in how the system initializes this hardware could lead to a system crash (NULL pointer dereference) if certain expected memory resources are missing. This primarily impacts system stability and availability, potentially allowing a local user to cause a denial-of-service condition.

Technical details

A potential NULL pointer dereference exists in the wpcm_fiu_probe() function within drivers/spi/spi-wpcm-fiu.c. The vulnerability occurs because the return value of platform_get_resource_byname() is passed directly to resource_size() without a prior NULL check. If the 'memory' resource is missing, platform_get_resource_byname() returns NULL, leading to a kernel oops when resource_size() attempts to access the pointer. The fix involves reordering the code to ensure the resource pointer is validated via devm_ioremap_resource() before it is used in size calculations. This is a local vulnerability that can be triggered during driver initialization or device discovery.

Affected products

  • Linux Linux Kernel Fixed in various stable branches including 2.6.x and 6.x series

Timeline

  • 2026-02-12: other: Patch authored by Felix Gu
  • 2026-06-03: advisory: CVE published in NVD dataset

References