# CVE-2024-58007: soc: qcom: socinfo: Avoid out of bounds read of serial number

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-02-27T02:12:03.593Z
- **Modified:** 2026-06-17T08:14:25.823Z

## Who should check

- Anyone running Linux \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 7445fa05317534bbd8b373c0eff8319187916030; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 2495c6598731b6d7f565140f2bd63ef4bc36ce7d; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 9c88b3a3fae4d60641c3a45be66269d00eff33cd; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 47470acd719d45c4c8c418c07962f74cc995652b; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 407c928305c1a37232a63811c400ef616f85ccbc; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 0a92feddae0634a0b87c04b19d343f6af97af700; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0
- Anyone running Linux 5.4

## Description

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

soc: qcom: socinfo: Avoid out of bounds read of serial number

On MSM8916 devices, the serial number exposed in sysfs is constant and does
not change across individual devices. It's always:

  db410c:/sys/devices/soc0$ cat serial\_number
  2644893864

The firmware used on MSM8916 exposes SOCINFO\_VERSION(0, 8), which does not
have support for the serial\_num field in the socinfo struct. There is an
existing check to avoid exposing the serial number in that case, but it's
not correct: When checking the item\_size returned by SMEM, we need to make
sure the \*end\* of the serial\_num is within bounds, instead of comparing
with the \*start\* offset. The serial\_number currently exposed on MSM8916
devices is just an out of bounds read of whatever comes after the socinfo
struct in SMEM.

Fix this by changing offsetof() to offsetofend(), so that the size of the
field is also taken into account.

## Affected and fixed versions

- Linux: \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 7445fa05317534bbd8b373c0eff8319187916030; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 2495c6598731b6d7f565140f2bd63ef4bc36ce7d; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 9c88b3a3fae4d60641c3a45be66269d00eff33cd; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 47470acd719d45c4c8c418c07962f74cc995652b; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 407c928305c1a37232a63811c400ef616f85ccbc; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 0a92feddae0634a0b87c04b19d343f6af97af700; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-58007. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58007.md
Affected: Linux >= efb448d0a3fca01bb987dd70963da6185b81751e, < 7445fa05317534bbd8b373c0eff8319187916030; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 2495c6598731b6d7f565140f2bd63ef4bc36ce7d; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd; >= efb448d0a3fca01bb987dd7…
Fixed in: Linux 7445fa05317534bbd8b373c0eff8319187916030, Linux 2495c6598731b6d7f565140f2bd63ef4bc36ce7d, Linux 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd, Linux 9c88b3a3fae4d60641c3a45be66269d00eff33cd, Linux 47470acd719d45c4c8c418c07962f74cc995652b, Linux 407c928305c1a37232a63811c400ef616f85ccbc, Linux 0a92f…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-58007 being exploited?

There is no confirmed exploitation: CVE-2024-58007 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-58007?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-58007?

Linux \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 7445fa05317534bbd8b373c0eff8319187916030; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 2495c6598731b6d7f565140f2bd63ef4bc36ce7d; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 9c88b3a3fae4d60641c3a45be66269d00eff33cd; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 47470acd719d45c4c8c418c07962f74cc995652b; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 407c928305c1a37232a63811c400ef616f85ccbc; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 0a92feddae0634a0b87c04b19d343f6af97af700; \>= efb448d0a3fca01bb987dd70963da6185b81751e, \< 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0; Linux 5.4.

### Is there a fix for CVE-2024-58007?

Yes. Fixed in Linux 7445fa05317534bbd8b373c0eff8319187916030, Linux 2495c6598731b6d7f565140f2bd63ef4bc36ce7d, Linux 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd, Linux 9c88b3a3fae4d60641c3a45be66269d00eff33cd, Linux 47470acd719d45c4c8c418c07962f74cc995652b, Linux 407c928305c1a37232a63811c400ef616f85ccbc, Linux 0a92feddae0634a0b87c04b19d343f6af97af700, Linux 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0. Upgrade Linux to 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0 or later.

### How do I check if I'm affected by CVE-2024-58007?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9c88b3a3fae4d60641c3a45be66269d00eff33cd>
- patch: <https://git.kernel.org/stable/c/47470acd719d45c4c8c418c07962f74cc995652b>
- patch: <https://git.kernel.org/stable/c/407c928305c1a37232a63811c400ef616f85ccbc>
- patch: <https://git.kernel.org/stable/c/0a92feddae0634a0b87c04b19d343f6af97af700>
- patch: <https://git.kernel.org/stable/c/22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0>
- other: <https://git.kernel.org/stable/c/7445fa05317534bbd8b373c0eff8319187916030>
- other: <https://git.kernel.org/stable/c/2495c6598731b6d7f565140f2bd63ef4bc36ce7d>
- other: <https://git.kernel.org/stable/c/2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-58007>

HTML: <https://flawdb.com/CVE-2024-58007> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-58007>
