{"schema_version":"1.9.0","id":"CVE-2022-50503","published":"2025-10-04T15:43:52.845Z","modified":"2026-08-12T03:51:37.925056786Z","related":["SUSE-SU-2025:4111-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4320-1"],"summary":"mtd: lpddr2_nvm: Fix possible null-ptr-deref","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: lpddr2_nvm: Fix possible null-ptr-deref\n\nIt will cause null-ptr-deref when resource_size(add_range) invoked,\nif platform_get_resource() returns NULL.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25"},{"fixed":"4d10bd7416e8383340b5524b8d616b8ad01ef1e1"},{"fixed":"bb9ccb6121ec4140d366147aa866ceb5a21a8d3d"},{"fixed":"e6aafb57d90ff2c1e18554f3a3c36247a59825ce"},{"fixed":"8eb64dc5a790a529ef49ec94b3337af09dac15d3"},{"fixed":"0919982a1744346269320615615c7deb14106661"},{"fixed":"e0d3e46ac6669cdf1b99bc7b7d92f1221b9a1ff2"},{"fixed":"f82f63b3911f1b2da68a14d9c4babf3b55feca55"},{"fixed":"c4cc41e94d8357f5f02b8ef40257bb23931d8438"},{"fixed":"6bdd45d795adf9e73b38ced5e7f750cd199499ff"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50503.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.16.0"},{"fixed":"4.9.337"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50503.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0919982a1744346269320615615c7deb14106661"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4d10bd7416e8383340b5524b8d616b8ad01ef1e1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6bdd45d795adf9e73b38ced5e7f750cd199499ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8eb64dc5a790a529ef49ec94b3337af09dac15d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bb9ccb6121ec4140d366147aa866ceb5a21a8d3d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c4cc41e94d8357f5f02b8ef40257bb23931d8438"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0d3e46ac6669cdf1b99bc7b7d92f1221b9a1ff2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e6aafb57d90ff2c1e18554f3a3c36247a59825ce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f82f63b3911f1b2da68a14d9c4babf3b55feca55"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50503.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50503"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50503.json"}}