{"id":"CVE-2022-50087","summary":"firmware: arm_scpi: Ensure scpi_info is not assigned if the probe fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_scpi: Ensure scpi_info is not assigned if the probe fails\n\nWhen scpi probe fails, at any point, we need to ensure that the scpi_info\nis not set and will remain NULL until the probe succeeds. If it is not\ntaken care, then it could result use-after-free as the value is exported\nvia get_scpi_ops() and could refer to a memory allocated via devm_kzalloc()\nbut freed when the probe fails.","modified":"2026-05-12T03:53:27.720335Z","published":"2025-06-18T11:02:28.079Z","related":["ALSA-2025:16919","ALSA-2025:16920","ALSA-2025:18281","SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02334-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50087.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/08272646cd7c310642c39b7f54348fddd7987643"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0c29e149b6bb498778ed8a1c9597b51acfba7856"},{"type":"WEB","url":"https://git.kernel.org/stable/c/18048cba444a7c41dbf42c180d6b46606fc24c51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f2d7b46d6b53c07f44a4f8f8f4438888f0e9e87"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5aa558232edc30468d1f35108826dd5b3ffe978f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/689640efc0a2c4e07e6f88affe6d42cd40cc3f85"},{"type":"WEB","url":"https://git.kernel.org/stable/c/87c4896d5dd7fd9927c814cf3c6289f41de3b562"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50087.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50087"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8cb7cf56c9fe5412de238465b27ef35b4d2801aa"},{"fixed":"5aa558232edc30468d1f35108826dd5b3ffe978f"},{"fixed":"18048cba444a7c41dbf42c180d6b46606fc24c51"},{"fixed":"08272646cd7c310642c39b7f54348fddd7987643"},{"fixed":"0c29e149b6bb498778ed8a1c9597b51acfba7856"},{"fixed":"87c4896d5dd7fd9927c814cf3c6289f41de3b562"},{"fixed":"4f2d7b46d6b53c07f44a4f8f8f4438888f0e9e87"},{"fixed":"689640efc0a2c4e07e6f88affe6d42cd40cc3f85"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50087.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.4.0"},{"fixed":"4.19.256"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.211"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.137"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.18.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"5.19.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50087.json"}}],"schema_version":"1.7.5"}