You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
firmware: arm_scpi: Ensure scpi_info is not assigned if the probe fails
jira VULN-70082
cve CVE-2022-50087
commit-author Sudeep Holla <[email protected]>
commit 689640e
upstream-diff |
Adjusted context in the scpi_probe func due to missing commit
43b9ac9 ("firmware: arm_scpi: convert platform driver to use dev_groups")
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.
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected] # 4.19+
Reported-by: huhai <[email protected]>
Reviewed-by: Jackie Liu <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
(cherry picked from commit 689640e)
Signed-off-by: Roxana Nicolescu <[email protected]>
0 commit comments