{"id":"CVE-2026-23062","state":"PUBLISHED","title":"platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro\n\nThe GET_INSTANCE_ID macro that caused a kernel panic when accessing sysfs\nattributes:\n\n1. Off-by-one error: The loop condition used '<=' instead of '<',\n   causing access beyond array bounds. Since array indices are 0-based\n   and go from 0 to instances_count-1, the loop should use '<'.\n\n2. Missing NULL check: The code dereferenced attr_name_kobj->name\n   without checking if attr_name_kobj was NULL, causing a null pointer\n   dereference in min_length_show() and other attribute show functions.\n\nThe panic occurred when fwupd tried to read BIOS configuration attributes:\n\n  Oops: general protection fault [#1] SMP KASAN NOPTI\n  KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\n  RIP: 0010:min_length_show+0xcf/0x1d0 [hp_bioscfg]\n\nAdd a NULL check for attr_name_kobj before dereferencing and corrects\nthe loop boundary to match the pattern used elsewhere in the driver.","publishedAt":"2026-02-04T16:07:44.420Z","updatedAt":"2026-05-11T21:59:15.864Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"eb5ff1025c92117d5d1cc728bcfa294abe484da1","versionType":"git"},{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"eba49c1dee9c5e514ca18e52c545bba524e8a045","versionType":"git"},{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"193922a23d7294085a47d7719fdb7d66ad0a236f","versionType":"git"},{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"25150715e0b049b99df664daf05dab12f41c3e13","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/hp/hp-bioscfg/bioscfg.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.68","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.8","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/hp/hp-bioscfg/bioscfg.h"]}],"references":["https://git.kernel.org/stable/c/eb5ff1025c92117d5d1cc728bcfa294abe484da1","https://git.kernel.org/stable/c/eba49c1dee9c5e514ca18e52c545bba524e8a045","https://git.kernel.org/stable/c/193922a23d7294085a47d7719fdb7d66ad0a236f","https://git.kernel.org/stable/c/25150715e0b049b99df664daf05dab12f41c3e13"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23062.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23062","state":"PUBLISHED","datePublished":"2026-02-04T16:07:44.420Z","dateUpdated":"2026-05-11T21:59:15.864Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.953Z"},"containers":{"cna":{"title":"platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro\n\nThe GET_INSTANCE_ID macro that caused a kernel panic when accessing sysfs\nattributes:\n\n1. Off-by-one error: The loop condition used '<=' instead of '<',\n   causing access beyond array bounds. Since array indices are 0-based\n   and go from 0 to instances_count-1, the loop should use '<'.\n\n2. Missing NULL check: The code dereferenced attr_name_kobj->name\n   without checking if attr_name_kobj was NULL, causing a null pointer\n   dereference in min_length_show() and other attribute show functions.\n\nThe panic occurred when fwupd tried to read BIOS configuration attributes:\n\n  Oops: general protection fault [#1] SMP KASAN NOPTI\n  KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\n  RIP: 0010:min_length_show+0xcf/0x1d0 [hp_bioscfg]\n\nAdd a NULL check for attr_name_kobj before dereferencing and corrects\nthe loop boundary to match the pattern used elsewhere in the driver."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"eb5ff1025c92117d5d1cc728bcfa294abe484da1","versionType":"git"},{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"eba49c1dee9c5e514ca18e52c545bba524e8a045","versionType":"git"},{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"193922a23d7294085a47d7719fdb7d66ad0a236f","versionType":"git"},{"version":"5f94f181ca25d8c5b77beb2da0cb466ddb6ece29","status":"affected","lessThan":"25150715e0b049b99df664daf05dab12f41c3e13","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/hp/hp-bioscfg/bioscfg.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.68","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.8","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/hp/hp-bioscfg/bioscfg.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/eb5ff1025c92117d5d1cc728bcfa294abe484da1"},{"url":"https://git.kernel.org/stable/c/eba49c1dee9c5e514ca18e52c545bba524e8a045"},{"url":"https://git.kernel.org/stable/c/193922a23d7294085a47d7719fdb7d66ad0a236f"},{"url":"https://git.kernel.org/stable/c/25150715e0b049b99df664daf05dab12f41c3e13"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:59:15.864Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}