Overview
About vulnerability
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.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , Debian 11 ELS , Oracle Linux 7 ELS , TuxCare 9.6 ESU , TuxCare 9.8 ESU , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 5.14.0-11 (+8 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Will Not Fix |
66 kernels
|
| AlmaLinux 9 | Released |
51 kernels
|
| Debian 11 | Released |
34 kernels
|
| Debian 11 cloud | Released |
14 kernels
|
| Debian 12 | Released |
22 kernels
|
| Oracle Linux 10 | Will Not Fix |
52 kernels
|
| Oracle Linux 9 | Released |
57 kernels
|
| Proxmox VE 7 5.15 | Released |
47 kernels
|
| RHEL 10 | Will Not Fix |
67 kernels
|
| RHEL 9 | Released |
51 kernels
|
| Rocky Linux 10 | Will Not Fix |
50 kernels
|
| Rocky Linux 9 | Released |
49 kernels
|
| Ubuntu 18.04 AWS Focal | Will Not Fix |
56 kernels
|
| Ubuntu 18.04 HWE Focal | Will Not Fix |
69 kernels
|
| Ubuntu 20.04 | Will Not Fix |
126 kernels
|
| Ubuntu 20.04 AWS | Will Not Fix |
108 kernels
|
| Ubuntu 20.04 Azure | Will Not Fix |
99 kernels
|
| Ubuntu 20.04 GCP | Ready For Release | — |
| Ubuntu 20.04 HWE AWS | Released |
56 kernels
|
| Ubuntu 20.04 HWE Azure | Released |
39 kernels
|
| Ubuntu 22.04 | Released |
73 kernels
|
| Ubuntu 22.04 AWS | Released |
64 kernels
|
| Ubuntu 22.04 Azure | Released |
60 kernels
|
| Ubuntu 24.04 | Will Not Fix |
25 kernels
|
| Ubuntu 24.04 AWS | Planned | — |