CVE-2024-58007

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

HIGH
7.1
CVSS Score
Published: February 27, 2025 at 02:12 AM UTC
Updated: June 17, 2026 at 08:14 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.4 ≤ v < 5.10.2355.4 ≤ v < 5.15.1795.4 ≤ v < 5.4.2915.4 ≤ v < 6.1.1295.4 ≤ v < 6.12.145.4 ≤ v < 6.13.35.4 ≤ v < 6.145.4 ≤ v < 6.6.786.13 ≤ v < 6.13.36.2 ≤ v < 6.6.786.7 ≤ v < 6.12.145.4efb448d0a3fca01bb987dd70963da6185b81751e
Vendor states this is fixed in 0a92feddae0634a0b87c04b19d343f6af97af700 (fixed)
Vendor states this is fixed in 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0 (fixed)
Vendor states this is fixed in 2495c6598731b6d7f565140f2bd63ef4bc36ce7d (fixed)
Vendor states this is fixed in 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd (fixed)
Vendor states this is fixed in 407c928305c1a37232a63811c400ef616f85ccbc (fixed)
Vendor states this is fixed in 47470acd719d45c4c8c418c07962f74cc995652b (fixed)
Vendor states this is fixed in 7445fa05317534bbd8b373c0eff8319187916030 (fixed)
Vendor states this is fixed in 9c88b3a3fae4d60641c3a45be66269d00eff33cd (fixed)
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Vendor states this is fixed in 5.4 (unaffected)
Vendor states this is fixed in 5.4.291 (unaffected)
Vendor states this is fixed in 6.1.129 (unaffected)
Vendor states this is fixed in 6.12.14 (unaffected)
Vendor states this is fixed in 6.13.3 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.78 (unaffected)

References (10)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card