Repository navigation
Commit fa40d97
tipc: fix size validations for the MSG_CRYPTO type
The function tipc_crypto_key_rcv is used to parse MSG_CRYPTO messages
to receive keys from other nodes in the cluster in order to decrypt any
further messages from them.
This patch verifies that any supplied sizes in the message body are
valid for the received message.
Fixes: 1ef6f7c ("tipc: add automatic session key exchange")
Signed-off-by: Max VA <maxv@sentinelone.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 2195f20 commit fa40d97
1 file changed
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2285 | 2285 | | |
2286 | 2286 | | |
2287 | 2287 | | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2288 | 2304 | | |
2289 | 2305 | | |
2290 | 2306 | | |
2291 | 2307 | | |
2292 | 2308 | | |
2293 | | - | |
| 2309 | + | |
2294 | 2310 | | |
2295 | 2311 | | |
2296 | 2312 | | |
2297 | 2313 | | |
2298 | 2314 | | |
2299 | 2315 | | |
2300 | | - | |
| 2316 | + | |
2301 | 2317 | | |
2302 | 2318 | | |
2303 | 2319 | | |
2304 | | - | |
| 2320 | + | |
2305 | 2321 | | |
2306 | 2322 | | |
2307 | 2323 | | |
2308 | 2324 | | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
2312 | | - | |
2313 | | - | |
2314 | | - | |
2315 | | - | |
2316 | 2325 | | |
2317 | 2326 | | |
2318 | 2327 | | |
2319 | 2328 | | |
2320 | 2329 | | |
2321 | 2330 | | |
2322 | | - | |
| 2331 | + | |
2323 | 2332 | | |
2324 | 2333 | | |
| 2334 | + | |
2325 | 2335 | | |
2326 | 2336 | | |
2327 | 2337 | | |
| |||
0 commit comments