# CVE-2022-50503: mtd: lpddr2_nvm: Fix possible null-ptr-deref

- 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.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-10-04T15:43:52.845Z
- Modified: 2026-06-17T05:23:40.810Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

mtd: lpddr2_nvm: Fix possible null-ptr-deref

It will cause null-ptr-deref when resource_size(add_range) invoked,
if platform_get_resource() returns NULL.

(As written by CVE List.)

## Affected

- Linux Linux: from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before 4d10bd7416e8383340b5524b8d616b8ad01ef1e1; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before bb9ccb6121ec4140d366147aa866ceb5a21a8d3d; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before e6aafb57d90ff2c1e18554f3a3c36247a59825ce; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before 8eb64dc5a790a529ef49ec94b3337af09dac15d3; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before 0919982a1744346269320615615c7deb14106661; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before e0d3e46ac6669cdf1b99bc7b7d92f1221b9a1ff2; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before f82f63b3911f1b2da68a14d9c4babf3b55feca55; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before c4cc41e94d8357f5f02b8ef40257bb23931d8438; from 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 before 6bdd45d795adf9e73b38ced5e7f750cd199499ff; 3.16 (not affected: before 3.16; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.16 before 4.9.337; from 4.10 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## References

- <https://git.kernel.org/stable/c/4d10bd7416e8383340b5524b8d616b8ad01ef1e1> (patch)
- <https://git.kernel.org/stable/c/bb9ccb6121ec4140d366147aa866ceb5a21a8d3d> (patch)
- <https://git.kernel.org/stable/c/e6aafb57d90ff2c1e18554f3a3c36247a59825ce> (patch)
- <https://git.kernel.org/stable/c/8eb64dc5a790a529ef49ec94b3337af09dac15d3> (patch)
- <https://git.kernel.org/stable/c/0919982a1744346269320615615c7deb14106661> (patch)
- <https://git.kernel.org/stable/c/e0d3e46ac6669cdf1b99bc7b7d92f1221b9a1ff2> (patch)
- <https://git.kernel.org/stable/c/f82f63b3911f1b2da68a14d9c4babf3b55feca55> (patch)
- <https://git.kernel.org/stable/c/c4cc41e94d8357f5f02b8ef40257bb23931d8438> (patch)
- <https://git.kernel.org/stable/c/6bdd45d795adf9e73b38ced5e7f750cd199499ff> (patch)

## Sources

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

---

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