Description
In the Linux kernel, the following vulnerability has been resolved: tracing/probes: bound symstr stores to reserved length Traceprobe calculates dynamic string sizes before storing the values. A probed pointer can change between those passes, so fetch_store_symstrlen() can reserve space for a short symbol while fetch_store_symstring() observes a longer one. The store path then overwrites the trace record. Format the symbol into a temporary KSYM_SYMBOL_LEN buffer and copy only the bytes that fit in the reserved field, including a trailing NUL. Update __data_loc with the length actually stored so consumers do not read beyond the truncated value.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
3a1a229712efa8e72adaa44252c54b5e5e3f3dd7 to < 404dfc8032fe7f2666392a3760a6fd7af97e216daffectedb26a124cbfa80f42bfc4e63e1d5643ca98159d66 to < 379aebf3249fe01ab2986fdf0eddf59bd814362faffectedb26a124cbfa80f42bfc4e63e1d5643ca98159d66 to < 70f7db5d01498b73569e7bf2c4799557832e3b28affectedb26a124cbfa80f42bfc4e63e1d5643ca98159d66 to < 864eed53e970e9a46c4f315d7924bf1f987caba8affectedb26a124cbfa80f42bfc4e63e1d5643ca98159d66 to < 2fc0b3070d6d5dcecfed43cd0e62aa0fd4b4315caffected16cc222026113f568cdcdb44f13fa64730132ebfaffected5.15.124 to < 5.15.227affected6.1.43 to < 6.2affected
Linux Linux
Default version status: affected
6.2affected0 to < 6.2unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/404dfc8032fe7f2666392a3760a6fd7af97e216d ↗
- https://git.kernel.org/stable/c/379aebf3249fe01ab2986fdf0eddf59bd814362f ↗
- https://git.kernel.org/stable/c/70f7db5d01498b73569e7bf2c4799557832e3b28 ↗
- https://git.kernel.org/stable/c/864eed53e970e9a46c4f315d7924bf1f987caba8 ↗
- https://git.kernel.org/stable/c/2fc0b3070d6d5dcecfed43cd0e62aa0fd4b4315c ↗