{"id":"CVE-2024-58007","aliases":["CVE-2024-58007"],"related":[],"kind":"vulnerability","state":"published","title":"soc: qcom: socinfo: Avoid out of bounds read of serial number","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: socinfo: Avoid out of bounds read of serial number\n\nOn MSM8916 devices, the serial number exposed in sysfs is constant and does\nnot change across individual devices. It's always:\n\n  db410c:/sys/devices/soc0$ cat serial_number\n  2644893864\n\nThe firmware used on MSM8916 exposes SOCINFO_VERSION(0, 8), which does not\nhave support for the serial_num field in the socinfo struct. There is an\nexisting check to avoid exposing the serial number in that case, but it's\nnot correct: When checking the item_size returned by SMEM, we need to make\nsure the *end* of the serial_num is within bounds, instead of comparing\nwith the *start* offset. The serial_number currently exposed on MSM8916\ndevices is just an out of bounds read of whatever comes after the socinfo\nstruct in SMEM.\n\nFix this by changing offsetof() to offsetofend(), so that the size of the\nfield is also taken into account.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: socinfo: Avoid out of bounds read of serial number\n\nOn MSM8916 devices, the serial number exposed in sysfs is constant and does\nnot change across individual devices. It's always:\n\n  db410c:/sys/devices/soc0$ cat serial_number\n  2644893864\n\nThe firmware used on MSM8916 exposes SOCINFO_VERSION(0, 8), which does not\nhave support for the serial_num field in the socinfo struct. There is an\nexisting check to avoid exposing the serial number in that case, but it's\nnot correct: When checking the item_size returned by SMEM, we need to make\nsure the *end* of the serial_num is within bounds, instead of comparing\nwith the *start* offset. The serial_number currently exposed on MSM8916\ndevices is just an out of bounds read of whatever comes after the socinfo\nstruct in SMEM.\n\nFix this by changing offsetof() to offsetofend(), so that the size of the\nfield is also taken into account.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: soc: qcom: socinfo: Evitar la lectura fuera de los límites del número de serie En los dispositivos MSM8916, el número de serie expuesto en sysfs es constante y no cambia en los dispositivos individuales. Siempre es: db410c:/sys/devices/soc0$ cat serial_number 2644893864 El firmware utilizado en MSM8916 expone SOCINFO_VERSION(0, 8), que no tiene soporte para el campo serial_num en la estructura socinfo. Existe una comprobación para evitar exponer el número de serie en ese caso, pero no es correcta: Al comprobar el item_size devuelto por SMEM, debemos asegurarnos de que el *final* del serial_num esté dentro de los límites, en lugar de compararlo con el desplazamiento *inicio*. El serial_number que se expone actualmente en los dispositivos MSM8916 es simplemente una lectura fuera de límites de lo que viene después de la estructura sociinfo en SMEM. Solucione esto cambiando offsetof() a offsetofend(), de modo que también se tenga en cuenta el tamaño del campo.","source":"nvd"}],"published":"2025-02-27T02:12:03.593Z","modified":"2026-06-17T08:14:25.823Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"7445fa05317534bbd8b373c0eff8319187916030","status":"affected"},{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"2495c6598731b6d7f565140f2bd63ef4bc36ce7d","status":"affected"},{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd","status":"affected"},{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"9c88b3a3fae4d60641c3a45be66269d00eff33cd","status":"affected"},{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"47470acd719d45c4c8c418c07962f74cc995652b","status":"affected"},{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"407c928305c1a37232a63811c400ef616f85ccbc","status":"affected"},{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"0a92feddae0634a0b87c04b19d343f6af97af700","status":"affected"},{"type":"git","introduced":"efb448d0a3fca01bb987dd70963da6185b81751e","fixed":"22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.4.291","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.235","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.179","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.129","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.78","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.14","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.3","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4","fixed":"6.1.129"},{"status":"affected","introduced":"6.2","fixed":"6.6.78"},{"status":"affected","introduced":"6.7","fixed":"6.12.14"},{"status":"affected","introduced":"6.13","fixed":"6.13.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7445fa05317534bbd8b373c0eff8319187916030","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2495c6598731b6d7f565140f2bd63ef4bc36ce7d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d09d3c9afa2fc422ac3df7c9b8534f350ee19dd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c88b3a3fae4d60641c3a45be66269d00eff33cd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47470acd719d45c4c8c418c07962f74cc995652b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/407c928305c1a37232a63811c400ef616f85ccbc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a92feddae0634a0b87c04b19d343f6af97af700","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22cf4fae6660b6e1a583a41cbf84e3046ca9ccd0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58007","url":"https://www.cve.org/CVERecord?id=CVE-2024-58007","licence":"CVE Terms of Use","modified":"2026-05-11T21:01:59.707Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58007","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58007","licence":"Public domain","modified":"2026-06-17T08:14:25.823Z"}],"updatedAt":"2026-11-25T22:58:52.102Z","epss":{"score":0.00252,"percentile":0.17859,"date":"2026-12-01T12:00:22.000Z"}}