hwmon: (asus_atk0110) Check package count before accessing element
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9e6eba610c2eb68b05841a15ece1cf929c44aea3 · < d8d4fa0c4f818e30b6f6737bdd989b7e2b511cae| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (asus_atk0110) Check package count before accessing element
atk_ec_present() walks the management group package returned by the GGRP ACPI method and, for each sub-package, reads its first element:
id = &obj->package.elements[0]; if (id->type != ACPI_TYPE_INTEGER)
without checking that the sub-package is non-empty. ACPICA allocates the element array with exactly package.count entries, so for a sub-package with a zero count this reads past the allocation.
The sibling function atk_debugfs_ggrp_open() performs the same access but skips empty packages with a package.count check first. Add the same check to atk_ec_present() so a malformed firmware package cannot trigger an out-of-bounds read.
From the CVE record · Linux
The Linux kernel’s asus_atk0110 hwmon driver reads the first element of a firmware-provided ACPI sub-package without checking whether it is empty. A malformed firmware package can trigger an out-of-bounds read; the input does not describe an attacker access path, authentication requirement, or user interaction.
Engineers running Linux kernels with the asus_atk0110 hwmon driver should check their versions; affected versions are not specified.