Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: eth: ice: don't dereference pointers from TP_printk() After forwarding net-next during the v7.3 merge window we started seeing: TRACE EVENT ERROR: Event ice_tx_dim_work has double dereference in TP_printk: REC->q_vector->tx.tx_ring->q_index WARNING: kernel/trace/trace_events.c:420 at test_double_dereference.cold+0x39/0x4b this is due to extra checks added in tracing subsystem in commit b5cc230af5e5 ("tracing: Warn when an event dereferences a pointer in TP_printk()"). Printing happens long after the event was recorded, by which point the pointers may be invalid (the ring or the dim instance). Copy the eight scalars into the event instead.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 3089cf6d3caa1eb344aac05c875f4aeaf891552d before 385aa7dbc6af11d90a5dd1261dbe75950eb7ca93; affected 3089cf6d3caa1eb344aac05c875f4aeaf891552d before ae230874e3ba27e975a9bb21a6ffd05d6a2ea318; affected 3089cf6d3caa1eb344aac05c875f4aeaf891552d before 0b0d2f9db2406aa541a8bc3737f4f4aae1cafde9; affected 3089cf6d3caa1eb344aac05c875f4aeaf891552d before c42db35518bb0eae42ec955520eee0aa94a4a6fe; affected 3089cf6d3caa1eb344aac05c875f4aeaf891552d before b8bf9bfda5f62e11444e483c2b4aaff90c5cfc6b |
| Linux / Linux | affected 5.14; unaffected 0 before 5.14; unaffected 6.6.160 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2.7 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/385aa7dbc6af11d90a5dd1261dbe75950eb7ca93
- https://git.kernel.org/stable/c/ae230874e3ba27e975a9bb21a6ffd05d6a2ea318
- https://git.kernel.org/stable/c/0b0d2f9db2406aa541a8bc3737f4f4aae1cafde9
- https://git.kernel.org/stable/c/c42db35518bb0eae42ec955520eee0aa94a4a6fe
- https://git.kernel.org/stable/c/b8bf9bfda5f62e11444e483c2b4aaff90c5cfc6b