mtdchar: fix integer overflow in read/write ioctls
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtdchar: fix integer overflow in read/write ioctls
The "req.start" and "req.len" variables are u64 values that come from the user at the start of the function. We mask away the high 32 bits of "req.len" so that's capped at U32_MAX but the "req.start" variable can go up to U64_MAX which means that the addition can still integer overflow.
Use check_add_overflow() to fix this bug.
From the CVE record · Linux
The Linux kernel's mtdchar read/write ioctls can overflow when adding user-supplied start and length values. A local caller can trigger the overflow by supplying a sufficiently large start value; the input does not specify an additional authentication requirement or the resulting impact.
Engineers running Linux kernels with the affected mtdchar code should check their deployments; affected versions were not provided.