net/rose: prevent integer overflows in rose_setsockopt()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < e5338930a29d0ab2a5af402f5f664aeba0d1a676| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
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.
From the CVE record · Linux
The Linux kernel's net/rose rose_setsockopt() can overflow integers when an unexpectedly large option value is multiplied. An attacker able to pass such a value could trigger the overflow; the input does not specify access requirements or whether user interaction is needed.
Teams running the Linux kernel should check whether their version includes the net/rose rose_setsockopt() fix; affected versions were not specified.