diff options
| author | Nikita Zhandarovich <[email protected]> | 2025-01-15 16:42:20 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-01-21 00:36:33 +0000 |
| commit | d640627663bfe7d8963c7615316d7d4ef60f3b0b (patch) | |
| tree | 791aa6f47ee1a4c641a0664f87137f95887e2a3a /drivers/net/ethernet/intel/igc | |
| parent | tcp_cubic: fix incorrect HyStart round start detection (diff) | |
| download | kernel-d640627663bfe7d8963c7615316d7d4ef60f3b0b.tar.gz kernel-d640627663bfe7d8963c7615316d7d4ef60f3b0b.zip | |
net/rose: prevent integer overflows in rose_setsockopt()
In case of possible unpredictably large arguments passed to
rose_setsockopt() and multiplied by extra values on top of that,
integer overflows may occur.
Do the safest minimum and fix these issues by checking the
contents of 'opt' and returning -EINVAL if they are too large. Also,
switch to unsigned int and remove useless check for negative 'opt'
in ROSE_IDLE case.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Nikita Zhandarovich <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions
