Commit 0a892d7
committed
net: atm: fix use after free in lec_send()
jira VULN-56266
cve CVE-2025-22004
commit-author Dan Carpenter <dan.carpenter@linaro.org>
commit f3009d0
The ->send() operation frees skb so save the length before calling
->send() to avoid a use after free.
Fixes: 1da177e ("Linux-2.6.12-rc2")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/c751531d-4af4-42fe-affe-6104b34b791d@stanley.mountain
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit f3009d0)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 4065643 commit 0a892d7
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
0 commit comments