Commit fbc3c89
committed
net: wwan: iosm: Fix tainted pointer delete is case of region creation fail
jira LE-1907
cve CVE-2024-40939
Rebuild_History Non-Buildable kernel-5.14.0-427.33.1.el9_4
commit-author Aleksandr Mishin <amishin@t-argos.ru>
commit b0c9a26
In case of region creation fail in ipc_devlink_create_region(), previously
created regions delete process starts from tainted pointer which actually
holds error code value.
Fix this bug by decreasing region index before delete.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 4dcd183 ("net: wwan: iosm: devlink registration")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240604082500.20769-1-amishin@t-argos.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit b0c9a26)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 76a3d6c commit fbc3c89
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments