platform/chrome: cros_ec_chardev: fix kernel data leak from ioctl
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eda2e30c6684d67288edb841c6125d48c608a242 · < b20cf3f89c56b5f6a38b7f76a8128bf9f291bbd3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
platform/chrome: cros_ec_chardev: fix kernel data leak from ioctl
It is possible to peep kernel page's data by providing larger `insize` in struct cros_ec_command[1] when invoking EC host commands.
Fix it by using zeroed memory.
[1]: https://elixir.bootlin.com/linux/v6.2/source/include/linux/platform_data/cros_ec_proto.h#L74
From the CVE record · Linux
The Linux kernel’s cros_ec_chardev ioctl can expose kernel page data when a caller supplies an oversized insize in a cros_ec_command. An attacker able to invoke EC host commands through this ioctl could read that data; the input does not specify authentication requirements.
Teams running Linux kernels with the cros_ec_chardev component should check their kernel version; affected versions are not specified.