firmware: arm_scpi: Ensure scpi_info is not assigned if the probe fails (Linux Linux)

CVE-2022-50087
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.20 % · percentile 10 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 8cb7cf56c9fe5412de238465b27ef35b4d2801aa < 5aa558232edc30468d1f35108826dd5b3ffe978f ; affected 8cb7cf56c9fe5412de238465b27ef35b4d2801aa < 18048cba444a7c41dbf42c180d6b46606fc24c51 ; affected 8cb7cf56c9fe5412de238465b27ef35b4d2801aa < 08272646cd7c310642c39b7f54348fddd7987643 ; affected 8cb7cf56c9fe5412de238465b27ef35b4d2801aa < 0c29e149b6bb498778ed8a1c9597b51acfba7856 ; affected 8cb7cf56c9fe5412de238465b27ef35b4d2801aa < 87c4896d5dd7fd9927c814cf3c6289f41de3b562 ; affected 8cb7cf56c9fe5412de238465b27ef35b4d2801aa < 4f2d7b46d6b53c07f44a4f8f8f4438888f0e9e87
Linux · Linuxaffected 4.4 ; unaffected 0 < 4.4 ; unaffected 4.19.256 ≤ 4.19.* ; unaffected 5.4.211 ≤ 5.4.* ; unaffected 5.10.137 ≤ 5.10.* ; unaffected 5.15.61 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD