Commit dc5b1dd
committed
crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
jira LE-1907
cve CVE-2024-26974
Rebuild_History Non-Buildable kernel-5.14.0-427.24.1.el9_4
commit-author Herbert Xu <[email protected]>
commit d3b17c6
Using completion_done to determine whether the caller has gone
away only works after a complete call. Furthermore it's still
possible that the caller has not yet called wait_for_completion,
resulting in another potential UAF.
Fix this by making the caller use cancel_work_sync and then freeing
the memory safely.
Fixes: 7d42e09 ("crypto: qat - resolve race condition during AER recovery")
Cc: <[email protected]> #6.8+
Signed-off-by: Herbert Xu <[email protected]>
Reviewed-by: Giovanni Cabiddu <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
(cherry picked from commit d3b17c6)
Signed-off-by: Jonathan Maple <[email protected]>1 parent e518fc7 commit dc5b1dd
1 file changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 149 | + | |
| 150 | + | |
160 | 151 | | |
161 | 152 | | |
162 | 153 | | |
| |||
191 | 182 | | |
192 | 183 | | |
193 | 184 | | |
| 185 | + | |
194 | 186 | | |
195 | | - | |
196 | | - | |
197 | 187 | | |
| 188 | + | |
198 | 189 | | |
199 | 190 | | |
200 | 191 | | |
| |||
0 commit comments