# CVE-2022-49475: spi: spi-fsl-qspi: check return value after calling platform_get_resource_byname()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:17.353Z
- Modified: 2026-06-17T05:18:10.037Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

spi: spi-fsl-qspi: check return value after calling platform_get_resource_byname()

It will cause null-ptr-deref if platform_get_resource_byname() returns NULL,
we need check the return value.

(As written by CVE List.)

## Affected

- Linux Linux: from 858e26a515c28df3ef542d9c09493b54a329d6cf before 560dcbe1c7a78f597f2167371ebdbe2bca3d0735; from 858e26a515c28df3ef542d9c09493b54a329d6cf before 10f537219629769498ecb8515e096be213224c24; from 858e26a515c28df3ef542d9c09493b54a329d6cf before 33dda87d04598ac5d9a849218a373443f7d3de66; from 858e26a515c28df3ef542d9c09493b54a329d6cf before 9d9c84825c3ec359b165c762a424cfdefe87fdd7; from 858e26a515c28df3ef542d9c09493b54a329d6cf before a2b331ac11e1cac56f5b7d367e9f3c5796deaaed; 5.8 (not affected: before 5.8; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.8 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/560dcbe1c7a78f597f2167371ebdbe2bca3d0735> (patch)
- <https://git.kernel.org/stable/c/10f537219629769498ecb8515e096be213224c24> (patch)
- <https://git.kernel.org/stable/c/33dda87d04598ac5d9a849218a373443f7d3de66> (patch)
- <https://git.kernel.org/stable/c/9d9c84825c3ec359b165c762a424cfdefe87fdd7> (patch)
- <https://git.kernel.org/stable/c/a2b331ac11e1cac56f5b7d367e9f3c5796deaaed> (patch)

## Sources

- CVE List: [CVE-2022-49475](https://www.cve.org/CVERecord?id=CVE-2022-49475), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49475](https://nvd.nist.gov/vuln/detail/CVE-2022-49475), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49475 · Whole record: https://cve.day/CVE-2022-49475.json · Rebuilt by cve.day 2026-11-25T22:58:20.679Z
