CVE-2022-50087 firmware: arm_scpi: Ensure scpi_info is not assigned if the probe fails
A use-after-free vulnerability in the Linux kernel's ARM SCPI firmware driver allows attackers to potentially execute code or escalate privileges if the probe fails.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50087?
CVE-2022-50087 is a high-severity use after free vulnerability in Linux kernel, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_scpi: Ensure scpi_info is not assigned if the probe fails
When scpi probe fails, at any point, we need to ensure that the scpi_info is not set and will remain NULL until the probe succeeds. If it is not taken care, then it could result use-after-free as the value is exported via get_scpi_ops() and could refer to a memory allocated via devm_kzalloc() but freed when the probe fails.
Weakness: CWE-416
Which versions are affected by CVE-2022-50087?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50087?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-50087 being exploited?
There is no known exploitation of CVE-2022-50087 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50087, GHSA-5x8j-6m8p-fvgx, UBUNTU-CVE-2022-50087.