CVE-2024-58084

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-58084
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58084.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-58084
Downstream
Related
Published
2025-03-06T17:15:21Z
Modified
2025-03-24T18:30:09Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

firmware: qcom: scm: Fix missing read barrier in qcomscmgettzmempool()

Commit 2e4955167ec5 ("firmware: qcom: scm: Fix scm and waitq completion variable initialization") introduced a write barrier in probe function to store global 'scm' variable. We all known barriers are paired (see memory-barriers.txt: "Note that write barriers should normally be paired with read or address-dependency barriers"), therefore accessing it from concurrent contexts requires read barrier. Previous commit added such barrier in qcomscmis_available(), so let's use that directly.

Lack of this read barrier can result in fetching stale '__scm' variable value, NULL, and dereferencing it.

Note that barrier in qcomscmis_available() satisfies here the control dependency.

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.15-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}