ppdev: Add an error check in register_device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9a69645dde1188723d80745c1bc6ee9af2cbe2a7 · < ec3468221efec6660ff656e9ebe51ced3520fc57| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ppdev: Add an error check in register_device
In register_device, the return value of ida_simple_get is unchecked, in witch ida_simple_get will use an invalid index value.
To address this issue, index should be checked after ida_simple_get. When the index value is abnormal, a warning message should be printed, the port should be dropped, and the value should be recorded.
From the CVE record · Linux
The Linux kernel’s ppdev register_device function does not check the return value of ida_simple_get and may use an invalid index. The input does not specify what an attacker could accomplish or whether exploitation requires local or network access, authentication, or user interaction.
Engineers running Linux kernels with the affected ppdev code should check their exposure; affected versions are not specified.