Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-58007

HIGH 7.1EPSS 18%

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

Mitigation

  • Upgrade Linux to 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0 or later.

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

Vulnerability facts

Affected
Linux >= efb448d0a3fca01bb987dd70963da6185b81751e, < 7445fa05317534bbd8b373c0eff8319187916030; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 2495c6598731b6d7f565140f2bd63ef4bc36ce7d; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 9c88b3a3fae4d60641c3a45be66269d00eff33cd; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 47470acd719d45c4c8c418c07962f74cc995652b; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 407c928305c1a37232a63811c400ef616f85ccbc; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 0a92feddae0634a0b87c04b19d343f6af97af700; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0; Linux 5.4
Fixed in
Linux 7445fa05317534bbd8b373c0eff8319187916030, Linux 2495c6598731b6d7f565140f2bd63ef4bc36ce7d, Linux 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd, Linux 9c88b3a3fae4d60641c3a45be66269d00eff33cd, Linux 47470acd719d45c4c8c418c07962f74cc995652b, Linux 407c928305c1a37232a63811c400ef616f85ccbc, Linux 0a92feddae0634a0b87c04b19d343f6af97af700, Linux 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.1 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
CWE
CWE-125
Published
Modified

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

Package / productAffectedFixedSource
Linux>= efb448d0a3fca01bb987dd70963da6185b81751e, < 7445fa05317534bbd8b373c0eff8319187916030; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 2495c6598731b6d7f565140f2bd63ef4bc36ce7d; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 9c88b3a3fae4d60641c3a45be66269d00eff33cd; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 47470acd719d45c4c8c418c07962f74cc995652b; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 407c928305c1a37232a63811c400ef616f85ccbc; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 0a92feddae0634a0b87c04b19d343f6af97af700; >= efb448d0a3fca01bb987dd70963da6185b81751e, < 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0—cvelist
Linux5.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors