cbcvebase.
CVE-2024-58007
published 2025-02-27

CVE-2024-58007: 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…

PriorityP430high7.1CVSS 3.1
AVLACLPRLUINSUCHINAH
EPSS
0.24%
15.2th percentile
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

24 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.129-1 (bookworm)linux 6.1.129-1 (bookworm)
debianlinux-6.1< linux 6.1.129-1 (bookworm)linux 6.1.129-1 (bookworm)
linuxlinux
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 7445fa05317534bbd8b373c0eff83191879160307445fa05317534bbd8b373c0eff8319187916030
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 2495c6598731b6d7f565140f2bd63ef4bc36ce7d2495c6598731b6d7f565140f2bd63ef4bc36ce7d
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 9c88b3a3fae4d60641c3a45be66269d00eff33cd9c88b3a3fae4d60641c3a45be66269d00eff33cd
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 47470acd719d45c4c8c418c07962f74cc995652b47470acd719d45c4c8c418c07962f74cc995652b
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 407c928305c1a37232a63811c400ef616f85ccbc407c928305c1a37232a63811c400ef616f85ccbc
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 0a92feddae0634a0b87c04b19d343f6af97af7000a92feddae0634a0b87c04b19d343f6af97af700
linuxlinux>= efb448d0a3fca01bb987dd70963da6185b81751e < 22cf4fae6660b6e1a583a41cbf84e3046ca9ccd022cf4fae6660b6e1a583a41cbf84e3046ca9ccd0
linuxlinux_kernel>= 0 < 5.10.237-15.10.237-1
linuxlinux_kernel>= 0 < 6.1.129-16.1.129-1
linuxlinux_kernel>= 0 < 6.12.15-16.12.15-1
linuxlinux_kernel>= 0 < 6.12.15-16.12.15-1
linuxlinux_kernel>= 0 < 5.4.0-216.2365.4.0-216.236
linuxlinux_kernel>= 0 < 5.15.0-140.1505.15.0-140.150
linuxlinux_kernel>= 0 < 6.8.0-64.676.8.0-64.67
linuxlinux_kernel>= 5.4 < 6.1.1296.1.129
linuxlinux_kernel>= 6.13 < 6.13.36.13.3
linuxlinux_kernel>= 6.2 < 6.6.786.6.78
linuxlinux_kernel>= 6.7 < 6.12.146.12.14
msrcazl3_kernel_6.6.64.2-9_on_azure_linux_3.0
msrccbl2_kernel_5.15.182.1-1_on_cbl_mariner_2.0

CVSS provenance

nvdv3.17.1HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian7.1HIGH
vendor_msrc7.1HIGH
vendor_redhat7.1HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.