# CVE-2026-46261: spi: wpcm-fiu: Fix potential NULL pointer dereference in wpcm_fiu_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-03T15:49:58.684Z
- Modified: 2026-07-20T20:10:00.110Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

spi: wpcm-fiu: Fix potential NULL pointer dereference in wpcm_fiu_probe()

platform_get_resource_byname() can return NULL, which would cause a crash
when passed the pointer to resource_size().

Move the fiu->memory_size assignment after the error check for
devm_ioremap_resource() to prevent the potential NULL pointer dereference.

(As written by CVE List.)

## Affected

- Linux Linux: from 9838c182471ee5532824bae7f2669d3539719f78 before 9e5cb7e67fbdb8320d68d87db882a92b36f6a1d9; from 9838c182471ee5532824bae7f2669d3539719f78 before 2c538a0b3472e99c892c26f4940da38b7d87f632; from 9838c182471ee5532824bae7f2669d3539719f78 before 0f93a80eb3fd596ddc5730d05e0e8c88e1aa2891; from 9838c182471ee5532824bae7f2669d3539719f78 before cb9b2dc34a9eef0855edb00ae9c9b7f72394281b; from 9838c182471ee5532824bae7f2669d3539719f78 before 888a0a802c467bbe34a42167bdf9d7331333440a; 6.2 (not affected: before 6.2; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/9e5cb7e67fbdb8320d68d87db882a92b36f6a1d9> (patch)
- <https://git.kernel.org/stable/c/2c538a0b3472e99c892c26f4940da38b7d87f632> (patch)
- <https://git.kernel.org/stable/c/0f93a80eb3fd596ddc5730d05e0e8c88e1aa2891> (patch)
- <https://git.kernel.org/stable/c/cb9b2dc34a9eef0855edb00ae9c9b7f72394281b> (patch)
- <https://git.kernel.org/stable/c/888a0a802c467bbe34a42167bdf9d7331333440a> (patch)

## Sources

- CVE List: [CVE-2026-46261](https://www.cve.org/CVERecord?id=CVE-2026-46261), CVE Terms of Use, modified 2026-06-03
- NVD: [CVE-2026-46261](https://nvd.nist.gov/vuln/detail/CVE-2026-46261), Public domain, modified 2026-07-20

---

Page: https://cve.day/CVE-2026-46261 · Whole record: https://cve.day/CVE-2026-46261.json · Rebuilt by cve.day 2026-11-25T22:59:23.660Z
