summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWeiming Shi <bestswngs@gmail.com>2026-05-27 21:05:42 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-05-27 21:18:46 +0300
commitf8d14b7bb0063bbbd86c0e4d73edb8cea7b362bc (patch)
treeb89ce7a28771e3067207f7a5c013d36df6a5aa28 /include/linux
parentb2e21fe8c3361c3d0d57ee56d359bea9b51fda3d (diff)
downloadlinux-f8d14b7bb0063bbbd86c0e4d73edb8cea7b362bc.tar.xz
ACPICA: Fix NULL pointer dereference in acpi_ns_custom_package()
acpi_ns_custom_package() unconditionally dereferences the first element of the package to read the _BIX version number, without checking for NULL: if ((*Elements)->Common.Type != ACPI_TYPE_INTEGER) When firmware returns a _BIX package whose first element is an unresolvable reference, ACPICA evaluates that entry to NULL. acpi_ns_remove_null_elements() does not strip NULL entries for ACPI_PTYPE_CUSTOM packages (fixed-position format would break if elements were shifted), so acpi_ns_custom_package() sees the NULL and causes a crash. Add a NULL check for the first element (version field) before dereferencing it. The caller then receives AE_AML_OPERAND_TYPE instead of crashing. Link: https://github.com/acpica/acpica/commit/f3f111b9013b Reported-by: Xiang Mei <xmei5@asu.edu> Reported-by: Weiming Shi <bestswngs@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/5674388.Sb9uPGUboI@rafael.j.wysocki
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions