# CVE-2026-23062: platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-02-04T16:07:44.420Z
- Modified: 2026-06-17T10:20:47.693Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro

The GET_INSTANCE_ID macro that caused a kernel panic when accessing sysfs
attributes:

1. Off-by-one error: The loop condition used '<=' instead of '<',
   causing access beyond array bounds. Since array indices are 0-based
   and go from 0 to instances_count-1, the loop should use '<'.

2. Missing NULL check: The code dereferenced attr_name_kobj->name
   without checking if attr_name_kobj was NULL, causing a null pointer
   dereference in min_length_show() and other attribute show functions.

The panic occurred when fwupd tried to read BIOS configuration attributes:

  Oops: general protection fault [#1] SMP KASAN NOPTI
  KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
  RIP: 0010:min_length_show+0xcf/0x1d0 [hp_bioscfg]

Add a NULL check for attr_name_kobj before dereferencing and corrects
the loop boundary to match the pattern used elsewhere in the driver.

(As written by CVE List.)

## Affected

- Linux Linux: from 5f94f181ca25d8c5b77beb2da0cb466ddb6ece29 before eb5ff1025c92117d5d1cc728bcfa294abe484da1; from 5f94f181ca25d8c5b77beb2da0cb466ddb6ece29 before eba49c1dee9c5e514ca18e52c545bba524e8a045; from 5f94f181ca25d8c5b77beb2da0cb466ddb6ece29 before 193922a23d7294085a47d7719fdb7d66ad0a236f; from 5f94f181ca25d8c5b77beb2da0cb466ddb6ece29 before 25150715e0b049b99df664daf05dab12f41c3e13; 6.6 (not affected: before 6.6; from 6.6.122 up to 6.6.*; from 6.12.68 up to 6.12.*; from 6.18.8 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.6 before 6.6.122; from 6.7 before 6.12.68; from 6.13 before 6.18.8; 6.19

## References

- <https://git.kernel.org/stable/c/eb5ff1025c92117d5d1cc728bcfa294abe484da1> (patch)
- <https://git.kernel.org/stable/c/eba49c1dee9c5e514ca18e52c545bba524e8a045> (patch)
- <https://git.kernel.org/stable/c/193922a23d7294085a47d7719fdb7d66ad0a236f> (patch)
- <https://git.kernel.org/stable/c/25150715e0b049b99df664daf05dab12f41c3e13> (patch)

## Sources

- CVE List: [CVE-2026-23062](https://www.cve.org/CVERecord?id=CVE-2026-23062), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23062](https://nvd.nist.gov/vuln/detail/CVE-2026-23062), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23062 · Whole record: https://cve.day/CVE-2026-23062.json · Rebuilt by cve.day 2026-11-25T22:59:13.458Z
